1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'XenForo Development Discussions' started by account8226, Nov 30, 2012.

  1. account8226

    account8226 Guest


    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 :

    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.
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  3. account8226

    account8226 Guest

    But I wanted to upgrade users from a custom php page since I am not using paypal to upgrade users.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

  5. account8226

    account8226 Guest

    Ok thanks, no way to automaticly user the xenforo's functions ?

Share This Page