Info
- 3 posts
- 2 voices
- Started 1 year ago by sepp88
- Latest reply from sepp88
- This topic is not resolved
printing #main div just if logged in?
-
- Posted 1 year ago #
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!
-
- Posted 1 year ago #
If you want to turn your forum private, use this plugin.
-
- Posted 1 year ago #
thank you very much, awesome!
-
You must log in to post.