vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Beta Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=5)
-   -   Alt nav bar hack (https://vborg.vbsupport.ru/showthread.php?t=33913)

Moonwolf 01-07-2002 10:00 PM

Hi all

Well, here goes my first v2 hack :)

This hack will replace the linear nav bar (Board Title > Category > Forum > sub forum) nav bar with a cascading one, where the categories drop down and indent.

Unfortunately, this hack will only change the navbar that is generated by vB, it won't change the hard coded nav bars in pages like the member list/profile. I still have to figure out how to do that.

The hack is clunky, probably could be done in 4 lines of code instead of what I've done it in, and be cleaner, but I've tested it down to a depth of 6 and it seems to work clean, and that's all that matters right now :)

I'm working on changing the hard coded sections to use the CP flag, so that this can work on the site and change if the CP changes.

Kathi

File: Post #41
Demo: http://www.underlight.com/VBB

Installer file for latest version now at Post #41. If you have installed this before the timestamp of that post, you should be fine.

fonzerelli_79 01-08-2002 01:22 PM

have you got a demo?

Moonwolf 01-08-2002 01:25 PM

Quote:

Originally posted by fonzerelli_79
have you got a demo?
Funny you should mention it, I came here to post an update because I forgot to put one in :)

There's a version of it at www.underlight.com/VBB

Kathi

fonzerelli_79 01-08-2002 01:28 PM

i think ill give it a bash
it looks good

cheers

fonzerelli_79 01-08-2002 01:42 PM

i did it word for word and nothing happened

do you think this is because i run vbportal?

Moonwolf 01-08-2002 01:47 PM

Quote:

Originally posted by fonzerelli_79
i did it word for word and nothing happened

do you think this is because i run vbportal?

It could be, I don't run it so I don't know how it calls the navbar. You might want to go to your admin CP -> Options and set alt nav bar "Yes", even if it's currently set to "Yes". For some reason I had to submit options even with it already set to yes for it to work on mine.

Kathi

fonzerelli_79 01-08-2002 02:29 PM

i got it working

heres what i done

*set the nav bar settings to yes like you said
*wrapped the $altnavbits round a smallfont like this <smallfont>$altnavbits</smallfont>, to make the text to appear smaller (obviously)
* removed the spaces before the imagefolders in functions.php

the casvertline.gif doesnt look right though, see how its yellow instead of white

look at my attached image

Moonwolf 01-08-2002 02:58 PM

Quote:

Originally posted by fonzerelli_79

the casvertline.gif doesnt look right though, see how its yellow instead of white

That's wierd. Maybe I did something wrong in photoshop. I'll check it out and see.

Kathi

fonzerelli_79 01-08-2002 03:03 PM

thanks - appreciate it

also, i didnt like the big white space which this new bar left at the right so i added a banner in this space using this code

Code:

<table border=0>
<tr>
<td align=left>
<smallfont>$altnavbits</smallfont>
</td>
<td align=right>
banner ad
</td>
</tr>
</table>

you can see what it looks like in the image attached

Moonwolf 01-08-2002 03:08 PM

Nice use. Underlight's nav buttons will be taking up the space on that site, but I don't know what anyone else is using, so I just leave it up to them.

Now if only you could see the light and admit that Albion rules :)

Kathi


All times are GMT. The time now is 01:42 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.01130 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_code_printable
  • (3)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