vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Where does the breadcrumb come from? (https://vborg.vbsupport.ru/showthread.php?t=188074)

robertpro2a 08-14-2008 12:57 AM

Where does the breadcrumb come from?
 
I have a custom template, and it correctly includes the $navbar line. But I need to set that navbar line somehow in the custompage.php line. Is there like a:

"define('set_location', "Show This On Navbar") kind of thing?

Thanks.

RLShare 08-14-2008 01:20 AM

PHP Code:

$navbits = array();
$navbits[$parent] = 'Your Page Name';
$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";'); 


robertpro2a 08-14-2008 03:17 AM

Thank you very much RLShare! Works perfectly..although is there a way to add a URL to it? For example:

PHP Code:

$navbits = array("Knowledge Base");
$navbits[$parent] = 'Select Model';
$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');  
eval(
'print_output("' fetch_template('blank') . '");'); 

Which outputs:

My Site> Knowledge Base
-----------------------_>Select Model

But I would like to make "Knowledge Base" have a URL. Right now it has a default URL of "0".

Thanks.

Dismounted 08-14-2008 06:23 AM

PHP Code:

$navbits = array();
$navbits['knowledgebase.php'] = 'Knowledge Base';
$navbits[$parent] = 'Select Model';
$navbits construct_navbits($navbits); 



All times are GMT. The time now is 01:50 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.01745 seconds
  • Memory Usage 1,717KB
  • 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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