Upgrade user API (need help on vars for : function upgradeUser)

  • Thread starter Thread starter account8226
  • Start date Start date
A

account8226

Guest
Hello,

I would like to create my add-on which would upgrade a user when he do something.

But I don't get how to use this :

public function upgradeUser($userId, array $upgrade, $allowInsertUnpurchasable = false, $endDate = null)

What do I have to add into these var :
  • array $upgrade
  • $allowInsertUnpurchasable
  • $endDate (I want upgrade to last forever)
How do I tell the API in what usergroup I want the user to be added ?
I don't get the use of this upgrade array.

Best regards.
 
Ok thanks, no way to automaticly user the xenforo's functions ?
 
Top Bottom