Hi
This is what i have all files and the folder images and lang are in a directory called rate and the address is www.rtsm.co.uk/rate/
the config file looks like this the index script for it is here www.rtsm.co.uk/index.php
// MySQL Settings
$dbhost="localhost"; // if you don't know the mysql settings ask your server admin
$dbname="*";
$dbuser="*";
$dbpass="*";
$prefix="voting_"; // table prefix
$dbtable="items"; // table name of the main taable
$dbtable_cookies="cookies"; // table name of the logging table
$dbtable_comments="comments"; // table name of the comments taable
// misc other settings
$sitename="Peanutsmuggling.co.uk"; // the name of your website
$siteurl="http://www.peanutsmuggling.co.uk/"; // the url of your site
$mailadmin="info@peanutsmuggling.co.uk"; // admin's mail address
$cookielogging=true; // either the script prevents from doublevoting by using cookies or...
$iplogging=false; // ...ips
$language="en"; // 'de' for german, 'en' for english
$pathtoscript=""; // path to the script folder from the file where the script is included (with slash at the end if set!)
// eg if you have an index.php file and the 'rateme' folder on the root dir and you want to include the script in
// this index.php file you have to set $pathtoscript="rateme/";
$cookiename="ratemecookie"; // name of cookie
$expire=20; // time in seconds to wait until you can rerate
$commentfloodtime=20; // time in seconds to wait until you can add a new comment on the same item
$adminname="admin"; // admin login name
$adminpwd="weekend"; // admin pass
$adminexpire=60*10; // time in seconds until you have to relogin for the adminpanel
$toplist=10; // number of items to be listed in top list, 0 for all items
$listtype="avg"; // Type of the top listing: 'avg' for top averages, 'points' for top points, 'mixed' for average of (average and points)
$addpic=true; // 'false' if only admin can add pics
$uploadpic=true; // if set true picture is uploaded and saved in the images folder else only path/url to the pic is saved
$maxpicsize=450000; // max picture size in bytes
$maxpicwidth=250; // width to which pic is shrinked if it's too large
$doapprove=true; // if set true surfer is sent an email that his item has to be approved before being listed by the admin.
$notifyadmin=true; // if set true admin gets mail when someone submits aa picture that has to be approved
$numoverview=20; // number of items shown per page on overview page
$numoverviewrow=3; // number of items shown per line on overview page
$showcomments=true; // display comments, true=yes, false=no
$numcomments=3; // number of comments to show per item
$showstatsonoverview= true; // display number of votes and average in the overview
$showcontactme=true; // show contact me link or not
Many thanks
Biffa98
Last edited by biffa98 (16-04-2007 14:23:59)