Guest Posted October 28, 2005 Posted October 28, 2005 My only real little niggle at the moment is the implementation of the breadcrumb across the various products. I would like a little more flexibility in the way this is set-up. At the moment the breadcrumb works like this; --> Board Name --> Category --> Subcategory etc however when on the portal homepage the breadcrumb displays; --> Board Name I would like a breadcrumb that references from the site root. so; --> Site Name--> Board Name --> Category --> Subcategory etc and when on the portal homepage; --> Site Name This would work well for blogs as well as I don't see the blog as a sub-level to the forums it should be a sub-level to the site. I hope I've explained myself well enough. Anybody else agree?
krocheck Posted October 28, 2005 Posted October 28, 2005 I completely agree. I manually did it back when I used 1.3 and I am going to need to do it again when we re-release our content site. It would be nice to have this as a feature to same me the time. Keith
bfarber Posted October 29, 2005 Posted October 29, 2005 Easy enough to do. Just open class_display.php and find $nav. Add a new entry before the site puts in the other entries. :)
krocheck Posted October 29, 2005 Posted October 29, 2005 I know I can do that ... save me the time though Brandon :D Keith
Antony Posted October 29, 2005 Posted October 29, 2005 You can also do this in your HTML templates I think.
Guest Posted October 30, 2005 Posted October 30, 2005 Easy enough to do. Just open class_display.php and find $nav. Add a new entry before the site puts in the other entries. :) Thanks for that. That should tide me over for the time being. I'd imagine the breadcrumb will be developed to fit in better with IPDynamic in any case at a later date.
Guest Posted October 30, 2005 Posted October 30, 2005 Easy enough to do. Just open class_display.php and find $nav. Add a new entry before the site puts in the other entries. :) Doesn't actually work as expected. If I add an entry before the site puts in the other entries I get --> Site Name --> Forums when on the portal page I simply want "--> Site name"
bfarber Posted October 30, 2005 Posted October 30, 2005 Then you need to edit boards.php to remove the $this->nav entry it adds. :P
thetakerfan Posted October 30, 2005 Posted October 30, 2005 This was something I was planning to look into, but you saved me a lot of trouble. Try this: in class_display:Find: $nav .= "<a href='{$this->ipsclass->base_url}act=idx'>{$this->ipsclass->vars['board_name']}</a>"; Replace: $nav .= "<a href='{$this->ipsclass->home_url}act=idx'>{$this->ipsclass->vars['home_name']}</a>"; if (IPB_NOT_BOARD != 1) { $nav .= "<{F_NAV_SEP}><a href='{$this->ipsclass->base_url}act=idx'>{$this->ipsclass->vars['board_name']}</a>"; } Find: $this->ipsclass->skin['_wrapper'] = str_replace( "<% CSS %>" , $css , $this->ipsclass->skin['_wrapper']); Add above: $output_array['TITLE'] = $this->ipsclass->vars['home_name'].' -> '.$output_array['TITLE']; On whatever pages you don't want the Forums > crumb, add: define( 'IPB_NOT_BOARD', 1 );
thetakerfan Posted October 31, 2005 Posted October 31, 2005 since I can't edit my post anymore, the correct variable is $this->ipsclass->vars['home_url'] in that first replace part
Recommended Posts
Archived
This topic is now archived and is closed to further replies.