Add a new link to the navbar

TehMaster

New Member
I want to know how to add a link to "Element's" skin navbar.

I read this
Code:
http://www.vbulletin.com/forum/showthread.php?t=108961
but i didn't understood cause the code on my navbar is different.


Here is my navbar code

HTML:
<br />

<!--  Nav -->
<div class="nav_border_out">
  <div class="nav_border_in">
    <if condition="is_array($navbits)">
      <table  cellpadding="4" cellspacing="0" border="0" width="100%" align="center">
        <tr>
          <td width="15"><a href="#" onclick="history.back(1); return false;"><img src="$stylevar[imgdir_misc]/navbits_start.gif" alt="$vbphrase[go_back]" border="0" /></a></td>
          <td width="100%"><span class="navbar"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1">$vboptions[bbtitle]</a></span> $navbits[breadcrumb] <img src="$stylevar[imgdir_button]/lastpost_1.gif" alt="" class="inlineimg" /> <a href="$scriptpath"><span class="navbar"><strong>$navbits[lastelement]</strong></span></a> </td>
        </tr>
      </table>
      <else />
      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="50%"><if condition="$show['member']">
              <div class="smallfont"><img src="$stylevar[imgdir_button]/lastpost_1.gif" alt="" class="inlineimg" /> $bbuserinfo[username],
               <phrase 1="$pmbox[lastvisitdate]" 2="$pmbox[lastvisittime]">$vbphrase[last_visited_x_at_y]</phrase>
              </div>
               


<if condition="$show['notifications'] AND $show['popups']">
				<div class="smallfont"> <img src="$stylevar[imgdir_button]/lastpost_1.gif" alt="" class="inlineimg" /> <span id="notifications"><a href="usercp.php?$session[sessionurl_q]">$vbphrase[your_notifications]:</a> <strong>$notifications_total</strong></span></div>

				<script type="text/javascript"> vBmenu.register("notifications"); </script>
			<else /><if condition="$show['pmstats']">
				<div class="smallfont"> <img src="$stylevar[imgdir_button]/lastpost_1.gif" alt="" class="inlineimg" /> <phrase 1="$vbphrase[unread_x_nav_compiled]" 2="$vbphrase[total_x_nav_compiled]" 3="$session[sessionurl_q]">$vbphrase[private_messages_nav]</phrase></div>
			</if></if>



			<if condition="$show['pmwarning']"><div class="smallfont"> <img src="$stylevar[imgdir_button]/lastpost_1.gif" alt="" class="inlineimg" /> <phrase 1="$vbphrase[pmpercent_nav_compiled]">$vbphrase[your_pm_box_is_x_full]</phrase></div></if>
                
            
              <else />
              <div class="smallfont"><img src="$stylevar[imgdir_button]/lastpost_1.gif" alt="" class="inlineimg" /> <a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[nav_register]</a></div>
            </if>
          </td>
          <td width="50%" align="right"><if condition="$show['member']">
             <form action="search.php?do=process" method="post">
           <input type="hidden" name="do" value="process" />
			<input type="hidden" name="quicksearch" value="1" />
			<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
          <input type="text" class="navbar_forms" name="query" size="20" onfocus="this.value=''" value="$vbphrase[nav_search_form]" tabindex="1001" />
                <input  type="image" src="$stylevar[imgdir_button]/go.gif" style="vertical-align: middle;"/>
				
              </form>
              <else />
              <!-- login form -->
              <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
                <div class="smallfont">
                  <input type="text" class="navbar_forms" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="16" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" />
                  <label for="cb_cookieuser_navbar"><input type="hidden" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" /></label>
                  <input type="password" class="navbar_forms" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="16"  tabindex="102" onfocus="this.value=''" value="Password" />
                  <input  type="image" src="$stylevar[imgdir_button]/go.gif" style="vertical-align: middle;"/>
                </div>
                <input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
		        <input type="hidden" name="do" value="login" />		
		        <input type="hidden" name="vb_login_md5password" />
		        <input type="hidden" name="vb_login_md5password_utf" />
		        </form>
              <!-- / login form -->
            </if>
          </td>
        </tr>
      </table>
    </if>
  </div>
</div>
<!-- /Nav -->




<!-- Forum Description -->
<if condition="$show['forumdesc']">
<div class="spacer_small"></div>
<div class="forumdesc_border"><div class="forumdesc"><span class="smallfont"><strong>$foruminfo[title]</strong> $foruminfo[description]</span></div></div>
</if>
<!-- /Forum Description -->


