Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: TeeJay on September 30, 2010, 02:54:24 AM

Title: Duplicated breadcrumbs
Post by: TeeJay on September 30, 2010, 02:54:24 AM
I've no idea when it started to happen but my forum show duplicate a breadcrumb trail

www.vdsr.co.uk



    * Valleys Dual Sport Riders South Wales » Forum » Valleys Dual Sport Riders South Wales » Forum

Any idea what's causing it and how to fix it ?

Title: Re: Duplicated breadcrumbs
Post by: Hj Ahmad Rasyid Hj Ismail on September 30, 2010, 12:57:16 PM
Since you have installed ezportal, my guess is that you have extra line in /Sources/Load.php. Try and check this line if there is any duplicate:
// Set the top level linktree up.
   array_unshift($context['linktree'], array(
      'url' => $scripturl,
      'name' => $context['forum_name']
   ), array('url' => $scripturl . '?action=forum', 'name' => $txt['ezp_forum_tab']));
Title: Re: Duplicated breadcrumbs
Post by: TeeJay on September 30, 2010, 03:23:20 PM
Ahh thanks, not tried it yet but I'm guessing I need to remove/comment out the second one of these

// Set the top level linktree up.
   array_unshift($context['linktree'], array(
      'url' => $scripturl,
      'name' => $context['forum_name']
   ), array('url' => $scripturl . '?action=forum', 'name' => $txt['ezp_forum_tab']));

// Set the top level linktree up.
   array_unshift($context['linktree'], array(
      'url' => $scripturl,
      'name' => $context['forum_name']
   ), array('url' => $scripturl . '?action=forum', 'name' => $txt['ezp_forum_tab']));
Title: Re: Duplicated breadcrumbs
Post by: xenovanis on September 30, 2010, 03:43:37 PM
Yes, just remove the duplicate.
Title: Re: Duplicated breadcrumbs
Post by: TeeJay on September 30, 2010, 03:52:00 PM
Thanks
That did it, problem solved