View Full Version : How do I get rid of the menu_open.gif in header template?
douffle
11-16-2008, 03:16 AM
I am creating a navbar consisting of buttons rather than the default vb navbar. The navbar is working fine but the menu_open.gif is appearing below the search and quicklink buttons and causes the navbar to gain height. How do I get rid of these arrows?
I changed the following code:
<script type="text/javascript"> vbmenu_register("navbar_search" ,1); </script>
to this
<script type="text/javascript"> vbmenu_register("navbar_search" ,true); </script>
but that didn't work at all.
Any suggestions please?
Thanks
Seven Skins
11-16-2008, 09:12 PM
<script type="text/javascript"> vbmenu_register("navbar_search", 1); </script>
Swap the space and comma ;)
.
Ohiosweetheart
11-16-2008, 09:18 PM
or
<script type="text/javascript">vbmenu_register("navbar_search", true); </script>
and
<script type="text/javascript"> vbmenu_register("usercptools", true); </script>be sure that there is a space between , and true
douffle
11-16-2008, 10:57 PM
I tried both suggestions but I am still getting the arrows.
Here is the exact code that I am using:
<td align="left" valign="top" width="61" height="27" id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/search.gif" width="61" height="27" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></td>
<if condition="$show['member']">
<td width="87" height="27" id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/quicklinks.gif" width="87" height="27" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></td>
</if>
Perhaps there is some other error in the code that I am not seeing?
Seven Skins
11-17-2008, 11:32 AM
See if you have two of these scripts on the same page.
<script type="text/javascript"> vbmenu_register("navbar_search"); </script>
KJ
Lynne
11-17-2008, 02:13 PM
See if you have two of these scripts on the same page.
<script type="text/javascript"> vbmenu_register("navbar_search"); </script>
KJ
Yep, that's what I figured out last night and posted about it in his thead on vb.com.
douffle
11-17-2008, 04:05 PM
Yep, that's what I figured out last night and posted about it in his thead on vb.com.
Nope, Only one for the search and one for the Quick Links.
<td align="left" valign="top" width="61" height="27" id="navbar_search"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow"><img src="$stylevar[imgdir_misc]/search.gif" width="61" height="27" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("navbar_search", true); </script></td>
<if condition="$show['member']">
<td width="87" height="27" id="usercptools"><a href="$show[nojs_link]#usercptools"><img src="$stylevar[imgdir_misc]/quicklinks.gif" width="87" height="27" border="0" alt="" /></a><script type="text/javascript"> vbmenu_register("usercptools", true); </script></td>
</if>
...as shown above.
Lynne
11-17-2008, 04:21 PM
Did you try what I posted on vb.com with the changing of all the ids? It worked just fine on my test site when I changed it in all the spots I did in that code that I posted on vb.com It's not just the call in the script, it's the ids also. ids must be unique. You cannot have two things with the same id.
douffle
11-18-2008, 01:33 AM
Did you try what I posted on vb.com with the changing of all the ids? It worked just fine on my test site when I changed it in all the spots I did in that code that I posted on vb.com It's not just the call in the script, it's the ids also. ids must be unique. You cannot have two things with the same id.
OK,... I finally figured it out!
I forgot that when I use custom buttons in the header for navigation, I have to edit the Navbar template and delete everything between the
<!-- nav buttons bar -->
and the
<!-- /nav buttons bar -->
A stupid mistake on my part but I won't make the same mistake again. :D
Many thanks to you Lynne and everyone else for the great effort to help me find the problem.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.