<if condition="$show['notices']">
<br />
	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
	<tr>
		<td class="tcat">$vbphrase[notices]</td>
	</tr>
	<tr>
		<td class="alt1"><div class="smallfont">$notices</div></td>
	</tr>
	</table>
	
</if>


<div class="spacer"></div>
<br />


<if condition="$show['popups']">
<!-- NAVBAR POPUP MENUS -->
<if condition="in_array(THIS_SCRIPT, array(index))"><else />
<!-- login form -->
	<div class="vbmenu_popup" id="userlogin_menu" style="display:none">
		  <form action="login.php?do=login" method="post" onsubmit="md5hash(vb_login_password, vb_login_md5password, vb_login_md5password_utf, $show[nopasswordempty])">
		<script type="text/javascript" src="clientscript/vbulletin_md5.js?v=$vboptions[simpleversion]"></script>
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead" colspan="5">$vbphrase[element_login_form]</td>
		</tr>
		<tr>
			<td colspan="3" class="vbmenu_option" title="nohilite"><label for="navbar_username">$vbphrase[username]</label></td>
			<td class="vbmenu_option" title="nohilite"><input type="text" class="bginput" style="font-size: 11px" name="vb_login_username" id="navbar_username" size="10" accesskey="u" tabindex="101" value="$vbphrase[username]" onfocus="if (this.value == '$vbphrase[username]') this.value = '';" /></td>
			<td class="vbmenu_option" title="nohilite" colspan="2" nowrap="nowrap"><label for="cb_cookieuser_navbar"><input type="checkbox" name="cookieuser" value="1" tabindex="103" id="cb_cookieuser_navbar" accesskey="c" />$vbphrase[remember_me]</label></td>
		</tr>
		<tr>
			<td colspan="3" class="vbmenu_option" title="nohilite"><label for="navbar_password">$vbphrase[password]</label></td>
			<td class="vbmenu_option" title="nohilite"><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td>
			<td class="vbmenu_option" title="nohilite"><input type="submit" class="button" value="$vbphrase[log_in]" tabindex="104" title="$vbphrase[enter_username_to_login_or_register]" accesskey="s" /></td>
		</tr>
		</table>
		<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
		<input type="hidden" name="do" value="login" />		
		<input type="hidden" name="vb_login_md5password" />
		<input type="hidden" name="vb_login_md5password_utf" />
	  </form>
                </div>
		<!-- / login form -->
	</if>
	<if condition="$show['searchbuttons']">
	<!-- header quick search form -->
	<div class="vbmenu_popup" id="navbar_search_menu" style="display:none" align="$stylevar[align=left]">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead">$vbphrase[search_forums]</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
				<form action="search.php?do=process" method="post">

					<input type="hidden" name="do" value="process" />
					<input type="hidden" name="quicksearch" value="1" />
					<input type="hidden" name="childforums" value="1" />
					<input type="hidden" name="exactname" value="1" />
					<input type="hidden" name="s" value="$session[sessionhash]" />
	<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
					<div><input type="text" class="bginput" name="query" size="25" tabindex="1001" /><input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" /></div>
					<div style="margin-top:$stylevar[cellpadding]px">
						<label for="rb_nb_sp0"><input type="radio" name="showposts" value="0" id="rb_nb_sp0" tabindex="1002" checked="checked" />$vbphrase[show_threads]</label>
						&nbsp;
						<label for="rb_nb_sp1"><input type="radio" name="showposts" value="1" id="rb_nb_sp1" tabindex="1003" />$vbphrase[show_posts]</label>
					</div>					
				</form>
			</td>
		</tr>
		<tr>
			<td class="thead">$vbphrase[nav_search_options]</td>
		</tr>
		<tr>
			<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getnew">$vbphrase[nav_new_posts]</a></td>
		</tr>
		<tr>
			<td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[nav_todays_posts]</a></td>
		</tr>

		<tr>
			<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
		</tr>
<if condition="$vboptions[threadtagging]">
                <tr>
			<td class="vbmenu_option"><a href="tags.php$session[sessionurl_q]" rel="nofollow">$vbphrase[vbtag_cloud]</a></td>
		</tr>
