Skip to:
Content
Pages
Categories
Search
Top
Bottom

Make the forum in read-only mode

  • @chandersbs

    Member

    Hi everyone,

    Is there a way I can put the forum in Read Only mode?

    Sometimes when I’m working on it, I don’t want my users to post new content, however, I want the forum to stay open for public, so they can browse the site.

    Of course there’s always the option to put it offline, but that can hurt my organic rankings.

    Any help is highly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @dblatner

    Participant

    OK, this reply is 4 years late, but: Just setting the forum to Status: Closed seems to make it read-only.

    @stiofansisland

    Participant

    i had to do this today for a few hours, only hidden with CSS and message displayed but might help someone:

    // put forum in read only mode
    add_action('bbp_theme_after_reply_form','gd_bbp_read_only_mode');
    add_action('bbp_theme_after_topic_form','gd_bbp_read_only_mode');
    function gd_bbp_read_only_mode(){
    
    	?>
    <style>
    	fieldset.bbp-form{ display: none;}
    </style>
    	<div style="background: red;color: white;"><h2>The forum is currently in read only mode while we perform some maintenance, this should only take a few hours.</h2></div>
    <?php
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar