vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Problems with $navbar and functions.php! (https://vborg.vbsupport.ru/showthread.php?t=49134)

FleaBag 02-20-2003 03:12 AM

Problems with $navbar and functions.php!
 
Hey, I was hoping someone might be kind enough to help me out here!

I've moved all of my forum files to the root of my server and re-named index.php to forums.php - because I have MyVbIndex installed. As a result, the Navbar displays the following format in Showthread and Forumdisplay.

BBTitle* > Cat A > Cat B > Thread

*This obviously then links to the MyVbIndex page [index.php].

What I am trying to do is change this to the following format...

SiteTitle > Forums > Cat A > Cat B > Thread

...only on the Showthread and Forumdisplay - the way this is for every other page works fine.

So far, by looking at functions.php I have been able to use some variables and the following HTML to replace $navbar in Forumdisplay.

Code:

<img src="{ imagesfolder}/vb_bullet.gif" border="0" align="middle" alt="$bbtitle ? Tell someone who cares!">
<normalfont>
<a href="index.php?s=$session[sessionhash]">$bbtitle</a> ?
<a href="forums.php?s=$session[sessionhash]">Forums</a> >
$foruminfo[title]
</normalfont>

This works alright [example here], except for the fact that it only shows Cat B - [i.e. the highest sub-category - shown in this link, a sub-forum of the first link]. I am unable to use the same approach for Showthread, or at least, make the Cat A, Cat B e.t.c. a hyperlink, because I don't think there is a variable that will determine the ID of the forum the thread is in, in order to create a hyperlink.

Does anyone have any ideas on this, or know of a thread that can tell me how [I've looked, but couldn't find any].

Thanks to everyone in advance.

FleaBag 02-20-2003 03:35 AM

Poking about in functions.php I see there is a function regarding 'altnavbar' which as far as I know, is un-used. I tried fiddling about with this to no avail [I know hardly anything about PHP] - does this mean anything to anyone else?

FleaBag 02-27-2003 10:44 PM

Nevermind, I worked out how to do this with templates instead. Easier on all fronts to be honest.


All times are GMT. The time now is 08:35 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.00943 seconds
  • Memory Usage 1,713KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete