bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Posts go to subforum instead of parent

(6 posts)
  • Started 1 year ago by baptiste
  • Latest reply from baptiste
  • This topic is not resolved
  1. Here's an interesting problem. I have about 20 forums total. Four forums have 2-4 subforums in them. I don't restrict posting in the parent forums - they're for more 'general' stuff.

    Anyway - if I click on the parent forum and post something, the post goes into one of the subforums instead. I can move it into the right place no problem.

    Not good - has anyone else seen this? I'm going to try and debug it some more today then open a ticket if necessary. Just figured I'd see if others had seen this behavior.

    Posted 1 year ago #
  2. Yup this is a bug and there is a fix that I can't remember for the life of me. It might be already fixed by default in the alpha.

    Let me google away and see if I can find it... I know it's very annoying.

    I vaguely remember it has something to do with the forum pointer not being reset after the sub-forums are displayed.

    Posted 1 year ago #
  3. Found my fix after some digging.

    edit forum.php
    see where this part is near the top

    </table>
    <?php endif; ?>
    <?php if ( $topics || $stickies ) : ?>

    change it to this:

    </table>
    <? global $forum; $forum = get_forum( $forum_id );    // fix for 0.8.2.1 sub-forum bug ?>
    <?php endif; ?>
    <?php if ( $topics || $stickies ) : ?>

    it's related to this bug which is fixed in the trunk (supposedly)
    http://trac.bbpress.org/ticket/704

    Posted 1 year ago #
  4. Sweet! Thanks for the pointer. I'm trying out the one line fix to template-functions.php If that doesn't work I'll change the template file.

    Posted 1 year ago #
  5. Hmm - I assume you mean the forum.php file in the template itself. It's not working for me at all. Still digging.

    Posted 1 year ago #
  6. Ah - I moved it a bit lower (actually right before post_form) and the forum_id in the hidden variable is correct now, works great.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.