Hello fellow Drupalomaniacs,
I'm having a problem with breadcrumbs in my Advanced Forums version 5.x-1.1. They appear properly in threads, but in containers and forums, only the 'home' link displays. This definitely has something to do with AF because when I disable the module, breadcrumbs works properly again. I do use Taxonomy Breadcrumbs, but they don't show up whether or not the module is enabled. I will be experimenting with it a while more to get to the bottom of it, but I wanted to see if anyone knew a quick fix here.

Thanks in advance,
Tiuya

Comments

michelle’s picture

Sorry, I have no idea. AF has nothing to do with printing the breadcrumbs. That happens in page.tpl.php, which is outside of AF. If they show up with AF turned off, that does point at AF as being the culprit but I really have no idea how. I'll leave this active for a while in case someone else has an idea.

Michelle

Tiuya’s picture

Status: Active » Closed (fixed)

Thanks for the reply.

I figured out the problem. I started out with an Artisteer-generated theme, and I guess the breadcrumbs part wasn't coded quite right. On the template.php file, it had

/**
 * Allow themable wrapping of all breadcrumbs.
 */
function art_breadcrumb_woker($breadcrumb) {
  $breadcrumb = menu_get_active_breadcrumb();
  if (!empty($breadcrumb)) {
    return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>';
  }
}

I just replaced that with:

/**
* Allow themable wrapping of all breadcrumbs.
*/
function art_breadcrumb_woker($breadcrumb) {
$breadcrumb = menu_get_active_breadcrumb();
$breadcrumb[]=drupal_get_title(); // this is the current item
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">' . implode(' | ', $breadcrumb) . '</div>';
}
}

I don't know why it worked with the standard forums, but with this fix, the breadcrumbs show up everywhere.

michelle’s picture

Hmm... Weird... I have no idea how AF could have affected that. Glad you got it working, though.

Michelle