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

Upgrade active User Upgrade accounts

Discussion in 'XenForo Questions and Support' started by ragtek, May 9, 2011.

  1. ragtek

    ragtek Guest

    Is it possible to change the expire date for active userupgrades?

    I want to add 6 months for free to some useraccounts, but i'm not sure how i can make this.
    I've just found a way to downgrade them, but not to give them some months for free.
  2. Brogan

    Brogan XenForo Moderator Staff Member

    That's not currently possible.

    A workaround is to downgrade them and then manually upgrade them again.
    If it's not a permanent upgrade then you can manually set the expire date per user.

    If it's a permanent upgrade then you can create a new upgrade with a fixed duration and set it to not purchasable, which you can use for this purpose.
    Only administrators can apply it if it is set to not purchasable.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This query will add X number of days to all active upgrades:

    UPDATE xf_user_upgrade_active
    SET end_date = end_date + X*60*60*24
    But if you only want to extend some upgrades then you need to somehow specify that in the query. Or you can edit each upgrade manually like Brogan suggested.
  4. ragtek

    ragtek Guest

    the query wouldn't be a problem, but i hoped that such a feature is in the core:/
    Steve F likes this.

Share This Page