Skip to:
Content
Pages
Categories
Search
Top
Bottom

Limit New Topics

  • Avatar of Creative Slice
    Creative Slice
    Participant

    @creativeslice

    Is there a way to allow admins ONLY to add a new topic inside a BP group forum? So any logged in visitor could respond to a topic, but ONLY admins can add a topic.

    Thanks!

Viewing 1 replies (of 1 total)
  • Avatar of rich! @ etiviti
    rich! @ etiviti
    Participant

    @nuprn1

    sure but you will need to modify a few theme files and wrap the post forms with a check

    theme files contain the “Post a New Topic:” forms
    groups/single/forum.php
    forums/index.php

    then some check like so
    `if ( !bp_is_group() || ( bp_is_group() && ( is_site_admin() || groups_is_user_admin( bp_loggedin_user_id(), bp_get_group_id() ) || groups_is_user_mod( bp_loggedin_user_id(), bp_get_group_id() ) ) ) )`

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.