The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Style Permissions
I wanna make it so that certain styles can only be used by members of a certain group. Any suggestions?
|
#2
|
||||
|
||||
Quote:
Do you want to restrict access altogether or do you only want to restrict the options shown on the select menu in the usercp? If you only restrict access to the select menu, users can still see styles by adding &styleid=x to the URL... but it's less complicated as far as I know |
#3
|
||||
|
||||
You could try something like this:
in global.php, find: Code:
// style specified in user profile $styleid = $bbuserinfo['styleid']; PHP Code:
(untested) |
#4
|
|||
|
|||
Quote:
|
#5
|
|||
|
|||
Kodlar biras karışık sanki ?
|
#6
|
|||
|
|||
you could look at it from another angle and edit the templates. putting in a conditional to display the ads if the usergroup is not the ad-free usergroup might be easier also that would mean that your paying users wouldn't be limited to just one style to gain their benifits.
|
#7
|
|||
|
|||
Quote:
|
#8
|
|||
|
|||
Code:
<if condition="$bbuserinfo['usergroupid'] != X">Code to display ads</if> Code:
<if condition="$bbuserinfo['usergroupid'] != X && $bbuserinfo['usergroupid'] != Y">Code to display ads</if> |
#9
|
|||
|
|||
Quote:
|
#10
|
|||
|
|||
Quote:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|