Skip to:
Content
Pages
Categories
Search
Top
Bottom

restricting answers to admin

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

  • Robin W
    Moderator

    @robin-w

    If you have FTP access then :

    create a directory on your theme called ‘bbpress’
    ie wp-content/themes/%your-theme-name%/bbpress
    find
    wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php
    Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
    wp-content/themes/%your-theme-name%/bbpress/form-reply.php
    bbPress will now use this template instead of the original

    then you need to chnage the line

    <?php if ( bbp_current_user_can_access_create_reply_form() ) : ?>
    

    to do a check for keymaster and author

    something like

    <?php if ( bbp_is_user_keymaster())  || bbp_get_reply_author_id() == bbp_get_current_user_id() : ?>
    

    bbp_get_reply_author_id() might need to be bbp_get_topic_author_id() – you’ll need to try it to see

    Give this a go, I’m very short of time at the moment, so haven’t tested !


    Robin W
    Moderator

    @robin-w

    Have edited the above to make it more accurate, but still may have errors !

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