Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons

Reply
 
Thread Tools
Additional navbar with dropdowns Details »»
Additional navbar with dropdowns
Version: 1.02, by attroll attroll is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.7.5 Rating:
Released: 12-25-2007 Last Update: 06-29-2008 Installs: 306
Uses Plugins Template Edits
 
No support by the author.

After upgrading and supporting my 3.0.0 and 3.5.3 version of this hack, I have decided it was time to step into the plugin world to make this easier for people to use.

Despite what category this is in it works with vBulletin 3.0 up to the most recent version of 3.8.

What this does is create another navbar with drop down menus by typing $navbar2 in any of your templates. It is just like the navbar that comes with VB.

I put a lot of description tags in the navbar2 template that gets installed to help explain what everything does. Once you understand what is going on here you can removed these. With very little modifications you can add to, remove or move items around in this additional navbar.

Upgrade
To upgrade you will want to reimport this XML file and edit your options accordingly.



1.02
  • Tweak it a bit to get the border on the top of the navbar. There was not boarder on the top of the navbar in the previous version. It was not really noticeable unless you have the navbar directly below the header area.
1.01
  • removed the plugin with the Hook "parse_templates" because it was not need.
  • Added plugin with the Hook ?global_start?, this will work with, PhotoPlog, vBAdvanced, Arcade. This will alleviate having to manually add code in the php files as was required in the past.
1.00
  • Initial release.
To install the this
1. Download the zipped file.

2. Unzip the file.

3. Import the product-navbar2.xml into your Plugins & Products? Manage Plugins.

4. Next you will have to decide where you want the navbar2 to be displayed. I have included a few options below.

5A. Under current (original) Navigation bar:
Find:
Code:
<!-- / breadcrumb, login, pm info -->
Below that place:
Code:
$navbar2
5B. On top of forums tables:
Find:
Code:
<!-- / PAGENAV POPUP -->
</if>
Below that place:

Code:
$navbar2
5C. Top of current navbar:
Find:
Code:
<br />
<!-- breadcrumb, login, pm info -->
Above that add:

Code:
$navbar2
5D. Under your header:
Find:
Code:
<br />
<!-- breadcrumb, login, pm info -->
Below that add:

Code:
$navbar2
5E. Under VB navbar:
Find:
Code:
<!-- / nav buttons bar -->
Below that add:
Code:
$navbar2
Note:
This should now work with vBAdvance CMPS, Arcade, PhotoPlog with no other modifications. Many thanks to Mike-D for his help with this.

Show Your Support

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

Comments
  #82  
Old 06-07-2008, 10:39 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UK-Biker View Post
attroll


Is there a way to switch the navbar and your navbar2 so the default navbar is above and navabr2 is below.

Ie; so they are the reverse of what is shown is screenshot 'D'.

Thanks
Yes this can be done

got to this location in you navbar:
Code:
<!-- / breadcrumb, login, pm info -->
Cut everything between that and this:
Code:
<!-- / nav buttons bar -->
Now paste it under the first line at the top of the navbar which should be <br />
Reply With Quote
  #83  
Old 06-07-2008, 10:40 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by badblu01 View Post
is it possible to creat a navbar with just the login / logout link and register link
Yes this could be done with some coding changes.
Reply With Quote
  #84  
Old 06-08-2008, 07:00 PM
UK-Biker UK-Biker is offline
 
Join Date: Aug 2007
Posts: 33
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by attroll View Post
Yes this can be done

got to this location in you navbar:
Code:
<!-- / breadcrumb, login, pm info -->
Cut everything between that and this:
Code:
<!-- / nav buttons bar -->
Now paste it under the first line at the top of the navbar which should be <br />


Thankyou very much


Sort of done that hack along with a bit of moving links between navbar and navbar2 to get what I wanted, but works a treat.

Top Job
Reply With Quote
  #85  
Old 06-10-2008, 10:46 PM
Desesperao Desesperao is offline
 
Join Date: Oct 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi everybody,

I have installed this hack but I have a problem now.

The extra navbar appears in all sections but not in the Arcade section.

Here appears:

http://www.foromotos.com/

But not here:

http://www.foromotos.com/arcade.php?

How can I resolve it?

Many thanks. GREAT HACK!!.
Reply With Quote
  #86  
Old 06-11-2008, 02:43 AM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Desesperao View Post
Hi everybody,

I have installed this hack but I have a problem now.

The extra navbar appears in all sections but not in the Arcade section.

