Skip to:
Content
Pages
Categories
Search
Top
Bottom

To allow anonymous post replies in topics, but disallow create new topics


  • neon67
    Participant

    @neon67

    How to allow unauthorized users to post replies in threads only, but disallow new topics?
    There is a check-box in the forums tab – “Allow unauthorized users to create replies in topics.”
    But when I turn on, anonymous can create both: replies and new topics also ((

    How to split this permission? maybe code in functions.php…

    Thanks ๐Ÿ™

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

  • neon67
    Participant

    @neon67

    There was an idea to close the topic-form for anonymous users.
    But maybe – the other way is better?


    Robin W
    Moderator

    @robin-w

    untested but this should do it

    add_filter ('bbp_current_user_can_publish_topics' , 'rew_disallow_anon') ;
    
    function rew_disallow_anon ($retval) {
    	if ( ! is_user_logged_in() ) $retval=false ;
    return $retval ;
    }

    neon67
    Participant

    @neon67

    Thanks Robin for the answer! It works like a charm!

    Complete Recipe for the Community – now there is everything to fine-tune the experiment – to open the reception of anonymous messages.
    This topicโ˜๏ธ and this topic ๐Ÿ‘‰๐Ÿป https://bbpress.org/forums/topic/remove-e-mail-field-from-form-anonymous/ will help you.

    You will also need a moderation tool, since spam will immediately as cornucopia.
    Dont to dig into a heap of spam for catching valuable messages: push Google captcha. It’s all!

    PS – I don’t understand why Google captcha will not be put on this forum? There would be less spam))

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