The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
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
|
Comments |
#32
|
|||
|
|||
*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 |
#33
|
||||
|
||||
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 |
#34
|
|||
|
|||
Did you download cascade.zip and put the 3 image files in it in your folder images/cascade?
Kathi |
#35
|
||||
|
||||
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 |
#36
|
||||
|
||||
screenshot
|
#37
|
|||
|
|||
Ummmm, that %20 means you didn't take the space out after a {
Check your navaltbar template code. Kathi |
#38
|
||||
|
||||
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.
|
#39
|
|||
|
|||
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)
|
#40
|
||||
|
||||
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 Great hack, now that I got it to work.... |
#41
|
||||
|
||||
Here is an XP folder if you want to change the blue one.....
: ) Just thought I would add this for my troubles |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|