This addon is created for users who wish visitors to be able to contact you through e-mail without exposing their e-mail address on the web. This is just a simple form and e-mail system to cover that need. It uses Jack Born's jquery ajax token solution to protect you from spam without the use of a CAPTCHA field.
It includes a template file for the contact form, the main jquery library (http://jquery.com), a js file for the contact form and the addon script.
The subject and destination e-mail address can be entered on the addons page of the admin.
This addon enables the following tags:
<CONTACT_FORM_HEAD_JAVASCRIPT> This is a required tag that should be put in the contact form template between the <head></head> tags.
<CONTACT_FORM_SUBMIT_BUTTON> This is a required tag that should be put in the form so the form can disable the submit button after sending the e-mail.
<CONTACT_FORM_LINK> This tag shows a link to a contact form.
<CONTACT_FORM_URL> This tag shows the url to the contact form. You can use this if you want to customize the link. Example: <a href="<CONTACT_FORM_URL>" title="My contact form">custom text<a>
<CONTACT_FORM_MESSAGES> This tag shows any diagnostic messages that might come up when submitting the form as well as reporting success or failure of sending the e-mail.
<CONTACT_FORM_NAME> Contains the value of the name field of the form on submit. Usefull if form was not validated.
<CONTACT_FORM_EMAIL> Contains the value of the e-mail field of the form on submit. Usefull if form was not validated.
<CONTACT_FORM_MESSAGE> Contains the value of the message field of the form on submit. Usefull if form was not validated.
For usage of these fields see the included simple template file /templates/simple/contact_form_template.html
Changelog for version 2.0:
- Built in token check to check for spambots, without a nasty CAPTCHA. Downside is that cookies and javascript have to be enabled in the client browser.
- Disable send button if e-mail is sent.
- Added new tags.
- Added a current version check.
- Changed the layout of the contact form template to something more sensible.
- Code cleanup, make things more logical.
- Built in a check on success or failure of mail function.
Changelog for version 2.01:
- Corrected an error within the html of the template file which caused the "too much time elapsed" message to apear for no reason.
To install:
Works perfectly ! Thank you for your efforts ;)
Hey Hey never mind - wrong download Its perfect - fino - god
The addon tells me on my blog when that i have javascript disabled, thi it ain't. Can't get it working.