Mod Name / Version - Contact Form 1.3
Version 1.1 moves the AutoReply Subject String to the Language File - thanks Astaran
Version 1.2 adds support for the $tbopen and $tbclose table wrapper in UBBThreads 6.2 - Thanks Dalantech
Version 1.3 fixes a few template issues with Table Wrappers - thanks Dalantech.
Description - This replaces the email link in the footer with a link to a "contact us" page. This hides the email address from Spam Bots, and allows you to request all the needed info from your users (browser type, OS, nature of problem, etc...)
Sick of getting the generic "I can't login" or "I can't post" questions via email, only to have to write back and request more information (like Username, Browser type etc...)? This Contact Form will request as much information as possible... and even send along their IP address and User Agent info.
Features -
- - Template Based, so you can easily modify the form
- - Language File dependant, so you can easily modify the text, options and messages
- - Offers them a link to the FAQ of their language before they ask their question
- - Automatically grabs the username if the user is logged in
- - Automatically grabs their email address if the user is logged in
- - Verifies the email address they give for a response is valid
- - Passes their IP Address and User Agent information to you
- - Requests specific troubleshooting information
- - Requires the email, type of problem, and details of problem to be filled in
- - Choose to send emails to All Admins, or a list of specific users
- - Choose to send an "auto reply" confiming that the email was received
- - Auto reply message can be easily customized in the language file
- - Uses the PHP's built in mail() command - no sendmail settings to configure
- - If mail fails, user is given a message, and the direct email link to the admin
- - Only touches one template file in threads - NO SCRIPTS ARE MODIFIED
- - Preserves the "Cat" variable passed from Threads.
- - Super Simple install
- - Optional step so that Who's Online shows the user's location when they are filling out the form
Demo -
Here.
Working Under - UBB.Threads 6.1.1 AND will work with 6.2
Pre-requisites - none
Author - Joshua Pettit aka JoshPet -
www.joshuapettit.com for discussions and bug reports come to
www.ubbdev.com Credits - Astaran, Dalantech
Files Altered - ubbt_footer.tmpl, (optional - online.php language file)
Database Altered - none
New Files - contactus.php, docontactus.php, /templates/default/contactus.tmpl, /templates/default/contactusconfirm.tmpl, /languages/english/contactus.php
Any other info - Using this will save you tech support time, as you'll have as much information as possible when people contact you. No more generic emails saying "I can't login". It will also reduce spam, as you admin email address is removed from the page (and hidden).
Also.... this is more of an add-on (all new files) than a mod. It's really just one line of template editing needed. No threads scripts are touched.
Thanks to Dave_L and Gardener for helping me to find glitched line returns in my templates.
Note: To use this mod with 6.1, you'll need to comment out all the "get_input" lines at the top of docontactus.php.