kevinnguyen
03-03-2005, 10:00 PM
On my forums, members spam like crazy to get points.
If you have a big RPG forum, u'll need this
What does this mod do?
It deducts an amount of points of a member if he gets warned
This mod takes less than 1' to install
Open functions_warning.php
Find:
global $DB_site, $warn_type, $force_email_temp, $force_email_perm, $level;
Replace with
global $DB_site, $warn_type, $force_email_temp, $force_email_perm, $level, $vboptions;
Find:
return $warn_type;
Above add:
$DB_site->query("UPDATE " . TABLE_PREFIX . "$vboptions[uttpoints_pointtable] SET " . $vboptions['uttpoints_pointsfield'] . " = " . $vboptions['uttpoints_pointsfield'] . "-" . $amount . " WHERE userid='$user[userid]'");
Replace $amount with an amount of points you wanna fine
That's it! Enjoy
If you have a big RPG forum, u'll need this
What does this mod do?
It deducts an amount of points of a member if he gets warned
This mod takes less than 1' to install
Open functions_warning.php
Find:
global $DB_site, $warn_type, $force_email_temp, $force_email_perm, $level;
Replace with
global $DB_site, $warn_type, $force_email_temp, $force_email_perm, $level, $vboptions;
Find:
return $warn_type;
Above add:
$DB_site->query("UPDATE " . TABLE_PREFIX . "$vboptions[uttpoints_pointtable] SET " . $vboptions['uttpoints_pointsfield'] . " = " . $vboptions['uttpoints_pointsfield'] . "-" . $amount . " WHERE userid='$user[userid]'");
Replace $amount with an amount of points you wanna fine
That's it! Enjoy