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

Reply
 
Thread Tools
Details »»

Version: , by Moonwolf Moonwolf is offline
Developer Last Online: Nov 2003 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-07-2002 Last Update: Never Installs: 4
Is in Beta Stage  
No support by the author.

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.

Show Your Support

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

Comments
  #32  
Old 01-09-2002, 07:24 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*whimper*

Guess who forgot a step in the instructions

When you ran the database query in the instructions, you set up a control panel flag to tell the system to use the alternative nav bar instead of the linear one ...

Go to your admin CP, in the 5th section down will be an entry "Alternative Nav Bar". Select "Yes" for that, then submit the chaanges, then click on control panel again and submit it again. For some reason, it didn't take for some people on the first submit.

Then you should be running

Kathi
post 1 updated to reflect my being blonde
Reply With Quote
  #33  
Old 01-09-2002, 07:26 PM
Horizon's Avatar
Horizon Horizon is offline
 
Join Date: Nov 2001
Location: Butler, NJ
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK it works now, just the icons do not show up right.....any idea they are broken links

here is a broken link

http://rikernet/forum/{%20imagesfolder}/cascade/casicon.gif
Reply With Quote
  #34  
Old 01-09-2002, 07:36 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you download cascade.zip and put the 3 image files in it in your folder images/cascade?

Kathi
Reply With Quote
  #35  
Old 01-09-2002, 07:50 PM
Horizon's Avatar
Horizon Horizon is offline
 
Join Date: Nov 2001
Location: Butler, NJ
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I had to change your image links...one does not work still though....here is the code, am I missing something?

Code:
	if ($altnavbar) {
		$navbits = explode(gettemplate("nav_joiner"),$navbits);
		while (list($key,$val)=each($navbits)) {
			if($key == 0) {
				$altnavbits = "<br><img src=\"images/casendline.gif\"><img src=\"images/casicon.gif\">  $val\n";
               } elseif ($key == 1) {
				$altnavprefix = "<img src=\"images/casvertline.gif\"><img src=\"images/casendline.gif\">";
				$altnavbits .= "<br>$altnavprefix<img src=\"images/casicon.gif\">  $val\n";
               } else {
				$space_count = (13 * ($key - 1));
				$altnavprefix = "<img src=\images/casvertline.gif\"><img src=\"images/space.gif\" width=\"".$space_count."\" height=\"1\"><img src=\"images/casendline.gif\">";
				$altnavbits .= "<br>$altnavprefix<img src=\"images/casicon.gif\">  $val\n";
               }
		}
		eval("\$navbar = \"".gettemplate("navbaralt")."\";");
	} else {
		eval("\$navbar = \"".gettemplate("navbar")."\";");
	}

	return $navbar;

THE TOP IMAGE STILL COMES UP WITH THIS

Code:
http://rikernet/forum/{%20imagesfolder}/cascade/casicon.gif
Reply With Quote
  #36  
Old 01-09-2002, 07:55 PM
Horizon's Avatar
Horizon Horizon is offline
 
Join Date: Nov 2001
Location: Butler, NJ
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshot
Reply With Quote
  #37  
Old 01-09-2002, 08:03 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ummmm, that %20 means you didn't take the space out after a {

Check your navaltbar template code.

Kathi
Reply With Quote
  #38  
Old 01-09-2002, 09:55 PM
Horizon's Avatar
Horizon Horizon is offline
 
Join Date: Nov 2001
Location: Butler, NJ
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes but where does that space come from?? I posted my exact code from the functions.php up there.....any ideas? It looks great so far.
Reply With Quote
  #39  
Old 01-09-2002, 10:52 PM
Moonwolf Moonwolf is offline
 
Join Date: Jan 2002
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check both the code to inout into the .php file and the code in your templastes. It looks a lot like you have a { imagesfolder} line instead of an {\imagesfolder} line (\ added to try and get around that being parsed)
Reply With Quote
  #40  
Old 01-10-2002, 12:09 PM
Horizon's Avatar
Horizon Horizon is offline
 
Join Date: Nov 2001
Location: Butler, NJ
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<a href="java script:window.location=window.location"><img src="images/casicon.gif" border="0" align="middle" alt="$bbtitle : Powered by vBulletin version $templateversion"></a>
<normalfont><b><a href="index.php?s=$session[sessionhash]">$bbtitle</a></b></normalfont>
$altnavbits
I had to take out the space before imagesfolder, and the cascade after it.

Great hack, now that I got it to work....
Reply With Quote
  #41  
Old 01-10-2002, 12:15 PM
Horizon's Avatar
Horizon Horizon is offline
 
Join Date: Nov 2001
Location: Butler, NJ
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is an XP folder if you want to change the blue one.....

: ) Just thought I would add this for my troubles
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 02:41 PM.


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.08308 seconds
  • Memory Usage 2,306KB
  • 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
  • (3)bbcode_code
  • (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
  • (3)pagenav_pagelink
  • (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