The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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; $tabselected = ''; $tablinks = ''; if (PP_SCRIPT == 'PP_Pro') { $vbulletin->options['selectednavtab']='pp_pro'; $tabselected = ' class="selected"'; $tablinks = ' <ul class="floatcontainer"> <li><a href="http://www.mysite.com/gallery/index.php">Gallery Home</a></li> <li><a href="http://www.mysite.com/gallery/showgallery.php?cat=500&ppuser=$vbuserid">My Photos</a></li> <li><a href="http://www.mysite.com/gallery/search.php?what=fav">My Favorites</a></li> <li><a href="http://www.mysite.com/gallery/useralbums.php">My Albums</a></li> <li><a href="http://www.mysite.com/gallery/uploadphoto.php">Upload Photos</a></li> <li><a href="http://www.mysite.com/gallery/search.php">Search</a></li> I WANT TO ADD CONDITIONAL HERE <li>LINK FOR ADMINS</li> END CONDITIONAL </ul> '; } $template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.mysite.com/gallery/">Gallery</a>'.$tablinks.'</li>'; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|