The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hey looking for a command/function from the vbulletin API (3.8.7) - I've read the documentation but found nothing useful in there, also did some searches found nothing.
Heres my plan, I have an automated donation system that is mostly linked to a 3rd party game, I made it so once this donation system gets a positive response from the paypal IPN, to send a confirmation PM to the user which is working fine ATM, the problem I'm having is I cant find a proper function to promote the user to a different usergroup. Any help will be appreciated |
#2
|
|||
|
|||
![]()
I don't think there's a function just for doing that, but you can use the user datamanager. I was looking at includes/cron/promotion.php which changes usergroups based on the Promotions you have configured. For reasons I don't understand (maybe efficiency), it changes the database directly to update some of the fields, then uses the datamanger to update others. So there might be something there that would be useful.
I haven't tested this, but taking some code from promotions.php, you might be able to do this: PHP Code:
Of course that changes the primary group. If you wanted to add a secondary group instead that would be a bit more complicated. ETA: You could just use an SQL query to update the usergroupid field in the user table, and that's probably enough as long as the change in group doesn't result in changes to titles or ranks or anything like that. |
#3
|
|||
|
|||
![]() Quote:
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|