Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 11-16-2008, 03:16 AM
douffle douffle is offline
 
Join Date: Mar 2007
Location: Ontario Canada
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 11-16-2008, 09:12 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Swap the space and comma

.
Reply With Quote
  #3  
Old 11-16-2008, 09:18 PM
Ohiosweetheart Ohiosweetheart is offline
 
Join Date: Dec 2005
Location: N.E. Ohio
Posts: 2,291
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 11-16-2008, 10:57 PM
douffle douffle is offline
 
Join Date: Mar 2007
Location: Ontario Canada
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #5  
Old 11-17-2008, 11:32 AM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

See if you have two of these scripts on the same page.

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

KJ
Reply With Quote
  #6  
Old 11-17-2008, 02:13 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seven Skins View Post
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.
Reply With Quote
  #7  
Old 11-17-2008, 04:05 PM
douffle douffle is offline
 
Join Date: Mar 2007
Location: Ontario Canada
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
  #8  
Old 11-17-2008, 04:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 11-18-2008, 01:33 AM
douffle douffle is offline
 
Join Date: Mar 2007
Location: Ontario Canada
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.



Many thanks to you Lynne and everyone else for the great effort to help me find the problem.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:48 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.04574 seconds
  • Memory Usage 2,248KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete