The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How do I get rid of the menu_open.gif in header template?
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 |
#2
|
||||
|
||||
<script type="text/javascript"> vbmenu_register("navbar_search", 1); </script>
Swap the space and comma . |
#3
|
|||
|
|||
or
Code:
<script type="text/javascript">vbmenu_register("navbar_search", true); </script> Code:
<script type="text/javascript"> vbmenu_register("usercptools", true); </script> |
#4
|
|||
|
|||
I tried both suggestions but I am still getting the arrows.
Here is the exact code that I am using: Code:
<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> |
#5
|
||||
|
||||
See if you have two of these scripts on the same page.
<script type="text/javascript"> vbmenu_register("navbar_search"); </script> KJ |
#6
|
||||
|
||||
Yep, that's what I figured out last night and posted about it in his thead on vb.com.
|
#7
|
|||
|
|||
Quote:
Code:
<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> |
#8
|
||||
|
||||
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.
|
#9
|
|||
|
|||
Quote:
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 Code:
<!-- nav buttons bar --> and the <!-- /nav buttons bar --> A stupid mistake on my part but I won't make the same mistake again. Many thanks to you Lynne and everyone else for the great effort to help me find the problem. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|