Info
- 6 posts
- 2 voices
- Started 4 years ago by baptiste
- Latest reply from baptiste
- This topic is not resolved
Posts go to subforum instead of parent
-
- Posted 4 years ago #
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 4 years ago #
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 4 years ago #
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 4 years ago #
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 4 years ago #
Hmm - I assume you mean the forum.php file in the template itself. It's not working for me at all. Still digging.
-
- Posted 4 years ago #
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.
-
You must log in to post.