Here appears:

http://www.foromotos.com/

But not here:

http://www.foromotos.com/arcade.php?

How can I resolve it?

Many thanks. GREAT HACK!!.
I just added some instructions in the first post of this hack that has helped others in the past that have arcade.
Reply With Quote
  #87  
Old 06-11-2008, 02:53 PM
Desesperao Desesperao is offline
 
Join Date: Oct 2003
Posts: 73
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I didn´t see it.

Many thanks!!.
Reply With Quote
  #88  
Old 06-23-2008, 09:42 AM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just happened to see that Thread and some Posts regarding the problem, that the extra navbar doesn't appear in all sections (PhotoPlog, vBAdvanced, Arcade...). My Code is different than yours but I still use the same Plugins. What you have to do is as follows...

Create an new Plugin with the Hook "global_start" and its Code as below...
HTML Code:
<plugin active="1" executionorder="5">
  <title>navbar2 plugin part #2</title>
  <hookname>global_start</hookname>
  <phpcode><![CDATA[$insert = '$navbar2';  
// Insert above Info into Template 'navbar'
$vbulletin->templatecache['navbar'] =  str_replace($insert,$insert.fetch_template('navbar2'),$vbulletin->templatecache['navbar']);]]></phpcode>
</plugin>

After you should remove the Plugin with the Hook "parse_templates" because it doesn't need anymore. Now it works in all sections
Reply With Quote
  #89  
Old 06-23-2008, 02:58 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mike-D View Post
I just happened to see that Thread and some Posts regarding the problem, that the extra navbar doesn't appear in all sections (PhotoPlog, vBAdvanced, Arcade...). My Code is different than yours but I still use the same Plugins. What you have to do is as follows...

Create an new Plugin with the Hook "global_start" and its Code as below...
HTML Code:
<plugin active="1" executionorder="5">
  <title>navbar2 plugin part #2</title>
  <hookname>global_start</hookname>
  <phpcode><![CDATA[$insert = '$navbar2';  
// Insert above Info into Template 'navbar'
$vbulletin->templatecache['navbar'] =  str_replace($insert,$insert.fetch_template('navbar2'),$vbulletin->templatecache['navbar']);]]></phpcode>
</plugin>

After you should remove the Plugin with the Hook "parse_templates" because it doesn't need anymore. Now it works in all sections
Mike-D

The vBAdvance CMPS all you have to do it add ?navbar2? to the Portal Output Global Variables in the control panel.

It is pretty much the same for the arcade. You only have to add ?$navbar2? to your arcade/functions/functions.php.

I can not speak for PhotPlog because I have never heard anyone complain about that one so I have never had a reason to look into it.

I know in the older versions of this hack that I made placing this code in ?global_start? did not fix the problem and that is why I switch hook location.

If someone with arcade wants to verify this by removing ?$navbar2? from there arcade/functions/functions.php and then adding this code I will rewrite the plugin and add this code to it. Like I said in the past though this would not work in previous versions so before adding the code again to the plugin I would need someone else to verify it. It is not that I do not trust you. I just want a second person verifying this before I add the code to this hack because I do not have arcade on any of my sites. My sites are not gaming sites.
Reply With Quote
  #90  
Old 06-23-2008, 05:56 PM
Mike-D Mike-D is offline
 
Join Date: Jan 2006
Location: Cologne / Germany
Posts: 270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dear attroll ,
I do know that we have several ways to out the $navbar2 variable in the global field of vBA or PhotoPlog. Surely it works also, but a long time before, I put lots of Navbar code into the TMS. Later I noticed that my navbar code was totally overloaded. So I decided to write my own Hack regarding a second navbar. While using TMS I never got any problems regarding the global variables in my navbar. After removing the navbar code of TMS I saw that problem and I solved it with that Plugin I mentioned. That was the reason too after I saw your Thread here so I thought to tell you how I solved that problem at that time -Mike
Reply With Quote
  #91  
Old 06-23-2008, 08:44 PM
Fireproof Fireproof is offline
 
Join Date: Apr 2007
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What controls the height of the additional navbar? My navbar2 is thicker (taller) than my original navbar. Have a look: http://www.clutchfitness.com

I would like to have it the same size. Please help.
Reply With Quote
Reply

Thread Tools

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 12:09 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.05156 seconds
  • Memory Usage 2,329KB
  • Queries Executed 25 (?)
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
  • (14)bbcode_code
  • (2)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete