Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Design and Graphics Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-12-2007, 11:58 AM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 05-01-2007, 06:11 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

bump, anyone? I'm still stumped on this. I think I have to add to the breadcrumb array but not sure exactly where.
Reply With Quote
  #3  
Old 05-01-2007, 06:25 PM
CyberAlien's Avatar
CyberAlien CyberAlien is offline
 
Join Date: Mar 2002
Posts: 438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 05-01-2007, 07:00 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CyberAlien View Post
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?
Reply With Quote
  #5  
Old 05-01-2007, 08:47 PM
CyberAlien's Avatar
CyberAlien CyberAlien is offline
 
Join Date: Mar 2002
Posts: 438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<if condition="THIS_SCRIPT == 'customscript'"> blah </if>
Reply With Quote
  #6  
Old 05-01-2007, 09:18 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CyberAlien View Post
<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!
Reply With Quote
  #7  
Old 05-06-2008, 09:50 PM
wottech wottech is offline
 
Join Date: May 2006
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #8  
Old 05-07-2008, 04:28 PM
Antivirus's Avatar
Antivirus Antivirus is offline
 
Join Date: Sep 2004
Location: Black Lagoon
Posts: 1,090
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wottech View Post
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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:30 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.03893 seconds
  • Memory Usage 2,232KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete