73
« on: August 08, 2011, 10:03:30 AM »
Step 4 from first post have a error!
Change:
//############ Start Profile Hits #################
if ($user_info['user_level'] != ADMIN) {
$sql = "UPDATE ".USERS_TABLE."
SET profile_hits = profile_hits + 1
WHERE user_id = $user_id";
$site_db->query($sql);
}
//############ End Profile Hits ##################
$site_template->register_vars(array(
"user_id" => $user_row['user_id'],
"user_profile_hits" => ($user_row['user_profile_hits']),//############ Mod Profile Hits ##################
With:
//############ Start Profile Hits #################
if ($user_info['user_level'] != ADMIN) {
$sql = "UPDATE ".USERS_TABLE."
SET user_profile_hits = user_profile_hits + 1
WHERE user_id = $user_id";
$site_db->query($sql);
}
//############ End Profile Hits ##################
$site_template->register_vars(array(
"user_id" => $user_row['user_id'],
"user_profile_hits" => ($user_row['user_profile_hits']),//############ Mod Profile Hits ##################