TigerTom's Email Hustler Perl Script. Version: 1.3, Oct. 2004. http://www.tigertom.com/perl-script.shtml ##################### IMPORTANT ############################ ## Some TigerTom scripts need a file named ## ## 'tigertom_lib.cgi' to work. If it is not present in ## ## this distribution, email tom@tigertom.com to get it. ## ############################################################ A combination double opt-in email subscription, tell-a-friend and slot-machine program. Can also be set to single opt-in. You can set odds of winning, and offer prizes. Bogus-looking addresses can be deleted easily. Saves name and email address to a flat-file database for easy import to your mailing program. ------------------------- Oct. 2004 Version 1.3 Fixed a referer checking error. ------------------------- July 2004 Version 1.2 Improved the format of the text in the automatic emails, so you get more signups. You will need to go through 'emh.cgi' and change the text where necessary. ------------------------- Oct. 2002. Version 1.1 The double opt-in feature can now be turned on or off. ------------------------ SETUP: ------- Create two directories: One called 'emh' in your cgi-bin One called 'emh' in your web-facing directory. ------------- Open: 'email_hustler_config.cgi' in a text editor. Define all the the variables required therein. ---- Open: 'emh.cgi' in a text editor. On the first line, define the path to Perl on your web server. Specify the absolute path to the the required files 'email_hustler_config.cgi' and 'tigertom_lib.cgi'. ----------- Open: 'header.html' 'footer.html' in a text editor. Change these header and footer files to suit your site. --- Open: 'emh.shtml', 'emh1.shtml','emh2.shtml' in a text editor. Change the URL of 'emh.cgi' script in the Server Side Include call, and in the form call, in these files. You may want to remove the hidden form field if you set the double-opt-in option in 'email_hustler_config.cgi'. --- Open: 'unsubscribe.htm' Change the form call of 'emh.cgi'. --- Open: 'email_hustler_popup.html' in a text editor. Change the domain .tigertom.com in the JavaScript cookie call to your domain. Add other web pages' URLs to the JavaScript pop-up calls. ------ Open: 'email_hustler.txt' in a text editor. Change the subscriber email text to suit your site. ========== Upload: 'emh.cgi' 'email_hustler_config.cgi' 'tigertom_lib.cgi' to your cgi-bin. CHMOD them to 755. Upload: 'email_hustler.txt' 'email_hustler.dat' to the same directory. CHMOD email_hustler.dat to 666 Upload: 'emh.shtml' 'emh1.shtml' 'emh2.shtml' 'unsubscribe.htm' 'email_hustler_popup.html' 'header.html' 'footer.html' to a web facing directory. ------------ Test the popup code is working properly in 'email_hustler_popup.html', then put the JavaScript contained therein into lots of pages on your site. The JavaScript sets cookies. You will want to delete them to test this part of the package. Test 'emh.cgi' is working properly, then open it in a text editor, and modify the text of the winner's message, and any other email text it outputs. ('email_hustler.txt' only affects part of the output). Scroll down the code of this script to see the relevant text. -------- USAGE: The JavaScript popup will open 'emh.shtml' and any other important pages on your site at varied intervals for a limited time for each surfer. 'emh.cgi' does as much as possible to get people to give you their email address, while at the same time giving them the option to unsubscribe. You will get a great many more subscribers to your mailing list using this software. ------ T. O' Donnell, London, August 2002.