vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Breadcrumb trouble when forum is not in root dir (https://vborg.vbsupport.ru/showthread.php?t=144663)

Antivirus 04-12-2007 10:58 AM

Breadcrumb trouble when forum is not in root dir
 
My forums are located here: www.eclipserecords.com/forum/index.php

My homepage is a custom vbulletin page located here: www.eclipserecords.com/index.php


My problem is as follows:
When viewing UserCP (or any other vbulletin page within the forums), the breadcrumb looks as follows:
Homepage > User Control Panel

When viewing forumhome, the breadcrumb looks as follows:
Homepage

What I want is for (within every forum page) there to be a Forum Home within the breadcrumb. For instance, when viewing UserCP, like this:

Homepage > Forumhome > User Control Panel


Now, my entire site uses the navbar template for all pages, even all the custom scripts and pages in the root directory, so what I need is some way to display a link within the breadcrumb to the Forum main index page, but only when viewing pages within the forums.


How would I go about doing that?

Antivirus 05-01-2007 05:11 PM

bump, anyone? I'm still stumped on this. I think I have to add to the breadcrumb array but not sure exactly where.

CyberAlien 05-01-2007 05:25 PM

Try to change your current homepage link to forum index, as it used to be before hack you installed for index, then in navbar manually add one more link to homepage before other links.

Antivirus 05-01-2007 06:00 PM

Quote:

Originally Posted by CyberAlien (Post 1239106)
Try to change your current homepage link to forum index, as it used to be before hack you installed for index, then in navbar manually add one more link to homepage before other links.

ooo... that sounds like a good idea.

[tried]

well, it seems that quite a few of my custom scripts use $vboptions['homeurl'] when calling each other, and it occurs a bunch of times in custom templates as well, so unfortunately changing that breaks stuff :( . I could go through everythingand revise it all as you suggested, but there's got to be an easier way, like adding another step to the navbar array based upon a globalized conditional such as:

PHP Code:

if (this_script == "customscript"
{
     
add to $navits array


any idea how to do it that way?

CyberAlien 05-01-2007 07:47 PM

<if condition="THIS_SCRIPT == 'customscript'"> blah </if>

Antivirus 05-01-2007 08:18 PM

Quote:

Originally Posted by CyberAlien (Post 1239239)
<if condition="THIS_SCRIPT == 'customscript'"> blah </if>

I suppose i could add a conditional link within the NAVBAR template as opposed to adding the site homepage to the $navbit array . I'll give it a try and see how it works, thanks!

wottech 05-06-2008 08:50 PM

Did you ever figure this out? I am trying to do something similar and it would be great to just be able to paste some known working code instead of trying to start from scratch. Thanks!

Antivirus 05-07-2008 03:28 PM

Quote:

Originally Posted by wottech (Post 1510996)
Did you ever figure this out? I am trying to do something similar and it would be great to just be able to paste some known working code instead of trying to start from scratch. Thanks!

No actually, the template conditional didn't work well. I actually ended up just placing ALL my custom files within the /forum as opposed to root directory which resolved the problem.


All times are GMT. The time now is 02:29 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.02646 seconds
  • Memory Usage 1,730KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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