nabpp Posted January 30, 2013 Report Share Posted January 30, 2013 how would i set my site up so it says welcome guest when ur not logged in but ur name when u are logged in? Quote Link to comment Share on other sites More sharing options...
flyalaska Posted January 30, 2013 Report Share Posted January 30, 2013 Try this <?php if(Auth::LoggedIn() == false) { ?> Welcome Guest <?php } ?> <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> <?php } else { // Show these items only if they are logged in ?> Welcome <?php echo $userinfo->firstname . ' ' . $userinfo->lastname?> <?php } ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.