Skip to:
Content
Pages
Categories
Search
Top
Bottom

Maintenance Mode?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I don’t think you’ve missed anything.

    No Maintenance Mode for bbPress. Could be a pretty simple plugin to write though. Any takers?

    Trent

    I couldn’t make a plugin for it, but you can restrict users without the “administrate” capability from accessing the site by appending this line to bb-settings.php:

    if ( ! bb_current_user_can( 'administrate' ) ) { die('<p>The site is down for maintenance.</p>'); }


    citizenkeith
    Participant

    @citizenkeith

    FYI…

    If you are integrated with WordPress, you can use the Maintenance Mode plugin for WP and it will work with bbPress.

    https://wordpress.org/extend/plugins/maintenance-mode/

    I tried the code, it’s not working.

    Anyone?


    kevinjohngallagher
    Member

    @kevinjohngallagher

    The code is also 1 year old mate, and for a version of BBpress long since given up on since the RC1 was rushed out with no beta testing and very little alpha testing.


    t.sjogren
    Participant

    @tsjogren

    Hi

    I am about to do some maintenance on my forum and want to leave a message to the members.

    I have searhed the forums and the web without result.

    How can this be done in a easy way. Something like below but for bbpress or a plugin maybe?

    function wpr_maintenance_mode() {

    if ( !current_user_can( ‘edit_themes’ ) || !is_user_logged_in() ) {

    wp_die(‘Maintenance, please come back soon.’);

    }

    }

    add_action(‘get_header’, ‘wpr_maintenance_mode’);

    I agree with FEL64


    t.sjogren
    Participant

    @tsjogren

    @bryan_w OK… i know there is no built in maint-mode function, but is there a solution? How do you handle this scenario?

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