Jump to content

NavStrip Customisation


Guest AndyMillne

Recommended Posts

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?

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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"
Link to comment
Share on other sites

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 );

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...