Skip to:
Content
Pages
Categories
Search
Top
Bottom

Topics accessible to certain users only


  • project_subdomain
    Participant

    @project_subdomain

    In some of my forums users can open new topics.

    Need: Make topics accessible (=read and write replies) only to users that wish to subscribe to or join that specific topic.

    I’m dreaming of a button saying “Join this topic” which then makes replies of a topic visible for all users who push the button. Optimally same for leaving.

    (Topic titles shall always be seen by everyone)

    Thought about bbp-private-groups’ plugin, private replies and a combination with user role’s membership plugins but I’m totally stuck right now.

    I’d appreciate any help you can give!

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

  • Robkk
    Moderator

    @robkk

    This sounds like custom functionality , you may need to hire a developer to create this for you.


    project_subdomain
    Participant

    @project_subdomain

    thanks, robkk, you are right.

    found a solution that may be useful for some, though:
    It’s these three plugins together:
    Paid MembershipsPro + Paid Memberships Pro bbpress + Paid Memberships Pro: PMPro Roles
    Tried, worked, but unfortunately slowed down my page already and found it to be a bit too much overload for what I need.


    Robkk
    Moderator

    @robkk

    Yeah that sounds way too complicated


    Coach Afrane
    Participant

    @coach-afrane

    I have bbpress installed for forums and i have set it to “Anyone can register”. I would want to allow anyone who is registered to be able to start a topic in the forum but it seems i (admin) am the only one who is allowed to.

    Please help.
    Thanks


    PinkishHue
    Participant

    @pinkishhue

    Could you just add some sort of conditional to say ‘if subscribed’ and ‘if in forum X’ in the replies loop template so say only people subscribed can see replies? Sounds like it should work?


    Robkk
    Moderator

    @robkk

    @pinkishhue

    Yeah there might be a conditional to tell if the user is subscribed, will test it out later though.


    Robkk
    Moderator

    @robkk

    This seems to do it. Users have to subscribe to be able to reply.

    https://gist.github.com/robkk/05695833dbea1b00a434


    project_subdomain
    Participant

    @project_subdomain

    thanks robkk. just tried out.

    would be great if users see to which topics they can subscribe and are still be able to create new topics.

    when “hidden” the whole forum containing non subscribed topics is hidden which also takes the possibility to subscribe to a topic at all.
    when “private” it removes the reply form if a user is not subscribed (for admins, too).
    replies of a topic are still viewable.


    Robkk
    Moderator

    @robkk

    when “hidden” the whole forum containing non subscribed topics is hidden which also takes the possibility to subscribe to a topic at all.

    hidden forums are only accessible to Admins and Mods.

    when “private” it removes the reply form if a user is not subscribed (for admins, too).
    replies of a topic are still viewable.

    I will update my gist file to show the reply form to Admins/Mods so they do not have to subscribe.

    The replies to a topic being viewable I am not really getting? In what circumstance do you want the replies to be hidden??


    project_subdomain
    Participant

    @project_subdomain

    hidden forums are only accessible to Admins and Mods.

    ah ok – makes sense, then.

    The replies should be hidden
    -if logged out
    -if logged in but not subscribed to the specific topic.


    Robkk
    Moderator

    @robkk

    he replies should be hidden
    -if logged out
    -if logged in but not subscribed to the specific topic.

    could be easy for just logged out, might need show lead topic for replies (maybe).


    Robkk
    Moderator

    @robkk

    @project_subdomain

    Updated the Gist again, this time and it should work like how you want.

    You will need to show the lead topic using this though.

    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }
     
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );

    project_subdomain
    Participant

    @project_subdomain

    this works great for replies, Robkk.
    Unfortunately it changed the default settings for public forums the same as for private forums.

    Public forums
    should be:
    -logged in and out: read lead and replies
    -logged in, also unsubscribed: read both and write replies

Viewing 13 replies - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.
Skip to toolbar