Removing Forumbit-title from breadcrumb
#1
Hey there,

I have searched some threads for my problem since there are more people with a problem in the same direction but not 100% what I am looking for sadly Sad

To get to the point This is how part of my forum/index.php looks:

Now on this page everything is fine...

[Image: pWTMP.jpg]

but.

[Image: pWU5D.jpg]

on this page for example it shows the whole breadcrumb.

Now I know how to delete lets say the last part of the breadcrumbs and  I know how to deleted everything apart from the last breadcrumb since there are threads about this Smile

But here is what i am trying to accomplish:

[Image: pWUi1.jpg]

instead of:

[Image: pWUkK.jpg]

Is there a way to edit the nav_bit_active somewhere? have been searching through the template sets but only been able to remove everything or only the last breadcrumb.


Thanks in advance Smile

Tom.
Reply
#2
Alright so i found the code where the Breadcrumb trail is made:

Located in the   admin/inc/  folder the file named class_page.php


around line 242 in the code is where it for me starts.

	/**
	 * Add an item to the page breadcrumb trail.
	 *
	 * @param string $name The name of the item to add.
	 * @param string $url The URL to the item we're adding (if there is one)
	 */
	function add_breadcrumb_item($name, $url="")
	{
		$this->_breadcrumb_trail[] = array("name" => $name, "url" => $url);
	}

	/**
	 * Generate a breadcrumb trail.
	 *
	 * @return bool|string
	 */
	function _generate_breadcrumb()
	{
		if(!is_array($this->_breadcrumb_trail))
		{
			return false;
		}
		$trail = "";
		foreach($this->_breadcrumb_trail as $key => $crumb)
		{
			if(isset($this->_breadcrumb_trail[$key+1]))
			{
				$trail .= "<a href=\"".$crumb['url']."\">".$crumb['name']."</a>";
				if(isset($this->_breadcrumb_trail[$key+2]))
				{
					$trail .= " &raquo; ";
				}
			}
			else
			{
				$trail .= "<span class=\"active\">".$crumb['name']."</span>";
			}
		}
		return $trail;
	}

Sadly my php / js isnt the best but I will be looking into this code.

If someone finds a solution please post it!! Smile

If I solve the issue I will post again!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)