vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Additional Navbar 3.5.3 and up (https://vborg.vbsupport.ru/showthread.php?t=106875)

attroll 01-31-2006 10:00 PM

Additional Navbar 3.5.3 and up
 
After upgrading my 3.0.0 version of this hack a long time back and repeatedly asking for it to be moved here in the 3.5.3 area with no success. I decided to add it here myself.

Despite what category this is in it works with vBulletin 3.0 up to the most recent version of 3.5.3. 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#1: 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;


IrPr 02-01-2006 09:14 AM

screenie?

Snake 02-01-2006 10:23 AM

Yeah that would be nice.

tomshawk 02-01-2006 12:20 PM

Is a demo enough?

Excellent little hack ;)

attroll 02-01-2006 04:11 PM

Sorry I forgot the screen shots. I just added them to the originial post.

Maagic 02-01-2006 11:00 PM

Looks similar to this one https://vborg.vbsupport.ru/showthread.php?t=92012

attroll 02-02-2006 02:49 AM

Quote:

Originally Posted by Maagic

It may be similar. Mine has been out since 16 May 2004 though. As I stated in the hack after upgrading my 3.0.0 version of this hack a long time back and repeatedly asking for it to be moved here in the 3.5.0 area with no success. I decided to add it here myself. So this hack has been around since 16 May 2004 and I have been supporting it and upgrading it with every upgrade to Vbulletin. But no one would move it for me. So I moved it an started it all over again in the 3.5.3 section.

The difference is that the version you mentioned does not have directions for drop down menus. Mine does and this version also gives you the option to install it in you default navbar or have a seperate navbar template for the second navbar.

Here is where my old version was before I moved it over here to the 3.5.0 section.
https://vborg.vbsupport.ru/showthread.php?t=65198

PennylessZ28 02-02-2006 04:20 AM

heh, well thats good information for someone.

EasyTarget 02-02-2006 01:01 PM

the difference is also that in the other hack is that you have to use the default navbar and the extra one.

This hack can let you do one or the other or both. This will be very useful for me, thanks.

Ohiosweetheart 02-02-2006 02:18 PM

Been looking for this... thanks! *install*


All times are GMT. The time now is 07:44 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.01450 seconds
  • Memory Usage 1,755KB
  • 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
  • (10)bbcode_code_printable
  • (5)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete