Remington Box Posted May 24, 2012 Report Share Posted May 24, 2012 Is there a way to make an entire div appear when some one logs in? I am sure it can probably be done with php but I am not sure how. Quote Link to comment Share on other sites More sharing options...
flyalaska Posted May 24, 2012 Report Share Posted May 24, 2012 <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> Your Content Goes Here <?php } ?> Quote Link to comment Share on other sites More sharing options...
freshJet Posted May 24, 2012 Report Share Posted May 24, 2012 Yes but he means WHEN they login not if they are logged in. I wondered this a long time ago to. Quote Link to comment Share on other sites More sharing options...
SkyPilot Posted May 24, 2012 Report Share Posted May 24, 2012 If you look at the prior code, You will notice the '!' before Auth. The ! means NOT. So what I did was just remove that, So if the user is logged in, Do this. <?php if(Auth::LoggedIn()) { // Show these if they have logged in. ?> Your Content Goes Here <?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.