Content last modified Friday 29 August 2014
hop to #bottom
Categories:
Author:
Textpattern Community
Current version:
4.0.3.20
About It:
Get it:
Rate it:
  • Helpful?
  • 44 Yes
  • 0 No
Flag it:
Contact Reason [ ? ]

zem_contact_reborn

Zem_contact_reborn is a further developed fork of the zem_contact plugin. It is maintained by the Textpattern Community.

Requires: zem_contact_lang

Zem_contact_reborn produces a flexible, customizable and secure email feedback form / email contact form for Textpattern. It’s intended for use as an enquiry form for commercial sites, and includes several features to help reduce common problems with such forms (invalid email addresses, missing information).

Features:

  • Arbitrary text fields can be specified, with min/max/required settings for validation
  • Support for checkboxes, drop-down lists and radio buttons
  • Nonce-based script spam prevention
  • Email address validation, including a check for a valid MX record (Unix only)
  • Safe escaping of input data
  • Automatically generates an accessible form layout using valid XHTML, including tags
  • Rejects faulty UTF-8 and is aware of the multibyte nature of the UTF-8 charset
  • Errors can be displayed in a different part of the page than the contact form itself.
  • ‘Send article’ functionality
  • Copy sender, allows you to send an article to a friend
  • External language plugin, zem_contact_lang, which makes it easy to localize the contact form messages
  • API that can be used by anti-spam plugins like pap_contact_cleaner

Article Request Count:
Initially released:
2005-12-19
Posted here:
06 Nov 2006
Article modified:
11 Feb 2008

If there is a comment form at the Information URL, you may want to leave your comments/questions there or at the Forum thread for quicker feedback. Otherwise, comment away:

Commenting is closed for this article.

Commented (14)

For some reason I can’t manage to install this plugin to the lately published Textpattern 4.2.0. When I try to paste plugin code to TXP’s plugin manager, it just says something about incorrect format.

Petri (and others), support request for plugins should be posted in corresponding the forum thread (see the links on the left side of this page). There’s no known problem installing this plugin with TXP 4.2.0, so I suspect it’s either a problem with local server setup or an incorrectly chosen plugin type (compressed vs non-compressed).

deemaho:

This plugin works really well, thank you! One issue though, the breaks (<br>) after every label makes it very tough to style the form. Once removed from the code, styling is far easier and a lot cleaner.

deemaho, you can get rid of the breaks by setting the attribute break=”“ in the corresponding tags.

deemaho:

Aha! That’s perfect, thank you Ruud!

Dennis:

I’m a bit new to all of this and I’ve tried using this plugin but when I try to look at the created form it gives an error.

Fatal error: Call to undefined function zem_contact_gTxt() in […]\textpattern\lib\txplib_misc.php(594) : eval()‘d code on line 13

I get this when using the most default <txp:zem_contact to=“recipient@example.com” /> from the example.

Dennis:

Never mind, upon reading more carefully, I’ve come to the conclusion that I must be some kind of stupid. :P

Help! When a user is sending article via email, is there some option to send article to multiple email addresses at the same time? I tried to put several of these to send article form:

<txp:zem_contact_email send_article=“1” />

Despite of this, only one person can receive that forwarded article.

It is not possible for visitors of your website to send an article to multiple email addresses. The potential for abuse is high enough as it is right now with just the option of sending it to a single person, which is why I’d recommend against using this feature.

PS. Please use the “forum thread” link to ask support questions. You’ll get a faster response there.

OK, thanks Mr. van Melick. I’ll try to figure out some alternative option for this.

After initial testing, this seems a great improvement over the orriginal and well worth using instead. Good work team!

Petri (and others), support request for plugins should be posted in corresponding the forum thread (see the links on the left side of this page). There’s no known problem installing this plugin with TXP 4.2.0, so I suspect it’s either a problem with local server setup or an incorrectly chosen plugin type (compressed vs non-compressed). methoo.com

Greg:

Hi there, I hope you can help me please. I am a complete TXP noob, have been given a job to do for a client. They already have the Zem Contact Reborn plugin installed, now how do I use the plugin within an article? There doesn’t seem to be a way to call or load plugins like in Joomla or WordPress. And where do I create fields for the form, eg text entry, dropdowns, etc? I have tried to find documentation and read forums. Thank you!

I think you can insert contact form’s tags directly to the article’s text field, or you could try what happens if you save your form as a misc form and then attach that form to your article with output_form function. Try to test it with something simple, like this:

<txp:zem_contact to=“myemail@address.com” label=“This is a legend”>
<ul>
<li><txp:zem_contact_email label=“Email” break=”“ /></li>
<li><txp:zem_contact_textarea label=“Message” break=”“ /></li>
<li><txp:zem_contact_submit>Send</txp:zem_contact_submit></li>
</ul>
</txp:zem_contact>

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

Would you care to write a comment or visit the forum discussion?

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.