Forums

Join
bbPress Support ForumsInstallationprinting #main div just if logged in?

Info

Tags

printing #main div just if logged in?

  1. hey guys,
    is it possible to just display the #main div on my bbpress website if users looged in? i don't want to simply hide it with css, because i'm able to do that.

    however i thought of something like starting in the header with:

    <?php if ( bb_is_user_logged_in() ) : ?>
    <div id="main">
    ....

    and ending in the footer

    </div> <!-- #main -->
    <?php endif; ?>

    however, i'm always getting an error. any idea how i can solve that problem?
    i just want to display the login form and the register-link if users are logged out, nothing else, not even stuff in the footer - no header image, nothing at all.

    thank you for your help!

  2. If you want to turn your forum private, use this plugin.

  3. thank you very much, awesome!

  4. You must log in to post.