</if>
 $template_hook[navbar_search_menu]
		</table>
	</div>
	<!-- / header quick search form -->
	</if>

	<if condition="$show['member']">
	<!-- user cp tools menu -->
	<div class="vbmenu_popup" id="usercptools_menu" style="display:none" align="$stylevar[align=left]">
		<table cellpadding="4" cellspacing="1" border="0">
		
		<tr><td class="thead">$vbphrase[quick_links]</td></tr>		
		<if condition="$vboptions['enablesearches']"><tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=getdaily">$vbphrase[todays_posts]</a></td></tr></if>
		<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&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></td></tr>
		$template_hook[navbar_quick_links_menu_pos1]
				
		<tr><td class="thead">$vbphrase[networking]</td></tr> 
		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=buddylist"><if condition="$show['friends_and_contacts']">$vbphrase[contacts_and_friends]<else />$vbphrase[contacts]</if></a></td></tr>

		<if condition="$show['quick_links_groups']">
			<tr><td class="vbmenu_option"><a href="group.php$session[sessionurl_q]">$vbphrase[social_groups]</a></td></tr>
		</if>
		<if condition="$show['quick_links_albums']">
			<tr><td class="vbmenu_option"><a href="album.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[pictures_and_albums]</a></td></tr>
		</if>
		$template_hook[navbar_quick_links_menu_pos2]
						
		<tr><td class="thead"><a href="usercp.php$session[sessionurl_q]">$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_your_details]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=editoptions">$vbphrase[edit_options]</a></td></tr>
		$template_hook[navbar_quick_links_menu_pos3]
		
		<tr><td class="thead">$vbphrase[miscellaneous]</td></tr>
		<if condition="$show['pmmainlink']"><tr><td class="vbmenu_option"><a href="private.php$session[sessionurl_q]" rel="nofollow">$vbphrase[private_messages]</a></td></tr></if>
		<tr><td class="vbmenu_option"><a href="subscription.php$session[sessionurl_q]" rel="nofollow">$vbphrase[subscribed_threads]</a></td></tr>
		<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[your_profile]</a></td></tr>
		<if condition="$show['wollink']"><tr><td class="vbmenu_option"><a href="online.php$session[sessionurl_q]">$vbphrase[whos_online]</a></td></tr></if>
		$template_hook[navbar_quick_links_menu_pos4]
		
		</table>
	</div>
	<!-- / user cp tools menu -->

	<if condition="$notifications_total">
	<!-- notifications menu -->
	<div class="vbmenu_popup" id="notifications_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead" colspan="2">$vbphrase[your_notifications]</td></tr>
		$notifications_menubits
		</table>
	</div>
	<!-- / notifications menu -->
	</if>
	
	</if>
<!-- / NAVBAR POPUP MENUS -->

<!-- PAGENAV POPUP -->
	<div class="vbmenu_popup" id="pagenav_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr>
			<td class="thead" nowrap="nowrap">$vbphrase[go_to_page]</td>
		</tr>
		<tr>
			<td class="vbmenu_option" title="nohilite">
			<form action="$vboptions[forumhome].php" method="get" onsubmit="return this.gotopage()" id="pagenav_form">
				<input type="text" class="bginput" id="pagenav_itxt" style="font-size:11px" size="4" />
				<input type="button" class="button" id="pagenav_ibtn" value="$vbphrase[go]" />
			</form>
			</td>
		</tr>
		</table>
	</div>
<!-- / PAGENAV POPUP -->
</if>

$ad_location[ad_navbar_below]

So I wanna know how to add a link, and if you can explain how to add a second row - just how it sais on the vb site.

Thanks for the support.
 
yepp, they are.

The actual code for the navbar looks like this:
HTML:
<!-- nav buttons bar -->
<table  cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border:0px">
<tr align="center">
	<if condition="$show['member']">
		<td class="nav_menu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
	</if>
	<if condition="$show['registerbutton']">
		<td class="nav_menu_control"><a href="register.php$session[sessionurl_q]" rel="nofollow">$vbphrase[register]</a></td>
	</if>
<if condition="in_array(THIS_SCRIPT, array(index))"><else /><if condition="$show['guest']">
				<td id="userlogin" class="nav_menu_control"><a href="login.php$session[sessionurl_q]">$vbphrase[element_login]</a> <script type="text/javascript"> vbmenu_register("userlogin"); </script></td>
                </if></if>
	$template_hook[navbar_buttons_left]
