Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#193 2007-05-30 21:58:15

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

Re: zem_contact_reborn 4.0.3.19 (old version)

That’s wonderful Ruud! Thank you for the help. One question – is there a way to output the list of events by date or in ascending order? Now the list is unordered, does not matter really, just wondering.

Also, how to make the select drop down be in an empty state, forcing the user to choose an option? Now, the first event appears in the list.

Thanks again.

Offline

#194 2007-05-30 22:36:28

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)

Again, code adjusted to add those two requests.

Offline

#195 2007-06-03 08:07:19

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

Re: zem_contact_reborn 4.0.3.19 (old version)

It currently doesn’t allow you to add “rel” attribute to the form elements does it. I’d really like to make use of PPK’s Usable forms script in a few projects.

Offline

#196 2007-06-03 11:05:39

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)

“rel” is not a valid attribute for form elements.

Offline

#197 2007-06-05 12:52:31

frippz
Member
From: Sweden
Registered: 2005-01-30
Posts: 22
Website

Re: zem_contact_reborn 4.0.3.19 (old version)

FireFusion wrote:

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.

I came up with this idea recently and now I found you post. Almost scary! :)

ruud wrote:

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 ?

This could work, but I’m working on a project where I want visitors to be able to submit material anonymously without the need for registration. mem_moderation_article and mem_moderation are supposed to be able to do this, but they don’t seem to work at the moment and I’m still waiting for a reply from the author about some of the problems I encounter.

So, is anyone up for a little hacking maybe? ;)


//Fredrik Frodlund

frippz.se | Adjust.nu

Offline

#198 2007-06-06 00:41:55

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: zem_contact_reborn 4.0.3.19 (old version)

evalottchen:

i use a company called hosteurope. […] but I don’t get it to send the email. Each time, it come back with the error “Unable to send email”.

Evalottchen, you’ll get it to send mails, if you go to the Hosteurope-KIS, click on “Webhosting”, then “Konfigurieren”, then “Skripte”, then “Standard E-Mail-Adresse”. From the Popup menu there you simply choose the mailaddress shown there (don’t know how you’ve configured your addresses, I had no choice as there was only one to pick.)
That’s all. Now wait for … one hour or so and your script will send mails like you desire.

(Grüße an Kalle Blomquist!)

Last edited by uli (2007-06-06 00:48:39)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#199 2007-06-06 01:04:24

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud, thanks for linking the pure code in no.188. It works fine and I finally get mail with the sender field filled in. Great! Would you be so kind to link the revised help, too? Thanks in advance!

I tried what you proposed to evalottchen and pasted the original plugin code into an article, which didn’t work. But the halves got stored already so there’s no hint what causes the problem, dam.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#200 2007-06-06 08:51:54

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)

Uli, if pasting both halves of the code separately in an article does work… perhaps the problem is simply a limitation on the amount of data you can submit in a form on your webhost (ZCR is 80kBytes and growing). Can you test with some textfiles containing various amounts of text? Perhaps this is only a problem is the text is more than 64kBytes. If so, try contacting your webhost and ask if there’s a limit on the size of a POST request.

You can probably also find which limit there is for POST requests by pasting <?php phpinfo() ?> into a file called info.php, and upload that you your website. If you visit that with your browser there should be some information on the various limits imposed by your webhost.

Last edited by ruud (2007-06-06 08:52:35)

Offline

#201 2007-06-06 12:38:55

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,305

Re: zem_contact_reborn 4.0.3.19 (old version)

ruud, under Configuration > PHP Core the value for post_max_size is set to 8M for both local and master value. This should be the relevant line among these 25 meter of output.
I’ve recently mailed the problem to Hosteurope, let’s see.


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#202 2007-06-06 14:05:45

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)

Let us know how HostEurope responded. If they refuse to deal with this, I have some ideas to work around it, but they do require a considerable amount of extra work to implement and I’d have to know for certain if it’s just the size of the plugin that’s causing problems rather than the content of the plugin code.

Offline

#203 2007-06-09 11:17:52

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,617
GitHub Twitter

Re: zem_contact_reborn 4.0.3.19 (old version)

Hi ruud!

Is there a way to avoid sending an empty input within the e-mail form with ZCR 4.0.3.19?
I have a very long list of inputs and the mail could be a very long message…

Tks lot for your answer.

Congratulations for your new status of Core Developer.

Best regards,

Last edited by Pat64 (2007-06-09 11:20:07)


Patrick.

Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.

Offline

#204 2007-06-09 11:48: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)

Thank you :)

You can avoid empty values from showing up in the mail by making a small change in the code:

foreach ($zem_contact_labels as $name => $label)
{
    $msg[] = $label.': '.$zem_contact_values[$name];
}

into:

foreach ($zem_contact_labels as $name => $label)
{
    if (!trim($zem_contact_values[$name])) continue;
    $msg[] = $label.': '.$zem_contact_values[$name];
}

Perhaps this should be included in the official version.

Offline

Board footer

Powered by FluxBB