Back to vBulletin 3.8 Template Modifications

Hiding Certain Navbar Links From Guests
Mod Version: 1.00, by metalguy639

vB Version: 3.8.1 Rating: (0 vote - 0 average) Installs: 7
Released: 27 Feb 2009 Last Update: Never Downloads: 1
Not Supported Template Edits  

THIS TEMPLATE EDIT BROUGHT TO YOU BY:


http://www.skinsnstyles.com

CLICK INSTALLED TO GET SUPPORT FOR THIS ADD-ON. IF YOU DO NOT CLICK INSTALLED I CANNOT HELP YOU.

If you want to hide some of the links in your navbar to guests you can do it by adding an if/else statement to your template code.

Steps To Add Code:

1. Login to your admin CP
2. Scroll down to Styles & Templates & click on "Style Manager"
3. Now find the skin you want to edit in the right side panel.
4. Click the drop down box and choose "Edit Templates"
5. Expand the templates to include all the template groups by clicking the bottom left button on the far right large box.
6. Scroll through the templates until you find the "navbar" template & double click on it.
7. Now you should see the code, I will go through each button that does not have the if/else statement on it already.

To Hide The FAQ Link:

Find:

Code:
<td class="vbmenu_control"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
Replace With:

Code:
<if condition="$show['member']">
<td class="vbmenu_control"><a rel="help" href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
</if>
To Hide The Community Link Popups:

Find:

Code:
<if condition="$show['communitylink'] AND $show['popups']">
			<td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
Replace With:

Code:
<if condition="$show['member']">
		<if condition="$show['communitylink'] AND $show['popups']">
			<td class="vbmenu_control"><a id="community" href="$show[nojs_link]#community" rel="nofollow" accesskey="6">$vbphrase[community]</a> <script type="text/javascript"> vbmenu_register("community"); </script></td>
		</if>
To Hide The Search Link:

Find:

Code:
<td class="vbmenu_control"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
			</if>
Replace With:

Code:
<if condition="$show['member']">
<td class="vbmenu_control"><a id="navbar_search" href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("navbar_search"); </script></if></td>
			</if>
</if>
You can pretty much hide any links that you want as long as you include both tags into your code. Be sure to always put:

Code:
<if condition="$show['member']">
at the beginning of the link area and be sure to close your tag and place...

Code:
</if>
at the end.

If you get an error or get stumped, post here & I will try to help you.

Download

No files for download.

Screenshots

Click image for larger version
Name:	Logged In.png
Views:	486
Size:	21.5 KB
ID:	95551   Click image for larger version
Name:	Logged Out.png
Views:	453
Size:	18.2 KB
ID:	95552  

Similar Mods

[Release] - [Gamma] - Hiding Some "Quick Links" From Guests vBulletin 3.0 Template Modifications

vblts.ru supports vBulletin®, 2022-2024