PDA

View Full Version : Forum Display Enhancements - Easy Navbar Links


SuperTaz
01-11-2009, 10:00 PM
Description:
This template edit displays quick and easy links to your navigation.

Installation Time: Less than 1 minute

I got the inspiration from "yoyoyoyo" who made a similar mod for 3.6.8. Although his might work fine for this also, I decided to alter it a bit and cleaned up some code.

I did PM yoyoyoyo to use a variation of his hack but, since he has not been online since September 2008, I can't get a response.

Since yoyoyoyo came up with this type of template edit, all the credit goes to him.

Here is the mod from yoyoyoyo for version 3.6.8:

https://vborg.vbsupport.ru/showthread.php?t=160642

Template Edit:

Styles and Templates > Style Manager > Your Style > Navigation / Breadcrumb Templates > Navbar:

In the Navbar find:


<!-- breadcrumb, login, pm info -->


Above it add:


<!-- Navbar Links -->
<div align="center">
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:1px">
<tr align="center">
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
<td class="vbmenu_control"><a href="http://url.com">Your Title</a></td>
</tr>
</table>
</div>
<!-- / Navbar Links -->


Then click Save and Reload!

Done!

OPTIONAL:

If you want to show a link only to members use this:


<if condition="$show['member']">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</if>


If you want to show a link only to members, and a different link to guests use this:


<if condition="$show['member']">
<td class="vbmenu_control"><a href="http://url.com">Member Link Title Goes Here</a></td>
<else />
<td class="vbmenu_control"><a href="http://url.com">Guest Link Title Goes Here</a></td>
</if>


To make the link open in a new window use this URL instead:


<td class="vbmenu_control"><a href="http://url.com" target="_blank">Link Title Goes Here</a></td>


To make the link(s) only visible to certain usergroups use this:


<if condition="is_member_of($bbuserinfo, X, Y, Z)">
<td class="vbmenu_control"><a href="http://url.com">Link Title Goes Here</a></td>
</if>


Substitute X, Y, Z with the ID numbers of the groups that you want to allow to see the link. If you only want one usergroup to be able to see the link then use: $bbuserinfo, X and substitute X with the ID number of the group that you want to allow to see the link.


Of Course you want to change the URL's to your site URL and direct the link to any site or feature you want for your site.

Any problems, let me know.

Make sure if you use this template edit to CLICK INSTALL.

Nightmare-GameZ
01-27-2009, 05:25 AM
yay first one! Installed! xD

Lautaro
01-27-2009, 09:11 AM
Thanks, installed & rated...

I have a question:

How can i make it look like the normal navbar ( with the white border ) ? because this one doesn't has the white border.. i want the 2 navbars to look the same..

SuperTaz
01-29-2009, 10:36 PM
Can you post a picture of what you mean so I can see what you want.

sowyrgardn
02-03-2009, 06:10 PM
Very easy to install and great results!! thank you!

Acoly
02-03-2009, 09:01 PM
I'm having issues centering the links. I only need two links, one for DKP and one for a Raid Calendar (it's for a MMO guild website). They don't center correctly, and I've adjusted the labels accordingly.

Any suggestions?

SuperTaz
02-05-2009, 12:05 AM
I'm having issues centering the links. I only need two links, one for DKP and one for a Raid Calendar (it's for a MMO guild website). They don't center correctly, and I've adjusted the labels accordingly.

Any suggestions?

Can you post your site link so I can take a look?

SuperTaz
02-05-2009, 12:12 AM
Updated the conditionals and the .txt file.

SuperTaz
05-01-2009, 04:07 AM
Any other questions, let me know. I am not around much, so I will help anyone when I can.

The Big Three
05-26-2009, 08:04 PM
How do you make it so it goes down like "Quick Links"

SuperTaz
06-20-2009, 01:00 AM
How do you make it so it goes down like "Quick Links"

This might help you out:

https://vborg.vbsupport.ru/showthread.php?t=166136

SuperTaz
10-05-2009, 01:32 AM
Fixed a slight error in one of the codes. Nothing to worry about though.

SuperTaz
12-21-2010, 09:50 AM
Edited some text but not the mod itself.

SuperTaz
04-11-2011, 02:04 AM
Just wanted to let you all know that even though it says not supported, I will still give limited support for this vBulletin version as I have moved on to vB 4.x series.