Forum Moderators: open
I've downloaded a free rating system for my site.
It doesn't come with very much guidance at all.
It says:
How to install:
Unzip this file into your directory. Edit config.inc.php and setup database URL, and path informations.
Create/Setup database using database.sql file. You need to use phpMyAdmin for dumping SQL file in database, most of control panels have this.
I know nothing about databases.
I have created the following:
database: cyprustr_rate
username: emmac4t
password: ***example***
The notes that came with this script are as follows:
<?php
// START EDITING HERE
$DB_USR = "";
$DB_PWD = "";
$DB_NAME = "";
$DB_HOST = "";
// always close your URL with ending slash /
//default URL path like [yourdomain.com...]
// where test.php is or your PHP file with rating file
$DEFAULT_URL = "";
// default template path where template_test.html and
// template.confirmare.html can be found.
// always close the path with ending slash /
// /home/path/to/your/files/rate/
$TEMPLATE_PATH = "";
// rate directory, we suggest rate/
// always close the path with ending slash /
// like /home/path/to/your/files/rate/
$RATE_PATH = "";
// rate URL,
// always close your URL with ending slash /
// like [yourdomain.com...]
$RATE_URL = "";
// END EDITING HERE
// en (English), ro (Romanian) etc.
$LANG = "en";
// time expire (Should be in secs! 1 min = 60 sec; 1 hour = 3600 sec; 1 day = 24*3600; 3 days =3*24*3600 )
$TIME_EXPIRE = 3600;
// the type of rating listing
// (choose: option->drop down menu or radio -> radio buttons)
$RATE_TYPE="radio";
// How many stars? full=10 stars half=5 stars
$RATE_STAR_OPTION="full";
?>
Do I need to create tables in this database?
What do I need to change in the above code?
I want to make a simply rate system that will allow website users to rate a place/book/hotel from 1 - 5
Any help appreciated