the only thing needed to do so, is to modify redirect.php slightly
insert some thing like this:
- Code: Select all
$sql ='UPDATE '.USERS_TABLE.' SET user_points=user_points+10 WHERE user_id="'.$userdata['user_id'].'"';
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "Couldn't update users points", "", __LINE__, __FILE__, $sql);
}
this should be inserted rigth BEFORE this:
- Code: Select all
$template->set_filenames(array(
'body' => 'redirect.tpl'));
this shows how to add 10 points, you may ofcouse raise it, if you fell like


