![]() |
plugin conditional help
I can't figure out how to put a usergroup conditional to show a link to just admin in this plugin that adds nav links in my PP Gallery....I tried a few but none worked.
Any Ideas? Code:
global $template_hook; |
If think you'd want:
Code:
if (is_member_of($vbulletin->userinfo, 6)) You may also need to declare $vbulletin as global. |
Quote:
|
Quote:
Just add it to your first line, like: Code:
global $template_hook, $vbulletin; |
Code:
global $template_hook, $vbulletin; Hmmm, I tried the code above, but no luck.. It just shows the conditional text and link. Im using global_state_check as the hook location, if that helps. |
You put it in the middle of the string. You need to do something like this:
PHP Code:
|
That made the plugin to stop working. Any more ideas? Thanks for the help BTW.
|
Hmm...I don't see anything wrong with it. Try temporarily removing the 4 lines starting with the 'if' and see if the plugin works (without the admin link of course).
edit: or comment them out like this: PHP Code:
|
I'll try that...
I noticed that the dot is missing for some of the tablinks... Code:
$tablinks .= |
Quote:
|
All times are GMT. The time now is 12:06 AM. |
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:
|