PDA

View Full Version : Automatically give reputation


okgaz
09-19-2007, 09:50 PM
Hi!

I want to automatically give a user reputation (with a comment) using php.

I have a userid for the rep to be from and to and a postid of the post the rep comment will refer to.

Does anybody know if there is a php command built in to vbulletin to do this?

WhaLberg
09-19-2007, 09:55 PM
Automatically give reputation if a user does what?

okgaz
09-19-2007, 10:02 PM
Automatically give reputation if a user does what?

If a file submitted to the site is approved by a moderator.

I want to add a couple of lines so that when a file is approved the user who submitted it gets reputation and a comment.

I'm sure I can do it using a couple of mysql queries but before I do I wanted to check if there is a better way or if anybody has done something similar? Sometimes there are functions built in to VB that allow you to do things like this really easily. I don't know how to find them though!