Forums

[resolved] if user is logged in, show this, if not, show that... my simple code.. (2 posts)

  1. homienick
    Member
    Posted 2 years ago #

    It will only display the "YOU'RE NOT LOGGED IN"
    even if i'm logged in, could anyone tell me? or point me in the right direction?

    <?php if ( $user_ID ) : // Check if logged in ?>
         YOUR BOOKMARKS 
    
    <?php else : // User is not logged in ?>
         YOU'RE NOT LOGGED IN 
    
    <?php endif; ?>

    why isn't this code working?

  2. homienick
    Member
    Posted 2 years ago #

    ohh, it needs to be in the loop.
    problem solved.

    :D

Topic Closed

This topic has been closed to new replies.

About this Topic