<if condition="$vbulletin->products['vbprojecttools']">
<td class="nav_menu_control"><a href="project.php$session[sessionurl_q]">$vbphrase[projects]</a></td>
</if>
<if condition="$vbulletin->products['vbblog']">
<td class="nav_menu_control"><a href="blog.php$session[sessionurl_q]">$vbphrase[blogs]</a></td>
</if>
	<td class="nav_menu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
	<if condition="$vboptions['enablememberlist']">
		<td class="nav_menu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>
	</if>
	<td class="nav_menu_control"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
	<if condition="$show['popups']">		
		<if condition="$show['searchbuttons']">
			<if condition="$show['member']">
			<td class="nav_menu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
			<else />
			<td class="nav_menu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
			</if>
			<td id="navbar_search" class="nav_menu_control"><a 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 condition="$show['member']">
			<td id="usercptools" class="nav_menu_control"><a href="$show[nojs_link]#usercptools" accesskey="3">$vbphrase[quick_links]</a> <script type="text/javascript"> vbmenu_register("usercptools"); </script></td>		
		</if>
	<else />		
		<if condition="$show['searchbuttons']">
			<td class="nav_menu_control"><a href="search.php$session[sessionurl_q]" accesskey="4">$vbphrase[search]</a></td>
			<if condition="$show['member']">
			<td class="nav_menu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
			<else />
			<td class="nav_menu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
			</if>
		</if>
		<td class="nav_menu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread" rel="nofollow">$vbphrase[mark_forums_read]</a></td>
		<if condition="$show['member']">			
			<td class="nav_menu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_contacts]</a></td>			
		</if>			
	</if>
	$template_hook[navbar_buttons_right]

	<if condition="$show['member']">
		<td class="nav_menu_control"><a href="login.php?$session[sessionurl]do=logout&logouthash=$bbuserinfo[logouthash]" onclick="return log_out('$vbphrase[sure_you_want_to_log_out]')">$vbphrase[log_out]</a></td>
	</if>
</tr>
</table>
<!-- / nav buttons bar -->

If you want to add a link, let´s say right of the UserCP link, then you would have to add a code along the lines of this
HTML:
<td class="nav_menu_control"><a href="your_link_here" accesskey="5">this_shows_in-Navbar</a></td>
right after this piece of code:

HTML:
<if condition="$show['member']">
		<td class="nav_menu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
	</if>

Whereby "your_link_here" and "this_shows_in_Navbar" need to be replaced with what you want to display and link to. The result then looks like this:
 
Thanks guys everything ok.

Now I got the problem of adding a second navbar cause I plan to add many links out there and there wont be enough space in the original navbar.

This is a long story I did and i Hope you read it understand it and help me :) .

1st of all reading from the vb.com site I copied this code to the header template right below the other navbar

HTML:
<!-- 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">	
		<td class="vbmenu_control"><a href="URL">TehMaster</a></td>
	</tr>
	</table>
</div>
<!-- / second nav button row -->

Resulting me this:

attachment.php


I didn't liked it very much because the first navbar is way better than the second and anyway they are different and I don't like that

And I got the idea the second look like the first.

After looking after the code I understood that the skin was developing the whole header using the css class .header_bg

this was the template code

HTML:
<table border="0" width="$stylevar[outertablewidth]" cellpadding="0" cellspacing="0" align="center" [u]class="header_bg"[/u]>

and of course the css

HTML:
.header_bg {
background: #FFFFFF url(http://--------/forum/images/element/misc/header_bg1.gif) ;
}

So I understood that this image was generating the header :

attachment.php


So here is what I did , I cut the image in photoshop leaving only the navbar part resulting in this:

attachment.php


So now I had to create my own css in order to use it for the new navbar and get what I wanted.

I uploaded the image and created the css.

I called the css definition mx_bg
HTML:
.mx_bg {
background: #FFFFFF url(http://----------/forum/images/element/misc/navbar.gif) ;
}

So now comes the problematic part ,

I had to give the new navbar this mx_bg css style.

I tried many compinations but the only one that worked was:

HTML:
<!-- second nav button row -->
<div class="mx_bg">
	<table class="mx_bg" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="mx_bg">
	<tr align="center">	
<td class="mx_bg">ff</td>

	</tr>
	</table></body>
</div>
<!-- / second nav button row -->

The

HTML:
 <td class="mx_bg">ff</td>

Was generating the style that I wanted

The result:
attachment.php


And now is the part that I want your help,

