Pixelpost

Authentic Photoblog Flavour

Contact Form v2.01 featured

 
Download (23.8 KB)

Developer Description

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:

  • Put the addon file (/addons/contact_form.php) in the addons directory of your pixelpost installation (/addons).
  • Put the jquery-1.2.6.pack.js and contact_form.js files into your templates scripts directory (/templates/your_template_folder/scripts). Note that you should edit the scripts directory at the 'User configuration' (line number 78) of the addon file (contact_form.php) if your template uses a different directory for javascripts than the standard 'scripts' directory.
  • Put the token.php file in the root of your pixelpost installation (/).
  • Use the supplied template file as an example how to integrate the tags made available in this addon to your own template file (/templates/simple/contact_form_template.html). Or just use the supplied file if you use the simple template.

Older Versions

Read All 9 Reviews » Write A Review

  1. Perfect 5
    benalika 3 Months Ago Report as Spam

    Works perfectly ! Thank you for your efforts ;)

  2. Perfect 5
    Mielec 3 Months Ago Report as Spam

    Hey Hey never mind - wrong download Its perfect - fino - god

  3. Good 4
    draj 4 Months Ago Report as Spam

    The addon tells me on my blog when that i have javascript disabled, thi it ain't. Can't get it working.