The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Subscription Usergroup Fix
I have a question about the Paid Subscription setup. Currently, you can set it so that when a user purchases that subscription, their usergroup gets changed to whatever usegroup you associate with that subscription.
The problem that I'm having, however, is that if a user purchases one subscription, which we'll call X, their usergroup gets changed to the associated usergroup with subscription X. Now, if that same user purchases subscription Y, his primary usergroup is set that of which is associated with subscription Y, and the old usergroup from subscription X is removed. Is there any way to make the subscription system update the primary usergroup, and make it's existing primary usergroup a secondary usergroup? This is all very confusing to explain. But, hopefully someone will catch my meaning. The problem is that if someone purchases X, and then Y, their forum permissions from being a member of usergroup X are removed, and those of usergroup Y take effect. I need there to be both, where the primary will be Y, and the secondary will be X (Given that the user purchased X and then Y respectively). Thank you. |
#2
|
|||
|
|||
You can set it just to add the permissions..
That's what I do. Its right in the same interface. |
#3
|
|||
|
|||
You're not understanding what I'm saying, apparently. Yes, you can set it there, however that just sets their PRIMARY usergroup. Yes, you can set secondary, but then someone who only purchases subscription Y will get permissions for X and Y.
What I'm asking isn't hard to understand. If you purchase X, you get the permissions to access the forum related to X. If you purchase Y, you get the permissions to access the forum related to Y. When you purchase X, your usergroup changes to that of which is associated with X, and the same with Y. The issue is that if you purchase X, and then Y, your usergroup changes to just Y. The old usergroup, of X, is removed, when it should be set as a secondary usergroup. |
#4
|
||||
|
||||
I don't see the problem with just setting them as secondary? A "yes" permission will always overtake a "no".
|
#5
|
|||
|
|||
Quote:
For what I'm doing, it's necessary for it to be automated. |
#6
|
||||
|
||||
Did you set up the subscription so it does this?
|
#7
|
|||
|
|||
The subscription is currently set up so that when they purchase the Paid Subscription called X, their primary usergroup gets changed to X, so that they have the user title and color, and permissions associated with usergroup X. Usergroup why is set up so that they get everything associated with usergroup Y.
The issue is this, I'll attempt to explain it again. When they purchase X, for say $5, they are changed into the primary usergroup of X. Now, if they purchase usergroup Y, for say $10, they are changed into the primary usergroup of Y. The problem comes that they should still have the access rights to usergroup X as well, because they did pay for it. So, Y (since it is the most recent paid subscription for that user) should be set as the primary usergroup, and their old primary usergroup of X should be changed into an "additional usergroup" (secondary). Do you follow? This isn't as much for forum access than it is for something else. The point here is that I need to have the subscription script check to see if they have a currently active subscription, and if they do, move that subscription usergroup into an additional usergroup, and set the primary usergroup to that of the newest subscription (the second one, Y). |
#8
|
||||
|
||||
Just create a "normal" usergroup and make this the primary usergroup always. Make both the subscriptions add as secondary. This will make the user have both sets of permissions. The user can choose the "Display Usergroup" in their User CP.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|