Previous Thread
Next Thread
Print Thread
Rate Thread
#276033 07/04/2004 2:52 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Contact Form 2.1

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...)?
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 before they ask their question
  • Automatically grabs the username if the user is logged in
  • Notes if the user was logged in at the time they sent the message
  • 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 Threads built in send_mail function - no sendmail settings to configure
  • Preserves the "Cat" variable passed from Threads.
  • Super Simple install
  • Optional step to show location in Who's Online
  • Includes a direct link to edit the user


Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites: 6.5

Author(s): JoshPet

Date: 07/04/04

Credits: Astaran, Dalantech

Files Altered: ubbt.inc.php, (/languages/*/online.php optional)

New Files: contactus.php, docontactus.php, /languages/*/contactus.php, /templates/default/contactus.tmpl, /templates/default/contacususconfirm.tmpl

Database Altered: no

Info/Instructions: Edit variables at the top of docontactus.php to determine who gets the emails and if you want to use the autoreply.

You can choose to use a contact URL instead of an email address in your control panel.
Control Panel->Display Options: General -> Primary Tab -> General Options section

NOTE this also fixes a potential "formmail" type exploit which existed in the first version.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
116326-ContactForm2.1.zip (0 Bytes, 145 downloads)

Last edited by JoshPet; 08/01/2004 6:33 PM.
Sponsored Links
Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
I would like to see some features added to this...

First the "Reply to:" email is mine not theirs. So I can no longer hit reply and send them back an email.
I have to copy or click on their email link... This Changed from the previous version..

Also if I have to go to their control panel to edit their user info I have to again copy and paste their email. It would be nice if in the email there was a link to my CP and automatically pull up their record.

Joined: Apr 2002
Posts: 474
Enthusiast
Enthusiast
Offline
Joined: Apr 2002
Posts: 474
Ok I figured out the second half

Here is what i did...


Code
<br />in docontactus.php<br /><br />add this line at the end of the other $Body.<br />=======<br />$Body .= "$newline{$config['phpurl']}/threads/admin/showuser.php?uid={$user['U_Number']}$newline";<br />


Can't figure out the where the reply to is set.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Hang tight. I see the problem. This version takes advantage of the newer send_mail function in threads. Need to rework things a bit. Look for an update to this just as soon as I finish going through all the posts and emails and tickets that piled up while I was gone.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I updated this -

2.1 includes the suggestion of a link to edit the user.... and also includes instructions needed for a minor edit o ubbt.inc.php so that the reply to address gets set correctly.

Sponsored Links
Joined: Dec 2003
Posts: 107
Journeyman
Journeyman
Joined: Dec 2003
Posts: 107
Great mod and super simple/fast install!

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
One tiny thing in contactus.tmpl:

Code
 <br />Change: <input type="submit" name="{$ubbt_lang['CON_CONTINUE']}" border="0" classs="buttons"> <br /> <br />To: <input type="submit" name="buttsubmit" value="{$ubbt_lang['CON_CONTINUE']}" border="0" classs="buttons"> <br />


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)