Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/load_globes.php on line 22

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/thescrip/public_html/jclass/load_globes.php:22) in /home/thescrip/public_html/jincludes/globals.php on line 43

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/thescrip/public_html/jclass/load_globes.php:22) in /home/thescrip/public_html/jincludes/globals.php on line 43

Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/load_globes.php on line 22

Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/db_func.php on line 61

Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/db_func.php on line 61

Warning: Creating default object from empty value in /home/thescrip/public_html/jclass/db_func.php on line 61
Jay's PHP Recommend this Site Script
TheScriptCenter.com


print page

PHP Refer a Friend Script

# Written by Jason Russo #
# http://thescriptcenter.com/
# LICENSE FREEWARE
###############################

<::> Also known as Tell a Friend, refer a friend, recommend this site, this script will allow visitors to fill out a form and send an email to their friend(s) recommending your website.

March 26th 2009, I disabled the demo because of spam. Spammers were entering their URL's in the comments field and sending to gmail accounts and once again, ruining it for the rest of us who would like to try a demo before they use it. I will be updating this script with better anti-spam filters and CAPTCHA features. This is a primary focus of mine especially on Form to Email scripts. Please stay tuned.

Last Updated November 9th, 2008.
Added usage stats.

Features:


Requirements:


Form Demo



Download: tellafriend1.1.zip Number of downloads:

Instructions:

1.) Decompress(unzip) tellafriendX.X.zip to your local computer.

2.) Once the files have been unzipped you should see a folder named tellafriendX.X (X is the version you downloaded. IE: 1.0) Enter this directory then click on the templates directory. Edit the templates to fit your websites look/feel. Take care not to remove the variables in your templates I.E. <:<ERROR>:>

3.) Upload the folder with all of the contents to your web server.

4.) On your web server, enter the folder you just uploaded (tellafriendX.X). Enter the directory labeled "templates" change the permissions(CHMOD) to 777 on all the template files in that directory.

5.) Go up one directory; change the permissions(CHMOD) to 777 on the directory "includes", & file named "ip.txt"

6.) Enter the includes directory change the permissions(CHMOD) to 777 on the file jconfig.php, and usdb.php.

7.) (optional) Go up 2 directories or to your webroot folder, and rename your tellafriendX.X directory. You may rename this directory to whatever you wish: IE: contact, referafriend.

8.) Setting your variables. Load the admin script in your web browser: http://www.yourdomain.com/tellafriendX.X/form_admin.php . The default password is demo.

9.) Once logged in click on "settings"
Edit the following:

##########################

10.) Copy and paste the form code from: sample_form.html.

UPGRADING: If you are upgrading from 1.0 to 1.1x.
1.) Download and unzip the new version to your local computer.
2.) Upload and overwrite the following files to your web server:



####################################
## GLOBAL VARIABLES: ##
####################################
<:<FORM_CONTENTS>:> - Enter the contents of the form. <:<HTTP_USER_AGENT>:> - Gives you the web browser type.

<:<date>:> - Shows the date the script was accessed, according to the format you set in the date_format under your admin settings.

<:<time_format>:> - Shows the current time the script was used, according to the format you set in the time_format under your admin settings.

<:<ip>:> - Shows the IP address of the user who accessed the script.