Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#181 2007-05-30 12:01:33

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: zem_contact_reborn 4.0.3.19 (old version)

I don’t know if this is possible but could zem contact be used to submit articles? So you could have an article entry form separate from the admin interface.

They would be given pending status and could then be approved by an admin.

Offline

#182 2007-05-30 16:21:23

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

You probably can do that, but it would require an additional plugin to take the form input and insert that into the textpattern table. Have you considered using the mem_self_register plugin ?

Offline

#183 2007-05-30 17:33:47

evalottchen
New Member
Registered: 2007-05-30
Posts: 4

Re: zem_contact_reborn 4.0.3.19 (old version)

Hello,
I downloaded the plugin and tried to install it, but i get the message “ Badly formed or empty plugin code.”
I tried it loads of times and I am pretty sure I did no copy and paste error. can anybody help??

thanks in advance :) evalotta

Offline

#184 2007-05-30 17:35:35

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Which hosting company do you use? It has been reported before and always turned out to be something related to the webserver where the code is uploaded. If you paste the plugin code in a regular article and save that, does it get stored or is it also empty?

Offline

#185 2007-05-30 17:39:06

evalottchen
New Member
Registered: 2007-05-30
Posts: 4

Re: zem_contact_reborn 4.0.3.19 (old version)

i use a company called hosteurope.

Offline

#186 2007-05-30 17:41:27

evalottchen
New Member
Registered: 2007-05-30
Posts: 4

Re: zem_contact_reborn 4.0.3.19 (old version)

yes it comes back emty and gives my the following error:
“Undefined variable: second in /is/htdocs/…/textpattern/include/txp_article.php

Offline

#187 2007-05-30 17:51:06

evalottchen
New Member
Registered: 2007-05-30
Posts: 4

Re: zem_contact_reborn 4.0.3.19 (old version)

So is there anything I can do to fix the problem except changing the hosting company?
If not another question: I have currently zem_contact v0.6 installed, but I don’t get it to send the email. Each time, it come back with the error “Unable to send email”. (the mailto property is set to an email adress with the same domain name as the website). Is there anything I can do to make this older version of the plugin work? that would be great!

Offline

#188 2007-05-30 18:00:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

zem_contact is different plugin with it’s own support topic.

A possible workaround to install the plugin, since you’re replacing zem_contact with zem_contact_reborn, is to edit the zem_contact plugin (on the plugins tab) and paste this code (starting with the word function and ending with }) to replace the old zem_contact code.

Either way, I’d recommend asking your hosting company for advice, perhaps there’s something they can do to avoid blocking the upload of plugin code.

If you don’t mind doing some tests, cut the plugin code (the official download code, not the link I just gave) in two roughly equal parts. Try storing each of them separately in an article. I’m hoping one of the two parts of code refuses to save. If so, cut that part in two and repeat this procedure. Keep doing this until you have narrowed it down to a line (or a few lines). If it’s just a small part of the code that somehow triggers this problem, that would help to track it down.

Last edited by ruud (2007-05-30 18:06:14)

Offline

#189 2007-05-30 18:27:15

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud wrote:

Something like this (not tested):

<txp:php>
  $events = safe_column('Title', 'textpattern', "Section='events' AND Posted < NOW() AND Status=4");
  $list = join(',', $events);
  echo zem_contact_select(array('name' => 'event, 'list' => $list));
</txp:php>

Beware of commas and quotes in article titles.

Hi Ruud, thank you for posting the above example. I hope to get it to work – its a really exciting example!

Unfortunately, I only get a drop down select list filled with one option – “General inquiry”.

I have the code in a ZCR form like so (I use MLP on this test site, locally hosted with MAMP):

<p><txp:zem_contact_select label="##tournament_name##:" list=",<txp:php>
  $tournaments = safe_column('Title', 'textpattern', "Section='tournaments' AND Posted < NOW() AND Status=4");
  $list = join(',', $tournaments);
  echo zem_contact_select(array('name' => 'event, 'list' => $list));
</txp:php>" break="" /></p>

Offline

#190 2007-05-30 18:33:09

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Try this instead:

<p><txp:php>
  $events = safe_column('Title', 'textpattern', "Section='events' AND Posted < NOW() AND Status=4 ORDER BY Posted ASC");
  $list = ',' . join(',', $events);
  echo zem_contact_select(array('label' => '##tournament_name##:', 'name' => 'event', 'list' => $list, 'break' => ''));
</txp:php></p>

Last edited by ruud (2007-05-30 22:35:26)

Offline

#191 2007-05-30 18:37:02

jstubbs
Moderator
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

Ok – that gives me this error:

Parse error: syntax error, unexpected T_LIST, expecting ‘)’ in /Applications/MAMP/htdocs/latest/textpattern/publish/taghandlers.php(2681) : eval()’d code on line 4

Offline

#192 2007-05-30 18:55:02

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

There was a quote missing after ‘event. Code updated.

Offline

Board footer

Powered by FluxBB