JohnMck93 Posted January 21, 2010 Report Share Posted January 21, 2010 im trying to put up a login box on my home page but when the user is logged in i want the box to go away and when you log out it comes back up, i tried to copy some of the default coding and it did not work. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 21, 2010 Administrators Report Share Posted January 21, 2010 How about -> <?php if(!Auth::LoggedIn()) {$this->show('login_form.tpl'); } ?> Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 21, 2010 Author Report Share Posted January 21, 2010 i then get this error Parse error: syntax error, unexpected T_STRING in /www/zzl.org/s/u/n/sunsetva/htdocs/lib/skins/SSVA/header.tpl on line 82 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 21, 2010 Administrators Report Share Posted January 21, 2010 Sounds like you didn't close a quote somewhere around that line it says Quote Link to comment Share on other sites More sharing options...
JohnMck93 Posted January 22, 2010 Author Report Share Posted January 22, 2010 then im getting a php error with $end Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted January 22, 2010 Administrators Report Share Posted January 22, 2010 Then a close bracket is missing 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.