Skip to:
Content
Pages
Categories
Search
Top
Bottom

Limit New Topics

  • @creativeslice

    Participant

    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)
  • @nuprn1

    Participant

    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)
  • The topic ‘Limit New Topics’ is closed to new replies.
Skip to toolbar