bbPress

Simple, Fast, Elegant

bbPress support forums » Themes

Real Bread Crumb for BBPress

(4 posts)
  • Started 1 year ago by baptiste
  • Latest reply from baptiste
  • This topic is not resolved
  1. I put together some code to implement a real bread crumb trail for BBPress that should support any level of subforums. I'll open a ticket for the change too, but until it's in the trunk (hopefully), you can use it by doing the following.

    In bb-includes/template-functions.php, just above the // Forum Loop // line, add the following:

    (UGH - Why if I put code inside code tags is bbpress insisting on parsing it and tossing in backticks everywhere! To see the code, check this file: http://onthepitch.org/talk/bb-includes/template-functions.txt)

    You'll have to update your template, mainly forum.php and topic.php. Look for the line like this"

    <h3 class="bbcrumb"><a>"><?php bb_option('name'); ?></a> &raquo; <?php forum_name(); ?></h3>

    and replace it with something like this:

    <h3 class="bbcrumb"><?php forum_bread_crumb(); ?></h3>

    And it should work for you.

    Posted 1 year ago #
  2. Demo?

    Posted 1 year ago #
  3. http://onthepitch.org/talk/forum/food-and-nutrition

    Not in production yet - still ironing out various bits, adding stuff that's missing (oh how I miss AJAX posting), etc. But the breadcrumb stuff works for the forum and topic view.

    Posted 1 year ago #
  4. Here's the ticket - hopefully the function or some form of it will get added. Possible improvement would be to limit the depth for forums with deep children

    http://trac.bbpress.org/ticket/733

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.