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. <img src="/forum/images/graemlins/grin.gif" alt="" />
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 - in use here at ThreadsDev.com. <img src="/forum/images/graemlins/wink.gif" alt="" />
Working Under: UBB.Threads 6.1-6.2-6.3-6.4
Mod Status: Finished
Any pre-requisites: none
Author(s): JoshPet
Date: 04/27/03
Credits: Astaran, Dalantech and Gregori for Sweedish Language File
New Files: contactus.php, docontactus.php, /templates/default/contactus.tmpl, /templates/default/contactusconfirm.tmpl, /languages/english/contactus.php, /languages/sweedish/contactus.php
Database Altered: none
Info/Instructions: 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. 4/27/03 - Added sweedish language file provided by Gregori
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.
Note: To use this mod with 6.1 series, you need to comment out all the "get_input" lines near the top of the docontactus.php script. <img src="/forum/images/graemlins/wink.gif" alt="" />
There is a change in 6.3 which we need to make. The FAQ's point now to the faq.php and not the faq_<language>.php.
You can change the languages/english/contactus.php as
Code
<br />$ubbt_lang['CON_BODY1'] = "If you are unable to find the answer to your question in our <a href=\"{$config['phpurl']}/faq_";<br />
to
Code
<br />if ($VERSION == "6.3") {<br />$ubbt_lang['CON_BODY1'] = "If you are unable to find the answer to your question in our <a href=\"{$config['phpurl']}/";<br />} else {<br />$ubbt_lang['CON_BODY1'] = "If you are unable to find the answer to your question in our <a href=\"{$config['phpurl']}/faq_";<br />}<br />
I am curious. I got the contact form to work. I was just wondering how you go about changing the "[email protected]" in the top of the FAQ.php file to the link for the contact form.
In the language/english/faq.php file I tried putting in this
Josh, I for some reason this never sends any mail to me. I can't figure out why? Someone said once that it is a PHP configuration but I need instructions on how to fix this. I need to do this ASAP as I got over 1000 junk mail sent to my email in one day.
This has been a real time saver. Is it possible that in the email that is sent to the admin to contain a link that if I am logged in as admin and I click on the link in my email I am taken to the user info? right now I have to copy and paste their email and it can get tedious.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.