Announcement

Collapse
No announcement yet.

How To Add A Link To The Navbar

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jake Bunce
    replied
    Or to add an additional popup menu to the navbar...

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar

    Find this code and add the red code:

    Code:
    		<if condition="$show['popups']">		
    			<if condition="$show['searchbuttons']">
    				<if condition="$show['member']">
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
    				<else />
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
    				</if>
    				<td id="navbar_search" class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
    			</if>
    			<if condition="$bbuserinfo['userid']">
    				<td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>		
    			</if>
    			[color=red]<td id="mypopupmenu" class="vbmenu_control"><a href="#mypopupmenu">MENU TITLE</a> <script type="text/javascript"> vbmenu_register("mypopupmenu"); </script></td>[/color]
    		<else />		
    			<if condition="$show['searchbuttons']">
    Change the MENU TITLE appropriately.

    Then in that same template, scroll to the very bottom. Add the the red code:

    Code:
    		</table>
    	</div>
    	<!-- / user cp tools menu -->
    	</if>
    
    	[color=red]<!-- mypopupmenu -->
    	<div class="vbmenu_popup" id="mypopupmenu_menu" style="display:none">
    		<table cellpadding="4" cellspacing="1" border="0">
    		
    		<tr><td class="thead">MENU TITLE</td></tr>		
    		[color=blue]<tr><td class="vbmenu_option"><a href="URL">LINKED TEXT</a></td></tr>[/color]
    		</table>
    	</div>
    	<!-- / mypopupmenu -->[/color]
    <!-- / NAVBAR POPUP MENUS -->
    </if>
    Change the MENU TITLE, URL, and LINKED TEXT appropriately. Add more instances of the blue code within the red code to add more links to the popup menu.

    Leave a comment:


  • Jake Bunce
    replied
    Or to add another row of navbar links for when the first row gets too full...

    This will add a second row of navbar links underneath the existing row. Edit this template:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar

    Add the red code:

    Code:
    		</if>
    	</tr>
    	</table>
    </div>
    <!-- / nav buttons bar -->
    
    [color=red]<!-- second nav button row -->
    <div align="center">
    	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    	<tr align="center">	
    		[color=blue]<td class="vbmenu_control"><a href="URL">LINKED TEXT</a></td>[/color]
    	</tr>
    	</table>
    </div>
    <!-- / second nav button row -->[/color]
    		
    <br />
    <br />
    
    <if condition="$show['popups']">
    <!-- NAVBAR POPUP MENUS -->
    Add more instances of the blue code within the red code to add more links to that second row.

    Leave a comment:


  • Jake Bunce
    replied
    Or to add a link to the Quick Links menu:

    Code:
    	<!-- user cp tools menu -->
    	<div class="vbmenu_popup" id="usercptools_menu" style="display:none">
    		<table cellpadding="4" cellspacing="1" border="0">
    		
    		<tr><td class="thead">$vbphrase[quick_links]</td></tr>		
    		[color=red]<tr><td class="vbmenu_option"><a href="URL">LINKED TEXT</a></td></tr>[/color]
    		<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td></tr>
    				
    		<tr><td class="thead"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_control_panel]</a></td></tr>
    		<if condition="$show['siglink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editsignature">$vbphrase[edit_signature]</a></td></tr></if>
    		<if condition="$show['avatarlink']"><tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editavatar">$vbphrase[edit_avatar]</a></td></tr></if>
    		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editprofile">$vbphrase[edit_profile]</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
    		
    		<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
    		<if condition="$show['pmstats']"><tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]">$vbphrase[private_messages]</a></td></tr></if>
    		<tr><td class="vbmenu_option"><a href="subscription.php?$session[sessionurl]">$vbphrase[subscribed_threads]</a></td></tr>
    		<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[my_profile]</a></td></tr>
    		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php?$session[sessionurl]">$vbphrase[whos_online]</a></td></tr></if>
    		
    		</table>
    	</div>
    	<!-- / user cp tools menu -->

    Leave a comment:


  • Jake Bunce
    started a topic How To Add A Link To The Navbar

    How To Add A Link To The Navbar

    Go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Navigation / Breadcrumb Templates -> navbar

    Find this code. Add the code in red:

    Code:
    <!-- nav buttons bar -->
    <div align="center">
    	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    	<tr align="center">	
    		<!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>-->
    
    		[color=red]<td class="vbmenu_control"><a href="URL">LINKED TEXT</a></td>[/color]
    
    		<if condition="$show['member']">
    			<td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
    		</if>
    		<if condition="$show['registerbutton']">
    			<td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
    		</if>
    		<td class="vbmenu_control"><a href="faq.php?$session[sessionurl]">$vbphrase[faq]</a></td>
    		<td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
    		<td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
    		<if condition="$show['popups']">		
    			<if condition="$show['searchbuttons']">
    				<if condition="$show['member']">
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td>
    				<else />
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td>
    				</if>
    				<td id="navbar_search" class="vbmenu_control"><a href="search.php?$session[sessionurl]">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
    			</if>
    			<if condition="$bbuserinfo['userid']">
    				<td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>		
    			</if>
    		<else />		
    			<if condition="$show['searchbuttons']">
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]">$vbphrase[search]</a></td>
    				<if condition="$show['member']">
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[new_posts_nav]</a></td>
    				<else />
    				<td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td>
    				</if>
    			</if>
    			<td class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
    			<if condition="$bbuserinfo['userid']">			
    				<td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>			
    			</if>			
    		</if>
    		<if condition="$bbuserinfo['userid']">
    			<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout" onclick="return log_out()">$vbphrase[log_out]</a></td>
    		</if>
    	</tr>
    	</table>
    </div>
    <!-- / nav buttons bar -->
    Change URL and LINKED TEXT appropriately.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X