The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
|||
|
|||
Code:
global $template_hook; $vbulletin; $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> // if (is_member_of($vbulletin->userinfo, 6)) //{ //$tablinks .= '<li> link here </li>'; //} $tablinks .= '</ul> '; } $template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.mysite.com/gallery/">Gallery</a>'.$tablinks.'</li>'; The plugin is still not working now. hmmmm. |
#12
|
|||
|
|||
Oh, now I see, you missed the close quote and semicolon at the end of the line before the if. (You need to scroll right on my post #6 to see it).
|
#13
|
|||
|
|||
Code:
global $template_hook; $vbulletin; $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> // if (is_member_of($vbulletin->userinfo, 6)) //{ //$tablinks .= '<li> link here </li>'; //} </ul> '; } $template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.mysite.com/gallery/">Gallery</a>'.$tablinks.'</li>'; Code:
$tablinks .= '</ul> '; Code:
</ul> '; |
#14
|
|||
|
|||
Right, OK, but now you're pretty much back to where you started. If there are no other chnages, just copy what I posted in post 6 and try that. (Unless you're not posting the actual plugin code - then you'll have to look again at that line before the 'if' line).
|
#15
|
|||
|
|||
Quote:
EDIT: That is all the of plugin code. |
#16
|
|||
|
|||
So is it working now? Or are you asking me to point out the missing part I was talking about? It's at the end of this line:
Code:
<li><a href="http://www.mysite.com/gallery/search.php">Search</a></li>'; |
#17
|
|||
|
|||
Yes, the plugin and admin link are working now. Thank you so much! I been trying to fix this for weeks.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|