########################################################################
#Rate a site http://cgi-resource.co.uk
#
#Small script which lets users rate anything on your site whether it be
#other sites, goods, articles, demos etc.......
#Displays the average rating given along with the number of votes given.
#Uses templates
#Uses CSS
#########################################################################
Installation
#########################################################################
1. Open ratem2.cgi, check the path to perl is correct.
2. Change:
$dpaths = "votedata";
To where you want the data files to be created and stored.
$ipaths = "votedata";
To where your graph images are.
$cgi_path = "../cgi-bin";
To where your cgi bin is
$template_path = "votedata";
To where you have put the templates
$ssheet="";
To where you have put the stylesheet.
3. Upload ratem3.cgi to your cgi directory and give it 755 permissions.
Linking to it
#########################################################################
Use either of the two methods below for linking to it. Make sure you use a
different id number for each item you want peopel to vote on.
1. If you have SSI you can use the exec cgi command like:
This'll display the voting form and results directly on any page.
2. If you don't have SSI you can just link to it:
http://path to your site/cgi-bin/ratem31.cgi?id=3
SSI example:
Say you had item1, item2 and item3.
Item1
Item2
Item3
Finally if you want to track hits to the item link to the item using code like:
link name here
End note
#########################################################################
You must leave the links to my site intact on the success and error page.
Use this script at your own risk! ie. I take no responsibility for any damage caused.
There is NO free support offered with this script.
That's all hope you enjoy it!