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_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:
- 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.
I had a similar problem to nonuniform, under 1.7.1 I could only get this to work by commenting out the spambot and elapsed time sections of the code.
@nonuniform: the likely reason for your template change is you've simply used the supplied contact_form_template.html file, which is styled to the default template. Copy the contact form table and tags from in there and into your own template file and you should be OK.
decent addon. does what's is supposed to. but, it'd be nice to have some more options in the admin section maybe on adding customs field like "subject" or some dropdown menus.
So, I got this to work after commenting out the spambot stuff.
Now, when the email is sent, the page is refreshed and switches my site to the simple template!
What is going on here? I can't figure out how this is occurring, but I can see that in thethe site is now using the simple template files.