Quote:
Originally Posted by Lionel
Thanks. I automatically give 200 points to new users and they are being ripped off. Can it also be made that you cannot steal from anyone with less than 10 posts?
|
This hack assumes that you haven't installed the code I posted above...
In action.thief.php find:
PHP Code:
$thefted = $DB_site->query_first("SELECT userid, username, ".$vboptions['uttpoints_pointsfield']." AS points FROM ".TABLE_PREFIX."user WHERE ".$field."='".addslashes($data)."'");
REPLACE with:
PHP Code:
$thefted = $DB_site->query_first("SELECT userid, username, posts, ".$vboptions['uttpoints_pointsfield']." AS points FROM ".TABLE_PREFIX."user WHERE ".$field."='".addslashes($data)."'");
find:
PHP Code:
if ($userid == $bbuserinfo['userid']) {
$message = "You may not steal from yourself!";
uttstore_print_end_message($message);
}
Add under:
PHP Code:
if ($thefted[posts]<=10) {
$message = "Leave the little ones alone now!";
uttstore_print_end_message($message);
}
Lemme know if you also used the code I posted earlier in this thread and I'll adjust it...
btw, I can't test this right now, but the code is simple. It should work without issue.
|