Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Additional Navbar Details »»
Additional Navbar
Version: 1.00, by attroll attroll is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 05-15-2004 Last Update: 06-05-2004 Installs: 126
Uses Plugins Template Edits
 
No support by the author.

Dispite what category this is in it works with vBulletin 3.5. Just read the directions.

What this does is create another navbar with drop down menu?s by typing $navbar2 in any of your templates. It is just like the one that comes with vBulletin 3.

After seeing a lot of replies about users wanting another navbar besides the basic one that comes with vBulletin. I waited for someone else to write one. But no one stepped forward and wrote one. I wanted this for my site and got tired of waiting for someone else to write it. So I played around and created this one for myself. I though I would share it with everyone.

Note: If you do not want to add a separate navbar template you can also substitute the steps in 5A through 5D and insert the navbar2.txt after you have edited it the way you want and into the same places as I mentioned for the $navbar2 in your default navbar and you will not have to do any of these other steps.

I put a lot of description tags in the HTML file 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 navbar.

1. To install this hack you will have to create a template in you ADMINCP and call it ?navbar2? and insert the contents of the attached file "navbar2.txt" into this template file. Right now it is set up for my site. So you will have to modify it to what you want in this navbar for your site.

2. Put the following command in your phpinclude_start template:
PHP Code:
eval('$navbar2 = "' fetch_template('navbar2') . '";'); 
2A. This is for users that have vB 3.5 and up. Step 2 will not work because the phpinclude_start template no longer exist in versions 3.5 and higher. So for 3.5 users ignore step 2 and use 2A.

Plugin System
Add new Plugin

Hook Location: global_start
Title: navbar2
Plugin PHP Code:
PHP Code:
eval('$navbar2 = "' fetch_template('navbar2') . '";'); 
3. Now put the following command in you header or what ever template where your want the new navbar to be displayed (samples of where to put them are in the attached photos and directions are in 5A, B, C, D.):
PHP Code:
$navbar2 
4. Since the template is uncached you will have an extra query on each page. To fix, open global.php
Find:
PHP Code:
// misc useful 
Add below:
PHP Code:
'navbar2'
5A. Under current Navigation / Breadcrumb Templaters - navbar:
Find:
Code:
<!-- / nav buttons bar -->
Below that place:
Code:
$navbar2
5B. On top of forums tables:
Find:
Code:
<!-- / PAGENAV POPUP -->
</if>
Below that place:
Code:
$navbar2
5C. Under your header:
Find:
Code:
<br />
<!-- breadcrumb, login, pm info -->
Above that add:
Code:
$navbar2
5D. Top of current navbar:
Find:
Code:
<!-- breadcrumb, login, pm info -->
Under that add:
Code:
$navbar2
vBadvance CMPS using vB 3.5 or higher. To get this working with the homepage you will have to do the following.

Go into your ADMINCP-->vBa CPMS-->Default Setting-->Portal Output Global Variables and add navbar2 in the block there and save it.

Arcaded hack. You will need to go into your darcaded hack and edit a line. Here are the directions:
Go to you arcade/functions/functions.php
open it with a text editor:
Find:
Code:
global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox;
global $forumjump, $timezone, $logincode, $_USEROPTIONS, $scriptpath, $admincpdir, $modcpdir, $quickchooserbits;
Replace with:
Code:
global $header, $vbphrase, $vboptions, $stylevar, $headinclude, $bbuserinfo, $session, $show, $pmbox;
global $forumjump, $timezone, $logincode, $_USEROPTIONS, $scriptpath, $admincpdir, $modcpdir, $quickchooserbits, $navbar2;

Show Your Support

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

Comments
  #182  
Old 10-19-2005, 02:10 PM
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got 4 Links on the new navbar (navbar2)
Arcade, Awards, Jokes, vBookie

and when I go to Arcade the navbar2 doesnt show up anymore, but it does for all other ones
Reply With Quote
  #183  
Old 10-19-2005, 04:50 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 rb290
I got 4 Links on the new navbar (navbar2)
Arcade, Awards, Jokes, vBookie

and when I go to Arcade the navbar2 doesnt show up anymore, but it does for all other ones
Yes it is because you are most likely going to have to edit your functions.php file in your arcade directory. If you read post #156 in this thread it explains what to do. Providing this is the same arcade that is mentioned. https://vborg.vbsupport.ru/showpost....&postcount=156
Reply With Quote
  #184  
Old 10-19-2005, 05:30 PM
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
Posts: 333
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks, it worked!
Reply With Quote
  #185  
Old 10-20-2005, 10:44 AM
b00k b00k is offline
 
Join Date: Feb 2005
Posts: 251
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

attroll, thanks for taking the time and sticking around offering support.

I have tried installing this hack, by far, if not the easiest, except it refuses to work.
I checked, double checked all the work. I finally just uninstalled all but the navbar2 template and am asking for help.

I currently run multiple child styles, so i edited the default. Again, nothing is showing up.

I rechecked all the work and read through every page here.

