flyalaska Posted June 6, 2010 Report Share Posted June 6, 2010 How do I display something when logged off and not have it displayed when logged in? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted June 7, 2010 Administrators Report Share Posted June 7, 2010 if(!Auth::LoggedIn()) { Do stuff if your not logged in } 1 Quote Link to comment Share on other sites More sharing options...
flyalaska Posted June 7, 2010 Author Report Share Posted June 7, 2010 if(!Auth::LoggedIn()) { Do stuff if your not logged in } Thank you!!! Quote Link to comment Share on other sites More sharing options...
flyalaska Posted June 7, 2010 Author Report Share Posted June 7, 2010 Am I doing something wrong. It still shows when I am logged in <?php if(!Auth::LoggedIn()) { Do stuff if your not logged in } > <h4>Greased Landings</h4> <?php MainController::Run('TouchdownStats', 'top_landings', '10'); ?> <?php } ?> Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted June 7, 2010 Administrators Report Share Posted June 7, 2010 Try <?php if(!Auth::LoggedIn()) { echo '<h4>Greased Landings</h4>'; MainController::Run('TouchdownStats', 'top_landings', '10'); } ?> 1 Quote Link to comment Share on other sites More sharing options...
flyalaska Posted June 7, 2010 Author Report Share Posted June 7, 2010 That worked, Thanks. 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.