vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   How do I get rid of the menu_open.gif in header template? (https://vborg.vbsupport.ru/showthread.php?t=196400)

douffle 11-16-2008 03:16 AM

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

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

Code:

<script type="text/javascript">vbmenu_register("navbar_search", true); </script>
and

Code:

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

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>

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

Quote:

Originally Posted by Seven Skins (Post 1667431)
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

Quote:

Originally Posted by Lynne (Post 1667503)
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.

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>

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

Quote:

Originally Posted by Lynne (Post 1667600)
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

Code:


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


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

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.01557 seconds
  • Memory Usage 1,735KB
  • 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
  • (5)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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