| Main
Page
EMail
Contact
Log File
Manager
Meta Tag
Generator
TellAFriend.cgi
Multi Text Counter
Simple Link
Framer
CGI Toplist
Links
Page |
TellAFriend.cgi
Ever wanted to get a lot more visitors to your
website? Well this can help to boost your hit counter by letting
your visitors to passively promote your website URL using this easy to use
Perl Script.
Requirements
Setup
Download
Requirements
Setup
(This file is included in the distribution)
To use this script you will need to edit the following
parameters.
-
First off like all CGI Scripts. You will need to set
the path to Perl on the very top line of the file. Change #!/usr/bin/Perl
to where your host installed the Perl to. It is normally either this,
#!/usr/local/bin/Perl or #!/usr/bin/Perl.
-
Next you will need to Set the
location of your servers Sendmail Program
$SEND_MAIL = "/usr/lib/sendmail"; # Note That
/usr/sbin/sendmail is the default.
-
Set The URL of Your Website you
wish to promote. if you want this script to promote multiple email
address' add the hidden field "promoteurl"
into your form by adding this html code right before the submit
buttoms <input type="hidden" name="promoteurl"
value="YourURL.Com"> and
change $My_Site_Url = "http://e-walks.tk";
to $My_Site_Url = $FORM{promoteurl};.
If you don't want other people to use your script it is best to just
change http://ewalks.tk to your website url
$My_Site_Url = "http://e-walks.tk";
-
What Email address do you want the
Email to come from? 1 = your email address 2 = senders email
address
$Whos_Email = "2";
-
The Subject Of The Email That the
referred People Receive
Add $FORM{who_name} where you want the persons r/name from the form
put.
$Tell_Friend_Subject = "$FORM{who_name}, I Just Found An
Interesting Site";
-
If you Answered 1 to the last
variable, Whats your Email? Always put a \ before the @ sign.
Otherwise you will get error 500's
$My_Email = "my_name\@my_host.com";
-
This is what sets the actual body of
the message. you don't have to edit this, and if you aren't too sure
about CGI scripts leave it as it is :)
$Tell_a_Friend_Text=
Don't edit the lines containing
__Stop_Of_Email_Message__ else the script wont find the start /
end of your email message
-
And finally you can edit the thank you
page, to match the design of your website, however, if you are using
an email address (with an @ sign) always put a \ before the @.
Don't Edit the lines containing __End_Of_Thanks_Page__
Else the script wont be able to find the start / end of your
thanks page.
Download
Zip File (5 KB) Self
Extracting Zip File (68 KB)
I would be grateful to have a link from the thank you page
of the script you are using. I don't mind it being a small link or
whatever. But fair is fair ;)
|