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-09-2002 07:24 PM

*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 :p

Kathi
post 1 updated to reflect my being blonde

Horizon 01-09-2002 07:26 PM

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

Moonwolf 01-09-2002 07:36 PM

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

Kathi

Horizon 01-09-2002 07:50 PM

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

Horizon 01-09-2002 07:55 PM

screenshot

Moonwolf 01-09-2002 08:03 PM

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

Check your navaltbar template code.

Kathi

Horizon 01-09-2002 09:55 PM

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.

Moonwolf 01-09-2002 10:52 PM

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)

Horizon 01-10-2002 12:09 PM

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....

Horizon 01-10-2002 12:15 PM

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

: ) Just thought I would add this for my troubles


All times are GMT. The time now is 07:45 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.01051 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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