In your changebasic.php script paste this: code:
// ====== START =======
// Profile Star Rewards
$stars = 0;
if (!empty($Fakeemail)) {
$stars = $stars + 5;
}
if (!empty($Name)) {
$stars = $stars + 5;
}
if (!empty($Occupation)) {
$stars = $stars + 5;
}
if (!empty($Hobbies)) {
$stars = $stars + 5;
}
if (!empty($Location)) {
$stars = $stars + 5;
}
if (!empty($Bio)) {
$stars = $stars + 5;
}
if (!empty($Picture)) {
$stars = $stars + 5;
}
if ($Visible == "yes") {
$stars = $stars + 5;
}
$realrating = $stars / 8;
$realrating = intval($realrating);
$stars_q = addslashes($stars);
$realrating_q = addslashes($realrating);
$query = "
UPDATE w3t_Users
SET U_Rating = '$stars_q',
U_Rates = '8',
U_RealRating = '$realrating_q'
WHERE U_Username = '$Username_q'
";
$dbh -> do_query($query);
// Profile Star Rewards
// ======= END ========
Just above this line: code:
// ---------------------------------------------------
// Send them to their start page with the confirmation
$html -> start_page($Cat);
I think that should do the trick.