The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Forcing style on a usergroup
This should be an EASY one;
I am trying to write a plugin using the global_start hook to administer the above affect. This is the code I'm using; Code:
if ($usergroupid == '12') { $styleid == '3'; } |
#2
|
|||
|
|||
The hook probably fires after the style is already selected, in which case you'd manually have to edit files (lame).
BTW, don't use quotes when working with numeric values. You're treating them as strings. |
#3
|
||||
|
||||
Thanks, I didn't know either of those facts.
I have got this running. I simply needed to use the style_fetch hook instead. I used the following code; Code:
if ($vbulletin->userinfo['usergroupid'] == XX) { $styleid = X; $userselect = true; } |
#4
|
|||
|
|||
Quote:
Nevermind, figured it out. Thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|