![]() |
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 |
That should work. Which hook are you using? You may need to add
Code:
global $vbulletin; to the beginning of your plugin code. |
Hello.. not working..
i use it in forumhome_complete |
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?
|
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:
|
OK, I think you should use:
Code:
if (is_member_of($vbulletin->userinfo, 6)) { |
Hello..
Thank you.. working now :) |
All times are GMT. The time now is 06:47 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:
|