[ SOLVED ] Breadcrumbs module not Disabling "you are here:"

Gamebox - especially created support forum for Joomla 1.6
GK User
Tue Nov 22, 2011 12:04 am
Joomla 1.7
latest template: gk_game_magazine

in the breadcrumbs module there is an radio button option to disable the Show "You are here" from your site breadcrumbs which is great but this feature does not seem to work. and even if you remove the text from the language file it will still show the breadcrumb_youah.png image. i still wanted to use the breadcrumbs but not have the you are here or image show.. Does anyone have a fix for this?
User avatar
Fresh Boarder

GK User
Tue Nov 22, 2011 6:29 am
Replace the contents of templatesgk_game_magazinehtmlmod_breadcrumbsdefault.php with below code. Now if you disable "You are here:" in module settings it will not appear.

Code: Select all
<?php

// no direct access
defined('_JEXEC') or die;

?>

<div class="breadcrumbs<?php echo $moduleclass_sfx; ?>">
<?php
   echo '<ul>';
   if ($params->get('showHere', 1)) { echo '<li><span>'.JText::_('TPL_GK_LANG_YOUAH').'</span></li>'; }
    for ($i = 0; $i < $count; $i ++) {
      // If not the last item in the breadcrumbs add the separator
      if ($i < $count -1) {
         if (!empty($list[$i]->link)) echo '<li><a href="'.$list[$i]->link.'" class="pathway">'.$list[$i]->name.'</a></li>';
         else echo '<li class="pathway">' . $list[$i]->name . '</li>';
         if($i < $count -2) echo ' <li class="pathway separator"> / </li> ';
      } else if ($params->get('showLast', 1)) { // when $i == $count -1 and 'showLast' is true
         if($i > 0) echo ' <li class="pathway separator"> / </li> ';
         echo '<li class="pathway">' . $list[$i]->name . '</li>';
      }
   }
    echo '</ul>';
?>
</div>
User avatar
Platinum Boarder

GK User
Tue Nov 22, 2011 7:14 am
brdcrmerror.jpg


I used the code but as you can see from the image the next breadcrumb item takes the place of the "you are here" placement.. also you can see the image ...templates/gk_game_magazine/images/style1/breadcrumb_youah.png
still is shown. problem is the spacing is now different from the first item in the breadcrumb.
User avatar
Fresh Boarder

GK User
Tue Nov 22, 2011 7:59 am
Find File: templatesgk_game_magazinecssstyle1.css or stylex.css x is your style number.
Find Line: 26
Delete code
Code: Select all
#gkBreadcrumb .breadcrumbs > ul > li:first-child { background-image: url('../images/style2/breadcrumb_youah.png'); }

Find File: templatesgk_game_magazinecsstemplate.css
Find Line: 64
Delete Code:
Code: Select all
#gkBreadcrumb .breadcrumbs > ul > li:first-child { padding-right: 5px; background: transparent url('../images/style1/breadcrumb_youah.png') no-repeat right center; margin-right: 25px; }


Optional:

Also go to Extensions > Module Manager > Breadcrumbs

Under Menu Assignments Select: "On All Pages Except Those Selected"
On Right Click on : Clear Selection
Click on Main Menu and Select Home
Save and close.

Now Module will not display single word "Home" on its own when it is in frontpage but display as usual on all other pages.
User avatar
Platinum Boarder

GK User
Tue Nov 22, 2011 8:34 am
Thanks that did the trick
User avatar
Fresh Boarder

GK User
Tue Nov 22, 2011 8:37 am
No problem at all.


See you around...
User avatar
Platinum Boarder


cron