I guess nobody every fixed the problem that has happened to various people trying this hack. Shame really, would be a good incentive to be able to give my users a bonus for commenting on others profiles. not much good when it cuts the figure down to the amount it's supposed to add, instead of actually adding it though.
I may have to have a wee look and see if I can figure out the problem myself then, cause I want to use this hack.
It can't be much really, the only bit that changes the dbase is:
$amt = $userpoints + $cost;
to calculate the amount and
UPDATE $pointstable SET
$fieldx = '" . $db->escape_string($amt) . "'
WHERE userid = " . $vbulletin->userinfo['userid'] . "
to actually change it.
|