Skip to:
Content
Pages
Categories
Search
Top
Bottom

Private/Hidden Forum – Topics and sub-forum disappear


  • Suchar
    Member

    @suchar

    Hello!

    I’ve just installed bbPress plugin. Everything seems to work fine except private and hidden forums. When I set up private or hidden forum and publish it (and add sub-forums) everything is OK. However when I write a new topic or a new post and submit them in hidden/priavte forum I can’t see no more subforums etc. The same happens when I go to the main page of my forum – I can see only the name of hidden/private forum. There’s no difference if I use my admin account or forum participant account.

    Subforums and topics in hidden/private forums apeear again when I go to the Forum options and update forums (but this doesn’t always work… :/ ).

    I would be glad if anyone helps me.

    My wordpress ver is 3.4.1 I use theme SIGHT and newest bbpress

    It’s probably the same problem as here: http://bbpress.org/forums/topic/forum-description-vanished/

Viewing 16 replies - 1 through 16 (of 16 total)

  • hammer9600
    Participant

    @hammer9600

    I’ve got the same problem, anyone got an idea on how to solve this?


    goddess_dix
    Participant

    @goddess_dix

    I was having a LOT of issue any time I edited a private or hidden forum, don’t know if it’s related, but found if I cleared cache (W3C) right before saving, that seemed to help it save properly…


    libertux
    Participant

    @libertux

    Have same problem with private forum under a category, please help


    RiGoRmOrTiS_UK
    Participant

    @rigormortis_uk

    yup; I’ve got this exact same problem. Sub-Forums of a category are disappearing from the forum list random (either when posts are deleted or changes are made to the forum itself).

    This only happens with Hidden and Private forums.


    libertux
    Participant

    @libertux

    I have a littel tip, trying to resolve or have an idea about whats hapend i found a littel thing, so, if under your public top level category you have at least one public sub-forum so theres no problems all work fine so the idea is to add a fake sub-forum with a strange name :) and try to hide it using jquery, i dont know if it’s work at 100% but it’s an idea that can help (oh bbpress coder!!!! we hope a littel help from you ;) )


    RiGoRmOrTiS_UK
    Participant

    @rigormortis_uk

    yup your right. as long as there is at least 1 public sub-forum the rest display without issue; regardless of whether they are private, hidden etc…

    .. clearly a code bug in bbpress; will be nice if devs can jump in on this one.


    RiGoRmOrTiS_UK
    Participant

    @rigormortis_uk

    Suprised this isn’t get as much attention, everyone just running public forums?


    libertux
    Participant

    @libertux

    Yup, i think so may be we should find another solution! in my case i add a public blocked forum “Announcement” inside eatch category it’s not a choise but i should do it. But is’nt so important this issue?!!!

    • This reply was modified 1 year, 11 months ago by  libertux.
    • This reply was modified 1 year, 11 months ago by  libertux.
    • This reply was modified 1 year, 11 months ago by  libertux.

    RiGoRmOrTiS_UK
    Participant

    @rigormortis_uk

    Do devs read this forum or are we posting in the wrong place?


    aaclayton
    Participant

    @aaclayton

    Just got hit with this issue myself. Thought I’d throw my 2c on the pile.

    If a category or forum has children, and no child is public, I run into some strange bugs where the category disowns all its children.

    I’m trying to have a hidden category with private subforums for administrative purposes, ideally I could have:

    Category = hidden
    Subforum = private
    Topics in Subform = public

    Unfortunately both of these setups hit the bug documented above. The two setups I’ve found which works are either:

    Category = hidden
    Subforum + Topics = public

    This has the undesirable side effect of subscribers being able to find the topic even though it’s nested in a hidden category.

    OR:

    Category = hidden
    Subforum = private
    Topics = private

    This seems to work OK, but it requires that every new topic in the private subforums be switched to be flagged as private in the wp-admin area.

    I’m gonna keep working on this, see if I can figure out a solution.


    BigEfromDaBx
    Participant

    @bigefromdabx

    I have the same problem. What I been doing is going back and make another private forum under that category and it re-appears. Then I delete it. But it will disappear again. So this time Im gonna leave the new forum i created and see if it happens again.


    chromancer
    Participant

    @chromancer

    Hey folks, I had the same problem as you all. With no solution forthcoming, I dug down into the code and used a bunch of debug_zval_dump() statements to see the actual SQL.

    The problem is that the code is producing this query to find out whether or not you have subforums:

    SELECT ID FROM wp_posts WHERE post_parent = 31 AND post_status IN ( 'publish' ) AND post_type = 'forum' ORDER BY ID DESC
    

    But the status for your private subforums is ‘private’. You want to see this:

    SELECT ID FROM wp_posts WHERE post_parent = 31 AND post_status IN ( 'publish','private' ) AND post_type = 'forum' ORDER BY ID DESC
    

    I found this on line 1287 of bb-common-functions.php:

        $post_status = array( bbp_get_public_status_id() );
    

    That line of code is what puts the ( ‘publish’) list in the SQL. I changed it to:

        $post_status = array( bbp_get_public_status_id(), bbp_get_private_status_id() );
    

    Now my subforums are showing up correctly. To see if this fix would have any adverse affects, I created a public forum, added a private subforum and logged out. The private subforum was not visible. Seems like this fix worked for me.

    If you don’t have access to the actual source code, I’m afraid you won’t be able to do what I did, but I wanted to share that for those who do. Perhaps somebody can make some sort of plugin to help everyone else. I’m actually not a PHP guy and hardly know what I’m doing at all and I’m new to bbpress as well. If anybody comes up with anything better, I’d love to see it!


    aaclayton
    Participant

    @aaclayton

    @chromancer, thanks for digging into this. I worked out an alternative solution for hiding a private forum category, but it looks like you’ve nailed the issue. Might be worth working up a ticket for the trac on this one.

    I can think of a number of scenarios in which having a private forum category would be ideal, this functionality would make a lot of sense to be supported in core IMHO.


    kotsar
    Participant

    @kotsar

    My example ans


    Skydda
    Participant

    @skydda

    I tried chromancer’s solution, didn’t work – instead, ALL of my topics vanished after I used the repair tool.

    Is there really no solution to this? I can’t trash and recreate all forums everytime a member posted in a topic… :(


    Sunidaze
    Participant

    @sunidaze

    I’m looking for the solution to this also…

Viewing 16 replies - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.