The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Paid Subscription by Usergroup
I would like to allow specfic usergroups access to purchase a subscription(s)
It worked great in 3.07 by editing the subscription.php file. I can no longer find they syntax I changed in 3.07. Is this possible to do in 3.50? Thank you in advance. |
#2
|
||||
|
||||
subscription.php is now payments.php in vB 3.5
Chris |
#3
|
|||
|
|||
The code is different from version 3.07 to 3.50. Would you have a suggestion for allowing just one usergroup to use the paid subscriptions?
The code I changed perviously is from Code:
if ($bbuserinfo['userid'] == 0) Code:
if (!is_member_of($bbuserinfo, 10)) Thanks in advance. |
#4
|
|||
|
|||
Whould anyone have a suggestion for allowing one specfic usergroup to purchase a paid subscription?
|
#5
|
||||
|
||||
Untested...
You should be able to add the following conditional statement around the payment link in templates to prevent it appearing to users who aren't in group 10. Any code inbetween these two tags will only appear to member of group 10. HTML Code:
<if condition="is_member_of($bbuserinfo, 10)">
HTML Code:
</if>
PHP Code:
|
#6
|
|||
|
|||
I apologize, this may be above my skill level
Would you be so kind as to provide more detail. Thank you in advance. |
#7
|
||||
|
||||
Download the attached plugin to your computer.
Now install it on your system (Plugin system -> Download / Upload Plugins). Only users of usergroup 10 will be able to access the plugin system |
#8
|
|||
|
|||
Thank you very much. That works like a champ. I truely do appericate your assistance.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|