|

NEW! Mods section!
|
Plus and minus rating - Rate:  | | /*This should only be done to a fresh install of the script (no rating has been done) or you will have to go into MySQL and change the \'ratedtotal\' field of every post to 0, you can use the following SQL query:
UPDATE babeloggerv3 SET ratedtotal=\'0\'
*/
/*OPEN rate.php*/
/*FIND*/
if(!$_POST[rate]){die(header(\"Location: $script_url/msgs.php?msg=linksubmiterror\"));}
mysql_query(\"UPDATE babeloggerv3 SET r_ip=\'$ip\',ratedtally=ratedtally+1,ratedtotal=ratedtotal+$_POST[rate] WHERE id=\'$id\'\");
/*REPLACE WITH*/
if($_GET[dir]==\"up\")
{
mysql_query(\"UPDATE babeloggerv3 SET r_ip=\'$ip\',ratedtotal=ratedtotal+1 WHERE id=\'$id\'\");
}
elseif($_GET[dir]==\"down\")
{
mysql_query(\"UPDATE babeloggerv3 SET r_ip=\'$ip\',ratedtotal=ratedtotal-1 WHERE id=\'$id\'\");
}
/*SAVE rate.php*/
/*OPEN index.php*/
/*FIND*/
$ratebox=\"
\";
if($row[ratedtally]==\"0\"){$rating=\"No Rating\";}else{$rating=substr(($row[ratedtotal]/$row[ratedtally]), 0, 3);}
/*REPLACE WITH*/
$ratebox=\"+ / -\";
$rating=$row[ratedtotal];
/*SAVE index.php*/
/*OPEN comments.php*/
/*FIND*/
$ratebox=\"
\";
if($row[ratedtally]==\"0\"){$rating=\"No Rating\";}else{$rating=substr(($row[ratedtotal]/$row[ratedtally]), 0, 3);}
/*REPLACE WITH*/
$ratebox=\"+ / -\";
$rating=$row[ratedtotal];
/*SAVE comments.php*/
/*OPEN frame.php*/
/*FIND*/
if($row[ratedtally]==\"0\"){$rating=\"No Rating\";}else{$rating=substr(($row[ratedtotal]/$row[ratedtally]), 0, 3);}
$ratebox=\"
\";
/*REPLACE WITH*/
$ratebox=\"+ / -\";
$rating=$row[ratedtotal];
/*SAVE frame.php*/
/*ALL DONE!*/
|
|