![]() |
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') |
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. |
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) |
Quote:
Nevermind, figured it out. Thanks :D |
All times are GMT. The time now is 05:00 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|