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

Disable Specific User Upgrades for Non-Upgraded Users

#1
Hello,

At the moment it is possible to disable certain user upgrades for people who has ALREADY upgraded, this is doable with the "Disable User Upgrades" function. What I'd like to do is disable certain user upgrades for people who has NEVER upgraded their account. As far as I know this isn't possible with the current options available.

To be more specific, if you look at the following screenshot which shows a user who hasn't upgraded. I would like to hide the last three upgrades for this user. Can anyone give me a hint to how I can achieve that?


Thank you :)
Infuscu

PS. I know this is sort of hack for the functionaly I want and I'd like to improve it in the future but for now this is how I am gonna achieve the effect. Expect maybe if somebody has a different approach? :)
 

Jake Bunce

XenForo moderator
Staff member
#2
This requires an addon to extend this function:

XenForo_Model_UserUpgrade::getUserUpgradesForPurchaseList

That function retrieves the list of available user upgrades.