Announcement

Collapse
No announcement yet.

... Edit Breadcrumbs

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • ... Edit Breadcrumbs

    I asked this question over at vBulletin.org but I didn't even get a reply, so I assume that they don't know how, or don't wish to share.

    I have a 3rd party script that allows to me create a page and use the vBulletin style. The page code looks like this;

    Code:
    <?php 
    
    // ####################### SET PHP ENVIRONMENT ########################### 
    error_reporting(E_ALL & ~E_NOTICE); 
    
    // #################### DEFINE IMPORTANT CONSTANTS ####################### 
    define('NO_REGISTER_GLOBALS', 1); 
    define('THIS_SCRIPT', 'home_page'); // change this depending on your filename 
    
    // ################### PRE-CACHE TEMPLATES AND DATA ###################### 
    // get special phrase groups 
    $phrasegroups = array( 
    
    ); 
    
    // get special data templates from the datastore 
    $specialtemplates = array( 
    	 
    ); 
    
    // pre-cache templates used by all actions 
    $globaltemplates = array( 
    	'Home Page', 
    ); 
    
    // pre-cache templates used by specific actions 
    $actiontemplates = array( 
    
    ); 
    
    // ######################### REQUIRE BACK-END ############################ 
    require_once('./global.php'); 
    
    // ####################################################################### 
    // ######################## START MAIN SCRIPT ############################ 
    // ####################################################################### 
    
    $navbits = array(); 
    $navbits[$parent] = 'Home Page'; 
    
    $navbits = construct_navbits($navbits); 
    eval('$navbar = "' . fetch_template('navbar') . '";'); 
    eval('print_output("' . fetch_template('home_page') . '");'); 
    
    ?>
    Now, because the index.php page is the 'default' page, my breadcrumbs on this page look like this;

    Board >> Home Page

    Going into one of the boards forums, on the forumdisplay page it looks like this;

    Board >> Cat >> Forum Name

    Instead of these two, I would like the first to be;

    Home Page >> Board

    And the second to be;

    Home Page >> Board >> Cat >> Forum Name

    Now, this would mean any pages using the code above, or similar (I'm open to modifications if it helps me achieve what I'm trying to do), would go something like;

    Home Page >> New Page Name

    Leaving out the 'Board' bit.

    I have found the breadcrumbs function in the includes\functions.php file, but then the first problem arrives, I don't know PHP, just basic editing 'skills'. The second is, this file appears to contain the building blocks of the breadcrumbs after the initial page, index.php.

    Can anyone help me do this, or would it be better to seek 3rd party help? Any help towards me achieving my desired output is much appreciated.

  • #2
    Anyone?

    Comment


    • #3
      We do not provide support for custom coding here. The place for this is over at www.vbulletin.org.
      Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
      Change CKEditor Colors to Match Style (for 4.1.4 and above)

      Steve Machol Photography


      Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


      Comment

      Related Topics

      Collapse

      Working...
      X
      😀
      🥰
      🤢
      😎
      😡
      👍
      👎