Skip to:
Content
Pages
Categories
Search
Top
Bottom

Restrict specific forum by role?


  • scottmotion
    Participant

    @scottmotion

    Is there a simple way to restrict who can post topics and replies in a specific forum? I want to have an “Announcements” forum that only I can post to, but everyone can see.

    Right now I’ve solved this using bbp Private Groups, but it seems unnecessary to have these groups at all when I could use the forum roles. Its not a critical issue, just annoying, and I’ve been banging my head against this for 2 years…

    Is there some sort of hook I can use to disable new topics and replies in a specific forum while checking the user’s forum role?

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

  • Robin W
    Moderator

    @robin-w

    you could filter this function and it’s reply equivalent

    bbp_current_user_can_access_create_topic_form


    scottmotion
    Participant

    @scottmotion

    Wow, thanks Robin! Looks like it was there the whole time!

    I’m a bit confused though. I can only find reference to this on the BuddyBoss website. Are these bbp core functions and not part of BuddyBoss? I’m sure I found this before but probably dismissed it as part of their platform.


    Robin W
    Moderator

    @robin-w

    yes part of bbpress


    Robin W
    Moderator

    @robin-w

    \bbpress\includes\users\template.php

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