vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   creating a navbar button? (https://vborg.vbsupport.ru/showthread.php?t=150975)

marlena 06-29-2007 04:03 PM

creating a navbar button?
 
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:
Quote:

<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:
Quote:

<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

Quote:

Originally Posted by marlena (Post 1412967)
Hey on this topic,
How do I make a navbar link visible only if the user is logged in?

Quote:

<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

Code:

<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).


All times are GMT. The time now is 06:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00960 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete