WordPress.org

Ready to get started?Download WordPress

Forums

Pinboard
bbpress Forum homepage displaying oddly (8 posts)

  1. morroccomethod
    Member
    Posted 11 months ago #

    I'm using bbpress 2.3.1 and the forums homepage ( http://www.morroccomethod.com/blog/forums/ ) is displaying in a bizarre layout. It seems to squish itself to one side. I tried changing the number of columns, but it seems to create that many columns in that box.

    The subforums ( http://www.morroccomethod.com/blog/forums/forum/henna-2/ and http://www.morroccomethod.com/blog/forums/forum/lunar/ ) show up just fine.

  2. ZachMatthews
    Member
    Posted 11 months ago #

    I am having this exact same problem. Looks like you are also using the pinboard theme?

    Anyone have any solutions to this? From what I can tell the smooshed up page is incorrectly calling to the .threecol CSS tag instead of the proper .onecol tag (which is what the appropriately-spaced sub forums are using).

  3. Defkon1
    Member
    Posted 5 months ago #

    Easy (and dirty) solution:

    0. backup your theme folder
    1. download /wp-content/themes/pinboard/page.php to your local environment
    2. rename your LOCAL page.php in forums.php
    3. modify LOCAL forums.php line 12:
    <?php post_class(); ?>
    in
    <?php $classes=get_post_class(); echo str_replace("twocol", "onecol", $classes); ?>
    4. modify LOCAL forums.php line 18:
    <?php the_content(); ?>
    in
    $content = get_the_content(); echo str_replace("twocol", "onecol", $content); ?>
    5. upload your forums.php to /wp-content/themes/pinboard/

    This trick is a bit dirty becase the string replace will replace ANY occurrence of "twocol" (include for example "twocolumnsotherclass",...), so use it on your own risk.

    see it live: http://www.bballmag.it/forums/

  4. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 5 months ago #

    You might as well also recommend to create a Child Theme

  5. Defkon1
    Member
    Posted 5 months ago #

    actually this is an update-safe trick, because pinboard theme doesn't provide a specific template for bbpress, so create a child theme is nearly useless...

  6. Andrew Nevins
    Spam zapper & Volunteer Moderator
    Posted 5 months ago #

    Okay, but that doesn't render a Child Theme useless.

  7. ZachMatthews
    Member
    Posted 5 months ago #

    If you guys will go look here, what I wound up doing is leaving it in .onecol (the default), abandoning the sidebars, and tweaking the CSS.

    http://www.itinerantangler.com/blog/board/forums/

    If you do a multi-site you can limit this setup to one page only (i.e. the forum) and still have a fully-functioning Pinboard theme elsewhere. I've integrated everything under one "roof" even though I am actually running three separate multisite Pinboard instances. It looks good, not too awkward to manage since you just end up having three separate admin pages (which are all integrated under the dropdown top tabs on the /admin/ home page for the whole site).

    Zach

  8. thefruitnation
    Member
    Posted 2 months ago #

    I saw your post on another page Zach and noticed it still works well on your page as the multisite. I used Defkon1's solution but changed it to 'threecol' to suit my site. http://www.thefruitnation.com/forums/

    is there any implication defkon1 to using this as you implied 'at your own risk' ?

Reply

You must log in to post.

About this Theme

About this Topic