PDA

View Full Version : A way of adding posts to a user?


aceofspades
10-05-2006, 01:51 PM
Im making a mod and i would like to be able to add posts to a users post count for doing certain things. Is this possible, is so, how?

Regards,

James

BigJohnny
10-05-2006, 03:33 PM
you can do it in user options can you not?

aceofspades
10-05-2006, 05:50 PM
Unfortunatly (changing the post count of a user every time they submit content to my main site) x (1543 users) isnt viable for me. I need it to be automatic, perhaps a query that can be ran when a user submits content that will increase their post count by 2.

James

aceofspades
10-07-2006, 12:41 PM
bump

nico_swd
10-08-2006, 06:47 PM
$db->query("
UPDATE ". TABLE_PREFIX ."user
SET posts = (posts + 1)
WHERE userid = ". $vbulletin->userinfo['userid']
);