The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Plugin code to show for specific usergroup only
Hello..
how to change this code to work inside the plugin: show to specific group only: PHP Code:
PHP Code:
thanks |
#2
|
|||
|
|||
That should work. Which hook are you using? You may need to add
Code:
global $vbulletin; to the beginning of your plugin code. |
#3
|
|||
|
|||
Hello.. not working..
i use it in forumhome_complete |
#4
|
|||
|
|||
Hmm...I don't see why that wouldn't work, and you don't need a "global" statement there. If you're using it to decide to add something to the FORUMHOME template, are you registering your variable to the template?
|
#5
|
|||
|
|||
I installed one mod from vb.org, and i saw the plugin named "Stat render", using forumhome_complete, i just want to show the stat for admin only, here is the complete code:
PHP Code:
|
#6
|
|||
|
|||
OK, I think you should use:
Code:
if (is_member_of($vbulletin->userinfo, 6)) { |
#7
|
|||
|
|||
Hello..
Thank you.. working now |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|