PDA

View Full Version : [uCash + Warning System] Fine members


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

Polo
03-04-2005, 05:36 PM
This is nice... will give it a try... thanks for sharing :)

bluesteel
03-05-2005, 12:52 PM
Thanks for this kevin.Can you please tell me what happens if, for example, you set it to deduct 20 points, but the member only has 10 points?

kevinnguyen
03-05-2005, 01:32 PM
the member will have -10 points :D
you can put a condition statement if you want him to have 0 points instead of a negative value
but for me, i like it that way as a punishment for spammer ;)

Creed
03-07-2005, 03:35 AM
Very nice, I like this!!!!

nettstedet
03-08-2005, 01:48 PM
Is there a way to update those that were members prior to installing this hack so they receive their cash points?

bluesteel
03-08-2005, 02:43 PM
the member will have -10 points :D
you can put a condition statement if you want him to have 0 points instead of a negative value
but for me, i like it that way as a punishment for spammer ;)

Cheers Kevin. Was just worried in case it generated an error.
*installs

kevinnguyen
03-08-2005, 03:37 PM
Is there a way to update those that were members prior to installing this hack so they receive their cash points?
u mean you wanna fine all members that got warned prior to installing this mod?
if so, yes its posible, just run an UPDATE query in phpMyAdmin
but i think we should inform members the punishment before we do it

atrljoe
03-10-2005, 04:24 PM
Nice hack

Desainer
04-08-2005, 01:25 PM
Hey sorry to bother... But where can I get this functions_warning.php? I have a vbb 3.0.7 but I don't seem to have this file...

Genghis_Khan
04-19-2005, 03:00 PM
Hey sorry to bother... But where can I get this functions_warning.php? I have a vbb 3.0.7 but I don't seem to have this file...
so am i

Marco van Herwaarden
04-19-2005, 03:06 PM
Lol, i think this is an addon for those who have both uShup AND AWS (Advanced Warning System).

AWS: https://vborg.vbsupport.ru/showthread.php?p=574374#post574374

Reeve of shinra
04-19-2005, 11:15 PM
I haven't done since going to vb3 but we did the same thing with the vb2 store and aws hack. It worked out rather nicely and autobanned when a user hit a certain amount of negative points. Good work by the way :)