Quote:
03-02-02 at 08:52 AM GameZilla said this in Post #15
do same in newthread.php and newreply.php
find:
PHP Code:
// update user stuff
$dotitle="";
if ($bbuserinfo[userid]!=0)
and below that put
PHP Code:
// START Update GOLD
$userpointstr = $DB_site->query_first("SELECT field5 FROM userfield WHERE userid='$bbuserinfo[userid]'");
$pointstr = $userpointstr[field5];
$gold = $pointstr + 4;
$DB_site->query("UPDATE userfield SET field5='$gold' WHERE userid='$bbuserinfo[userid]'");
// END Update GOLD
REMEMBER TO CHANGE "field5" to the freld of your points
|
would there be any way to turn this around?
take away 2 points whenever the user posts? but this only when posting in a specific forum?
I need this for an RPG ... and it's gonna be energy level ... so this will only show in the RPG forum and I also just want points taken away when posting in there
anyone could please help me with this?