Log in

View Full Version : Update User Field


FatalBreeze
07-27-2006, 07:47 AM
Hi guys, in my forums, every user which gets to 150 posts, recieves a gift. so i wanted to build this function, i figured that in order to do so i have to have a look in functions_newpost.php, so i went there and then i figured i need to create a plugin for "newpost_complete".
actually what i want is to run a query every time a user reaches 150 posts.

so that's the code i entered:

if($vbulletin->userinfo['posts'] == 150) {
//query here
}


the only problem is that it doesn't work...
can you help me? thanks. :)

FatalBreeze
07-29-2006, 12:14 PM
guys?

SiriusBlack22
07-30-2006, 04:50 AM
this is a bit different than what you want, but there is Icash that can make it easier and requires barely any coding...

FatalBreeze
07-30-2006, 05:59 AM
ok, leave the points aside.
i just want to run a query every time a user reaches 150 posts.
how do i do so?