Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Check if a user is logged in?


chrishajer
Participant

@chrishajer

parthatel can you post your code here?

What function are you using to check if the user is logged in? Does it error out or does it just not display any content (if it does not error, then the function is probably a valid function.)

And showing one content for logged in members and other content for other members is pretty basic PHP:

<?php
if (bb_is_user_logged_in() ) {
echo "You are logged in.n";
}
else {
echo "You are not logged in.n";
}
?>

 

I’m 99% certain that is the proper function name, and the code will work.

Skip to toolbar