I'll definately have to run those when I get home.
The weird thing is, it's adding points when you post a new thread..
but not when you reply :ermm:
Fixed. I think it was where the code was being put. I checked out the newthread mod and it put it just above where it started defining the variables, so I moved the newreply code to the same spot and it worked.
Short version to fix this bug if you have it like I did.
Open newreply.php
Find:
Code:
$newpost['title'] = $_POST['title'];
ABOVE IT PUT:
Code:
// rpg
// Itemshop code by Mewtwo and Battle Code by Bitsys
if ($vboptions['rpg_givepostexp'] == 1 AND $vboptions['rpg_expperpost'] >
0)
{
$DB_site->query("UPDATE " . TABLE_PREFIX . "user SET
xp=xp+$vboptions[rpg_expperpost] WHERE userid='$bbuserinfo[userid]'");
// End Itemshop code by Mewtwo and Battle Code by Bitsys
if ($bbuserinfo['inbattle'] == 0 AND
$bbuserinfo['inmonsterbattle'] == 0)
{
process_rpg_stats($bbuserinfo);
}
}
//end auto-update stats add-on for the RPG Integration Hack by Bitsys