PDA

View Full Version : Plugin not working ! Any ideas ?


dannyb2100
09-29-2009, 07:44 PM
Adding a pluging with the hook location:

newthread_post_complete
newreply_post_complete
newpost_complete

With the query,
$db->query_write("UPDATE userdb SET fpoints=fpoints+'2' WHERE email='".$vbulletin->userinfo[email]."'");
But for some reason its not working, Any ideas guys ??

Paul M
09-29-2009, 08:24 PM
Well for starters, there is no userdb table in vbulletin, so I think maybe you need to provide a bit more information or background. Also, what makes you think its not working ? Do you get an error of some sort ?

dannyb2100
09-29-2009, 08:47 PM
Well for starters, there is no userdb table in vbulletin, so I think maybe you need to provide a bit more information or background. Also, what makes you think its not working ? Do you get an error of some sort ?

Its a fully custom script ;)

userdb is part of my own code, I know its not working as there is no mysql update :)
Due to it being my own code I cannot reveal SOO much only what I believe is not working.

Any ideas at all ??

What I want from the hooks obv is whena new thread, reply or post is done it will run the mysql query and give x points.

Lynne
09-29-2009, 09:21 PM
SET fpoints=fpoints+2