flyalaska Posted June 6, 2010 Report Posted June 6, 2010 How do I display something when logged off and not have it displayed when logged in? Quote
Administrators simpilot Posted June 7, 2010 Administrators Report Posted June 7, 2010 if(!Auth::LoggedIn()) { Do stuff if your not logged in } 1 Quote
flyalaska Posted June 7, 2010 Author Report Posted June 7, 2010 if(!Auth::LoggedIn()) { Do stuff if your not logged in } Thank you!!! Quote
flyalaska Posted June 7, 2010 Author Report 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
Administrators simpilot Posted June 7, 2010 Administrators Report Posted June 7, 2010 Try <?php if(!Auth::LoggedIn()) { echo '<h4>Greased Landings</h4>'; MainController::Run('TouchdownStats', 'top_landings', '10'); } ?> 1 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.