JGP Ratings Install

 

Edit Files

First, open rate.cgi and make sure the first line is you path to perl. Then open rate_display.cgi and rate_admin.cgi and do the same. Finally, open config.db and follow the included instructions.

 

Upload and Set Permissions

All files should be uploaded in ACSII except the images, which are Binary. Then make sure all folders exist and that the database folder and main.db is CHMOD 777 and that the files rate.cgi, rate_display.cgi, and rate_admin.cgi are CHMODED 755. These are very important steps.

 

Create Ratings

Before you can display the ratings on a page, you must run rate_admin.cgi to create all the database files. Just open your browser and enter the following in your address bar:

http://www.domain.com/cgi-bin/rate_admin.cgi?password=gladiator

Note, replace gladiator with whatever password you used in the config file. Now click "Create New" and fill out the form. DO NOT use the same ID for two different ratings or some data will be overwritten (Use 0001, 0002, billybob, rating1, ect).

 

Display Ratings

Now that you have the database created, you can now display the information and rating form on your webpage. To do this, simply insert the following (requires SSI):

<!--#include virtual="/cgi-bin/rate_display.cgi?&id=0001"-->

Replace the ID with the ID of the product you are wanting to display.