nabpp 2374 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 post Share on other sites
flyalaska 3216 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 post Share on other sites
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.