nabpp Posted January 30, 2013 Report 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
flyalaska Posted January 30, 2013 Report 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
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.