Infocus + BBpress 2.0 root slug

resolved (27 posts) (8 voices)

  1. suncat100
    Member

    I am setting up the latest BBpress 2.0 plugin in Infocus, and all aspects seem to be working fine except one main flaw that I can't figure out -

    By default, you set a "slug" for BBpress as to be the root of the forum. When accessing this forum page, for some reason Infocus is listing "Archives": http://d.pr/EK14 (and not the forum). Apparently, BBpress works by finding the "page.php" file of the active theme, and injects the forum code into this template ... Unfortunately, it does not work with Infocus, while it works fine with twetnyeleven for example: http://d.pr/UQry ...

    All the BBPress widgets work fine in infocus, and also all the shortcodes work flawless. I can even create a normal page and add the shortcode [bbp-forum-index] to this page, and it displays nicely in infocus as if it was the forum root page. However, it can not be used like this, because all topics/subforums point to pages that are children of the main bbpress slug, which also displays in BBpress-breadcrumbs ... and this main bbpress "slug" rootpage, simply does not work in Infocus.

    Would be nice with some "hack" for this, as to make it work with your super theme! Here is some information about how BBPress 2.0 uses the active theme, if you want to check:
    http://serverpress.com/news/getting-started-with-bbpress-2-0/

    Posted 6 years ago #
  2. Elliott
    Support

    Hello suncat100,

    Looks like they really did some nice work on 2.0. I'll add this to our plugin queue and we'll take a look at it.

    Posted 6 years ago #
  3. suncat100
    Member

    Thanks. Yes, the BBPress 2.0 plugin is quite nice, and just "plugs" a forum directly into your WP site.

    I hacked my way around this minor compatibility issue with Infocus, by doing the following:
    1. Set the BBPress root forums slug to something unrelated "nanana".
    2. Unchecked "Prefix your forum area with the Forum Base slug" in BBPress Forum settings.
    3. Create a normal WP page "/forum", and added the BBPress shortcode: [bbp-forum-index]. This page now act as a faux-root for the forum.
    4. Edited the following for breadcrumbs in the bbp-common-template.php:

    $breadcrumbs[] = '<a href="/forum/">Forum</a>';
    //$breadcrumbs[] = '<a href="' . $root_url . '">' . $root_text . '</a>';
    Posted 6 years ago #
  4. Elliott
    Support

    Just installed and played around. It seems to work fine for me when using the default permalinks. When I switched permalinks to anything else I started seeing the issue you were having but taking off the forum base slug fixes it.

    Really love what they did with the plugin. Let us know if you guys see any other issues.

    Posted 6 years ago #
  5. Elle
    Member

    Thanks for the fix suncat. Had the same problem with the Awake theme. The forum link in the breacrumbs was pointing at the blog main page. Just unchecking the "prefix your forum..." option didn't work. So I tried your solution and edited the bbp-common-template.php. Works like a charm now.

    Posted 5 years ago #
  6. aleccs
    Member

    works for me to ... thanks !

    Posted 5 years ago #
  7. Thanks SunCat100. Works for me too! Had spent too long trying to figure out why recommendations in bbPress forums were not working. Your suggestion made it piece 'o cake! Thanks!

    Posted 5 years ago #
  8. Any updates on when this may get fixed?

    Posted 5 years ago #
  9. Elliott
    Support

    What are you having problems with? bbPress forum slug? Did you try what we suggested above?

    Posted 5 years ago #
  10. Actually all the CSS for the forums is really bad. Was hoping you guys might provide a version update that includes the above fix (which I have temporarily implemented) and fixed the CSS based on the templates.

    Posted 5 years ago #
  11. Elliott
    Support

    Send us a link to your forum page and we'll take a look.

    Posted 5 years ago #
  12. newleaf
    Member

    This is the solution I have been looking for, but I cannot find the code that was modified to change the page linked to by the breadcrumb in bbpress. Is there a chance the breadcrumb code has changed now in the newest version of bbpress?

    Any help would be greatly appreciated!

    Posted 5 years ago #
  13. Elliott
    Support

    Try this out, http://mysitemyway.com/docs/index.php/BbPress.

    Posted 5 years ago #
  14. newleaf
    Member

    OK, I did that and my breadcrumbs are leading back to the right page, Thanks!

    But I have just on more thing to figure out. I used a mod that you provided a while back, which I can't seem to find again.

    In which we added the Modular General Page options fields to the forum pages so that I could add or remove sidebar and titles etc. which is working on the individual forums pages, but on the page called "Forums" I can't do any changes even though they are there and I can set them in the "edit page" view, they have no effect after bbpress takes over on the front end to display the forums.

    Does that make sense?

    Any ideas?

    Posted 5 years ago #
  15. Elliott
    Support

    Probably this one, http://mysitemyway.com/support/topic/bbpress-and-pagelayout#post-65633. It looks like you posted in there. You can view all threads that you posted in by clicking on the "member" link beneath your username.

    Posted 5 years ago #
  16. newleaf
    Member

    Yep, That was it!

    So is there a way to be able to do the same type of styling to the /forums/ page?

    My initial idea was to just make a different page and add the bbpress short code to populate it, and then change the url that the bbpress breadcrumb links to so it would match my new page, but I couldn't find the url. that's how I ended up here on this thread.

    Posted 5 years ago #
  17. Elliott
    Support

    The main forums page is an archive so you can setup the sidebar and sidebar layout in Dashboard -> your theme -> Specialty Pages.

    Posted 5 years ago #
  18. newleaf
    Member

    Great idea!

    How about getting a title to match the other pages, would that be possible?

    Posted 5 years ago #
  19. Elliott
    Support

    Changing the intro of the forums page? It should be set to "Forums" I think. Send us a link.

    Posted 5 years ago #
  20. newleaf
    Member

    Elliot,

    The title says Archives.

    the more I'm thinking about this, the more I think we are heading the wrong direction because what I really need is a page with the shortcodes in it so I can add other features arrange things as I need them etc....

    The only thing stopping me from being able to do that is the one breadcrumb that keeps linking to the slug that is set for the root. I can change the root slug in bbpress settings, but whatever it is it still functions as an archive and gives me no options to work with the page.

    am I thinking about this right? I could be way off......any thoughts or solutions?

    if nothing else just being able to change the intro to say forums or something would make it useable, but if i could just change that breadcrumb.....

    Posted 5 years ago #
  21. Elliott
    Support

    Go ahead and me a link so I can get a better idea of what's going on.

    Posted 5 years ago #
  22. newleaf
    Member

    oops forgot to include that before; here you go: http://theartoflutherie.com/forums/

    Posted 5 years ago #
  23. Elliott
    Support

    Open up /wp-content/themes/[your_theme]/lib/functions/theme.php and on line 1078 you should see this,

    $title = __( 'Archives', MYSITE_TEXTDOMAIN );

    Add this below it,

    if ( is_post_type_archive() ) { $title = "Forums"; }

    Posted 5 years ago #
  24. newleaf
    Member

    Great, it worked! Thank you!

    Looking forward to your child themes for bbpress too, I'm sure they will be excellent as all your work is!

    Thanks again!

    Posted 5 years ago #
  25. Hi, I've added the archive fix and the title fix above, and all is hunky dory. I've also tweaked the archive pages under speciality pages in the Awake theme CP. How do I get the sub-pages (Forums, child forums and topic pages) to match and have the same sidebar etc?
    Many thanks,
    Antony

    Posted 4 years ago #
  26. I've implemented the code at http://mysitemyway.com/support/topic/bbpress-and-pagelayout#post-65633 and have selected forum, topic and reply for custom post type meta - how do I then utilise this to change sidebar layout etc. Many thanks, Antony

    Posted 4 years ago #
  27. Sorry for being so dense - still suffering from man-flu! All sorted thank you.

    Posted 4 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme