Did the install as instructed, and even reinstalled a few times, and then went on to try it with a clean install using only the garland theme just to be sure I wasn't dropping the ball somehow with my own custom theme. But regardless what I do, it seems like advforum completely loses track of the breadcrumb trail the moment someone goes to view a topic.

Any ideas or suggestions that could help me out here?

Comments

michelle’s picture

Status: Active » Closed (duplicate)

http://drupal.org/node/231304

Still no idea, sorry. Breadcrumbs are controlled by the menu, not advanced forum.

Michelle

Rysk’s picture

I found what the problem is. the whole path/breadcrumb issue at least from my side of things seems to get completely obliterated if I enable the Node Hierarchy module. http://drupal.org/project/nodehierarchy

Which is dissapointing, but.. well.. I work on a community site, the forums are a bit more important lol :p

michelle’s picture

Thanks for letting me know. I posted a link on the other issue just in case that's his problem, too.

Michelle

matthew_ellis24’s picture

sadly I don't have node-hierachy. Any idea what it was in node-hierachy that was removing the breadcrumbs - might help to find any other modules that mess it up too. I don't think I have any modules that do anything with breadcrumbs

Rysk’s picture

I'm not totally savvy with writing custom php modules/scripts for drupal just yet, but I can get a basic understanding of the workflow for them by reading through the code. what seems to happen with this module in particular is that it has a custom hook for content types that rewrites the breadcrumb for all content types. So I'm assuming that any node-relation style module that hooks content types and rewrites the breadcrumb would have the same overall effect. So if other people are still having the same problem, I'd suggest disabling the module to make sure, and if it is what's causing the problem then submit it as a bug report. That's what I've done so far, and have gotten responses. The author was unaware of the problem since he doesn't use the internal drupal forums, so he's looking into possible solutions now.. That's most likely the best that can be hoped for at this point.

soyarma’s picture

I've run into this as well, and it is most certainly NodeHeirarchy that is the culprit. I've tried removing everything in NH that sets the menu location or the breadcrumb and it still breaks it on the topic itself. For whatever reason something in NH hooks last and nails the breadcrumb.

I did, however, come up with a location that is hooked after NH, and it is inside the advanced_forum_preprocess_node function in the advanced_forum.module file.

At the end of the function I added a slight modification to the drupal core forum module's breadcrumb settings:

  $vocabulary = taxonomy_get_vocabulary(variable_get('forum_nav_vocabulary', ''));

  // Breadcrumb navigation
  $breadcrumb = array();
  $breadcrumb[] = array('path' => 'forum', 'title' => $vocabulary->name);
  if ($parents = taxonomy_get_parents_all($variables['tid'])) {
    $parents = array_reverse($parents);

    foreach ($parents as $p) {
      $breadcrumb[] = array('path' => 'forum/'. $p->tid, 'title' => $p->name);
    }
  }
  $breadcrumb[] = array('path' => 'node/'. $node->nid);
  menu_set_location($breadcrumb);

And shazam! my topic breadcrumbs are back and correct.

michelle’s picture

If you're going to do that, I suggest writing your own preprocess function rather than modifying the module code.

Michelle