Is this an issue with the rotating banner modifcation?
Reply With Quote
  #186  
Old 10-23-2005, 04:17 PM
Edrick Edrick is offline
 
Join Date: Aug 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

try editing each style one by one, when you have multiple styles, and you have modified a template in a child style, modifying the parent style, will NOT modify the child style. I had this same problem, so try editing all your styles one by one.
Reply With Quote
  #187  
Old 10-23-2005, 06:02 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 Edrick
try editing each style one by one, when you have multiple styles, and you have modified a template in a child style, modifying the parent style, will NOT modify the child style. I had this same problem, so try editing all your styles one by one.
Yes this is very true. I found this out the hard way myself. It kicked my butt for a while. Until I relized this. Once you have edited a template in the child style then editing the master or should I say parent template will not change the child template.
Reply With Quote
  #188  
Old 10-24-2005, 04:05 AM
Aaron RV's Avatar
Aaron RV Aaron RV is offline
 
Join Date: Mar 2002
Location: Italy
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

work on vb 3.5?

thank's.
Reply With Quote
  #189  
Old 11-26-2005, 07:34 PM
attroll's Avatar
attroll attroll is offline
 
Join Date: Jan 2003
Location: Litchfield, Me
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have gone through the directions for the Additional Navbar one more time.

I have fixed it so that there is an overlaying number on the screen shots that matches the direction in the hack so you know which step to do depending on where you want your navbar2 to display.

I also added the direction for those using the vBadvance CMPS hack so it will display on there homepage. There is an easier way of doing it instead of using the previsous directions I had posted.

I also added directions on how to incorperate this into the Arcade hack.
Reply With Quote
  #190  
Old 12-02-2005, 02:59 PM
jcfuller jcfuller is offline
 
Join Date: Aug 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack! Thanks for this! Clicked install.
Reply With Quote
  #191  
Old 12-20-2005, 01:14 AM
Synth Synth is offline
 
Join Date: Oct 2005
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!!
Reply With Quote
  #192  
Old 12-25-2005, 01:55 AM
Trickle Trickle is offline
 
Join Date: Dec 2005
Location: Ontario
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed very easily, thanks. Everything is working great EXCEPT one tiny thing. On my navbar(s) the double navbars show up on everything that is there when you click on it except New Posts. Where and what would I need to edit to get the double navbar to show up when the new post results show up. Web site is www.internetcheaters.com


Trickle
Reply With Quote
  #193  
Old 12-25-2005, 05:07 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 Trickle
Installed very easily, thanks. Everything is working great EXCEPT one tiny thing. On my navbar(s) the double navbars show up on everything that is there when you click on it except New Posts. Where and what would I need to edit to get the double navbar to show up when the new post results show up. Web site is www.internetcheaters.com


Trickle
It should show up on new post results and long as there are new posts. I have found if there are no new post and you get the following message it does not show up

Quote:
Sorry, there are no new threads to view.
You may search for threads updated during the previous 24 hours, here.
If anyone knows the answer to this please let me know. I will include it in the install instuctions if we can figure it out.
Reply With Quote
  #194  
Old 12-25-2005, 05:59 PM
Edrick Edrick is offline
 
Join Date: Aug 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That message is default for the 3.5 vBulletin software. Real handy if you ask me if you had to go idle for a period of time and the new posts were marked as old. It has nothind to do with any hack.

I can tell because it also appears to me and it's workign fine with me when I have new posts to read, and the forum displays that when not.

Though if this sin't the case, maybe a screenshot of a more specific description would help

BTW Attroll, I changed my AIM user name in case you want to contact me for any reason (The Edrick)
Reply With Quote
  #195  
Old 12-26-2005, 05:50 PM
Trickle Trickle is offline
 
Join Date: Dec 2005
Location: Ontario
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by attroll
It should show up on new post results and long as there are new posts. I have found if there are no new post and you get the following message it does not show up.


Yup your absolutely correct. When I check for new posts and there are none the double nav bar does not show up. BUT I just made a test post then checked for new posts and the double nav bar DOES show up now. So being new and green to all of this I would have to find the templete that notify's there are no new post and add the double nav bar to that?

Be gentle I'm no coder and very new to all of this.
Reply With Quote
  #196  
Old 12-26-2005, 08:15 PM
Edrick Edrick is offline
 
Join Date: Aug 2005
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe the place to look at is the other navbit templates. You can do soemthing to find out, in the vBulletin options, General options, and you'll see an option that says: Add Template Name in HTML Comments

Enable that ption, and go to the messgae page, chech the source code, and find the name of the template, once you do this, you'll know where to add the $navbar2 variable in the template.

I'll try this out.

EDIT:
In the STANDARD_ERROR Template something must be edited in order for it to get the navbar2 working, but I'm sure the error templates must be modified for this to work. I'll keep further investigation
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 06:12 AM.


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.09279 seconds
  • Memory Usage 2,380KB
  • Queries Executed 30 (?)
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
  • (10)bbcode_code
  • (5)bbcode_php
  • (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
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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