Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Removing arrows from dropdown menu links Details »»
Removing arrows from dropdown menu links
Version: 1.00, by SleekSkins SleekSkins is offline
Developer Last Online: Jun 2011 Show Printable Version Email this Page

Version: 3.6.2 Rating:
Released: 10-31-2006 Last Update: Never Installs: 13
Template Edits
 
No support by the author.

This modification will remove the arrows (menu_open.gif) next to dropdown links like Search, Quick Links, Forum Tools, etc.
These are common links on the forumdisplay and thread pages. It's also in the navbar template.
Of course, you can use a small blank image and save it as menu_open.gif, but there are times when this simply isn't an option.


Removing an arrow from the navbar template
As an example I'm going to edit the navbar template, located under 'Navigation / Breadcrumb Templates'.
Find the following code:

Code:
<script type="text/javascript"> vbmenu_register("navbar_search"); </script>
Replace it with the following:
Changes are highlighted.

Code:
<script type="text/javascript"> vbmenu_register("navbar_search", true); </script>
As you may have noticed you simple add ', true' after the first variable. Repeat this for all links you'd like changed.


Search for dropdown menus
If you want to change specific dropdown menus but you're not sure in what template they are, or you're not sure if you've actually changed all dropdown menus in a template, then you can search for them.

In your admin CP go to 'Styles & Templates', then 'Search in Templates'.
At the top, select your style from the menu, paste "); </script> in the textfield and click 'Find'.


Search and replace all dropdown menus in one time
If you want all dropdown menus changed in one time, you should go to your admin CP, open 'Styles & Templates', then click on 'Search in Templates'.
Now go to the the second table, with the heading "Find and Replace in Templates (be careful!)".
First select your style from the menu. Paste "); </script> in the first textfield and ", true); </script> in the second.


Removing all arrows with CSS
ForumDog was so kind to PM me with a way to remove all arrows at once, with CSS.
In your admin CP go to 'Styles & Templates', 'Style Manager' and next to the style you want this applied to, select 'Main CSS' from the dropdown menu.

At the bottom of this page, add the following CSS code:
Code:
.vbmenu_control img {
  display:none;
}
This will hide all images in the table cells with the CSS class vbmenu_control.



Are you using this modification? Press INSTALL.

Bas ten Feld
www.sleekskins.com

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-01-2006, 07:49 PM
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is ideal for forums with a crowded navbar. I found the arrows take up much more space than they look. However, have a look here: http://azhforum.co.uk/index.php

The arrow is removed from Search but not from Quick Links or the Gallery. I searched the navbar template for "navbar_search" and added , true after it, but it only appeared once.

Any suggestions?
Reply With Quote
  #3  
Old 11-02-2006, 02:57 PM
ChavMagnet's Avatar
ChavMagnet ChavMagnet is offline
 
Join Date: Sep 2006
Location: Leeds - England
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This has been released already. But thanks.
Reply With Quote
  #4  
Old 11-02-2006, 07:09 PM
rezapci rezapci is offline
 
Join Date: May 2004
Location: U.S.K.C.
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks much

thired post is reserved
Reply With Quote
  #5  
Old 11-03-2006, 11:45 AM
SleekSkins's Avatar
SleekSkins SleekSkins is offline
 
Join Date: Apr 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AzH
This is ideal for forums with a crowded navbar. I found the arrows take up much more space than they look. However, have a look here: http://azhforum.co.uk/index.php

The arrow is removed from Search but not from Quick Links or the Gallery. I searched the navbar template for "navbar_search" and added , true after it, but it only appeared once.

Any suggestions?
Hi, the first one is an example of the search link. You have to search for the javascript function, not 'navbar_search'.
There is a second dropdown link in the navbar by default and it's called 'usercptools'.

I've updated my first post with information on how to find these dropdown menus and how to remove all arrows in one time, using Find and Replace.
Reply With Quote
  #6  
Old 11-03-2006, 08:04 PM
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the update. When I have it all fixed up I'll click that INSTALL button.
Reply With Quote
  #7  
Old 11-03-2006, 09:21 PM
SleekSkins's Avatar
SleekSkins SleekSkins is offline
 
Join Date: Apr 2005
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by AzH
Thanks for the update. When I have it all fixed up I'll click that INSTALL button.
Thanks, very much appreciated.
Reply With Quote
  #8  
Old 11-04-2006, 12:06 PM
AzH's Avatar
AzH AzH is offline
 
Join Date: Feb 2005
Location: UK
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

INSTALLED. Thank you.
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 04:36 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04541 seconds
  • Memory Usage 2,274KB
  • Queries Executed 21 (?)
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
  • (3)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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