Jump to content

NavStrip Customisation


Guest AndyMillne

Recommended Posts

Posted

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?

Posted

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

Posted

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.
Posted

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"
Posted

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

Archived

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

  • Recently Browsing   0 members

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