[MODDB] Contact Form 9.0.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
Locked
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

[MODDB] Contact Form 9.0.0

Post by marcus.smith »

MOD Title: Contact Form
MOD Description: Allows visitors to contact the site owner via a Contact Form. Files can also be attached if permitted.
MOD Version: 9.0.0 (tested on 2.0.21 and 2.0.22)
MOD Requirements: GD2 Library (min 2.0.1) preferable with "FreeType Support" installed.

Known Bugs: None that can't be fixed! :wink:

I have been developing this "Contact Form" for some time, since taking over from "Contact Us" mod.

MOD Features:
• Enable/Disable the Form via ACP
• Post a message (naturally)
• Optional: Require Comment
• Optional: Maximum Comment length limit
• Optional: Require Real name
• Optional: Require E-mail
• E-mail strings are validated with preg_match()
• Logged in members are identified by their Username
• IP of poster is captured
• Optional: Flood Limit - number of hours between submitted forms
• Optional: Pruning - clears the database of expired flood limit data
• Optional: Attachments
• Blacklist/Whitelist file extensions
• Optional: Max filesize limit
• Optional: Hash attached filenames (using MD5)
• Comprehensive Stage based Error checking
• Optional: Rename "upload" dir to prevent people identifying it
• Optional: Limit who can upload - Guests, Members, Mods, Admins
• Character counter for message length
• Secures various uploads to prevent XSS issues
• Optional: CAPTCHA (requires GD Lib 1.6 or higher)
• Optional: Image based or Coloured CAPTCHA appearance
• Optional: Random CAPTCHA shown on each load
• Displays TrueType Fonts for displaying code if "FreeType Support" installed
• Optional: Admin can remove Attachments via a link (auth secure)
• Optional: Message Log - save messages to database for reference
• Preview based Message Log screen with [more] links for full message display
• Optional: Various Addons available, in contrib. for extra functionality :)
• Optional: "Thank You" confirmation e-mail to Sender

Languages Supported:
• English • Dutch • French • German • Italian • Polish • Spanish

The "Contact Form" is neatly designed with switches to only display fields required or allowed by the Admin, and to identify and filesize and post length limits. It will report any errors clearly, with a Javascript "Back" option to prevent loss of what was typed.

The Admin will receive an e-mail to the address in the main Board E-mail, containing the message, a link to any attachment, time sent, and IP of the poster.

A new feature as of 8.6.0 allows Admins to store their messages in the database for reference. This is optional, but can be useful on large boards where the Admin might receive a lot of messages via this form.

The zip file contains a full Mod History, changelogs, and required files.

Thanks! :)
Ma®©uS
Last edited by marcus.smith on Wed Sep 05, 2007 4:13 am, edited 81 times in total.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

kiltedknite
Registered User
Posts: 16
Joined: Mon Nov 20, 2006 7:16 am

Post by kiltedknite »

A very nice mod all in all.

Its quick, hassle free and works a treat. Installed no problem using EM too. :)

Unfortunately I know nothing of XSS so cant help you there.

Although as the uploads are hashed I'm not sure how they could be exploited. Hopefully someone can explain??

Personally I don't permit the attachment uploads since I see no reason (at the moment) why a board member would want to send me something that cant be posted in the board.

However, having the option to perhaps specify who is allowed to send attachments, IE having Admins, Mods, registered users, guests as options. I'd quite like to be able to have the ability to enable/disable the sending for most user types. Was just a thought.

Keep up the good work Marcus.

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

kiltedknite wrote: However, having the option to perhaps specify who is allowed to send attachments, IE having Admins, Mods, registered users, guests as options. I'd quite like to be able to have the ability to enable/disable the sending for most user types.


I was working on a Guest/Members/Both function a while back - but I didn't keep it because my code was sloppy. I may still go back to it though once I work out a better way of coding it.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

mdvaldosta
Registered User
Posts: 353
Joined: Sat Mar 26, 2005 12:26 am
Contact:

Post by mdvaldosta »

For guests, would there be a visual confirmation (captcha) image to reduce spam?

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

mdvaldosta wrote: For guests, would there be a visual confirmation (captcha) image to reduce spam?


There isn't one at present - the flood limit option should prevent that a lot of the time, as it captures the posters IP and logs it in a database table until the set amount of hours expires.

This does of course require a static IP to work - but as yet I have developed no Captcha function for the mod.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

User avatar
Marnboorapa
Registered User
Posts: 84
Joined: Sat Jan 08, 2005 3:19 pm
Location: Thailand
Contact:

Post by Marnboorapa »

Thank for really usefull mod

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

Updated to 4.5.0

Have added an upload permissions feature, as suggested by "kiltedknite".

There are no changes in the install.txt edits if you have this already, I've just made changes to the php/tpl files that come with the download. So if you're an EasyMod user, don't run it again - just upload the files.

There are a few new SQL requirements, so the queries or db_update.php need to be run first.

Note: Still awaiting information on XSS risks. :wink:
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

Updated to 4.5.1

• Had to fix a bug that may have been there since 4.3.0, which kept sending the e-mail with some fields as "Not Specified" even when completed. :roll:

• If updating from 4.5.0 simply replace contact.php for this fix.

• For all previous versions please replace all the provided files and run the SQL's.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

Updated to 4.6.0

• Added a "back" option when an error arises. Javascript based, so that previously entered fields are retained, allowing a user to simply edit and resubmit their message (where errors), rather than retype it all again.

Changed files:
• contact.php
• lang_contact.php
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

Updated to 4.7.0

• Bug fixes, code tweaks and "Index" breadcrumb added.

Changed files:
• contact.php
• contact_body.tpl
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

kiltedknite
Registered User
Posts: 16
Joined: Mon Nov 20, 2006 7:16 am

Post by kiltedknite »

nice work..just updated to 4.5.1 lmao...

thanks for the permissions mate..nice job.


EDIT: Updated to 4.7 now. Nice one many thanks.

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

Cool!

Well this mod had 25 downloads since I started this topic - and not a person seems to know about these "so-called XSS risks" and I see none of the validators who denied it have commented either.

This leads me to believe, that either they're taking nonsense or highly exagerrating their claims - or, not that many people know about XSS to know how it works or to care about it enough.

I know which I think, but so far I'm no closer to an answer myself either... :roll:

I'll give it a while longer to see if anyone knows. But my only choice will be to refer my submission direct to the Mods Team Leader, and request proof of there being risks to support any future denials, otherwise its just heresay as far as I'm concerned.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

Updated to 4.8.0

From a request I received:
• Copyright moved to ACP page instead of on main form
• Added a character counter below the message text box

• Posted a Screenshot link in first post of this topic :)

Changed files:
• contact.php
• admin_contact.php
• lang_contact.php
• contact_body.tpl
• contact_config_body.tpl

• No new Edits or SQL's - just the version number changed. :wink:
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

User avatar
bum63
Registered User
Posts: 262
Joined: Tue Oct 10, 2006 8:36 pm

Post by bum63 »

very nice I love it, works like a charm
thank you for cool mod

marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith »

You're most welcome, thanks! :)

Keep an eye on this thread/my site for frequent updates though! :wink:
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

Locked

Return to “[2.0.x] MODs in Development”