Log in

View Full Version : creating a navbar button?


marlena
06-29-2007, 04:03 PM
Hey I have built whats called a radio blog which is a separate pop up window running off my own server that streams mp3s... I would like to add a button to get to it from the Navbar... can someone help me do this?

dm_fan
06-29-2007, 04:50 PM
it's pretty easy to add nav bar links.
Nav bar items are located in:
Style Manager > Choose your style > Navigation / breadcrumb Templates > navbar

All the nav bar links are located between the <!-- nav buttons bar --> and <!-- / nav buttons bar --> tags.

You should see some lines like:

<td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
<td class="vbmenu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>


They create the FAQ, Member list and Calendar links in the nav bar.
Just add a similar table data field like one of the one's above.
ie. here is one I've added after the calander link:

<td class="vbmenu_control"><a href="chat/flashchat.php"
target="flashchat">ChatRooms</a></td>


Steve

marlena
06-29-2007, 05:10 PM
wow! not near as difficult as I thought! Thanks so much it worked!

marlena
01-01-2008, 01:50 AM
Hey on this topic,
How do I make a navbar link visible only if the user is logged in?

Bounce
01-01-2008, 01:57 AM
Hey on this topic,
How do I make a navbar link visible only if the user is logged in?

<if condition="is_member_of($bbuserinfo, 6,11,12,or your usergroups ID)"><td class="vbmenu_control"><a href="yourlink">YourLink</a></td></if>

Happy New Year !

Dismounted
01-01-2008, 04:13 AM
<if condition="!is_member_of($vbulletin->userinfo, 1)"><td class="vbmenu_control"><a href="yourlink">YourLink</a></td></if>
Shorter code = better :p (in this case).