The only way make <td> work is to add a text on it ,howeverr the text cannot be formated with another css style (nav_menu_control) cause it is already formatted with the mx_bg

So guys I want any way making the navbar with that style and also leaving my links to be finely styled with the nav_menu_control css.

I now that I may confused you but I need your help.


Thanks and I really appreciate you for reading this.
 
This is a little bit of a tricky one because the header graphic includes the background for the navbar too... you need to create a new navbar2 template and add a call to it in the header file.

Here is my version of the template code:

Code:
<tr><td colspan="8">

<table  cellpadding="6" cellspacing="0" border="0" width="100%" align="center" style="border:0px">
    <tr align="center">


<td class="nav2_menu_control" height="30">


<!-- Home link in navbar non drop down menu -->
		<td class="nav2_menu_control"><a href="/index.php?$session[sessionurl]">Home</a></td>
<!-- / Home link in navbar non drop down menu -->

<!-- Setup for drop down menu #1 in navbar -->
<td id="dropdown1" class="nav2_menu_control"><a href="#dropdown1">Drop Down Menu 1</a> <script type="text/javascript"> vbmenu_register("dropdown1"); </script></td>
<!-- / Setup for down menu #1 in navbar-->

<!-- Forum link in navbar non drop down menu -->
		<td class="nav2_menu_control"><a href="/forum/index.php?$session[sessionurl]">Forums</a></td>
<!-- / Forum link in navbar non drop down menu -->



<!-- Setup for drop down menu #2 in navbar -->
<td id="dropdown2" class="nav2_menu_control"><a href="#dropdown2">Drop Down Menu 2</a> <script type="text/javascript"> vbmenu_register("dropdown2"); </script></td>
<!-- / Setup for drop down menu #2 in navbar -->

<!-- Non drop down menu's in navbar -->
		<td class="nav2_menu_control"><a href="">Text Link</a></td>
		<td class="nav2_menu_control"><a href="">Text Link</a></td>
		<td class="nav2_menu_control"><a href="">Text Link</a></td>
<!-- / Non drop down menu's in navbar -->

<!-- Setup for drop down menu #3 in navbar -->
<td id="dropdown3" class="nav2_menu_control"><a href="#dropdown3">Drop Down Menu3</a> <script type="text/javascript"> vbmenu_register("dropdown3"); </script></td>
<!-- / Setup for drop down menu #3 in navbar -->
	</tr>
	</table>
</div>

<!-- / nav buttons bar -->

<!-- NAVBAR POPUP MENUS -->

<!-- Drop down for menu #1 in navbar-->
	<div class="vbmenu_popup" id="dropdown1_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">
		<tr><td class="thead">DD1Heading1</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
</table>
</div>
<!-- / Drop down for menu #1 in navbar-->

<!-- Drop down for menu #2 in navbar-->
	<div class="vbmenu_popup" id="dropdown2_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">

		<tr><td class="thead">DD2 Title</td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
</table>
</div>
<!-- / Drop down for menu #2 in navbar-->

<!-- Drop down for menu #3 in navbar-->
	<div class="vbmenu_popup" id="dropdown3_menu" style="display:none">
		<table cellpadding="4" cellspacing="1" border="0">

		<tr><td class="thead">DD3Heading1</td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="thead">DD3Heading2</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>
		<tr><td class="vbmenu_option"><a href="">textlink</a></td></tr>

		</table>
	</div>


</table>

</td></tr>

Here is the additional css code:

Code:
.nav2_menu_control
{
	background: #4F57A0 url(images/element/gradients/titleimage.gif) repeat-x top left;
color:  #FFFFFF;
font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
padding: 3px 6px 3px 6px;
white-space: nowrap;
}

.nav2_menu_control a:link {
color:  #FFFFFF;
text-decoration: none;
}
.nav2_menu_control a:visited {
color:  #FFFFFF;
text-decoration: none;
}
.nav2_menu_control a:hover, .nav_menu_control a:active {
color:  #FFFFFF;
text-decoration: underline;
}

you will need to create a plugin for navbar2 I think. Then you can add $navbar2 to your header file. It should go just before the final </table> tag.

HTH, bluescorpion


Go to your ADMINCP:

Plugin System
Add new Plugin

Hook Location: global_start
Title: navbar2
Plugin PHP Code:

PHP Code:

Code:
eval('$navbar2 = "' . fetch_template('navbar2') . '";');
 
Back
Top