03-15-2017, 04:22 AM
Sure...so if you want to show a link (or anything) only if the user is logged in, wrap the whole thing in this.
You can also do
If you only want to show code to users who are not logged in.
Code:
if($user->isLoggedIn()){
Code:
//your code here
Code:
} // close if statement.
You can also do
Code:
if(!$user->isLoggedIn()){
Code:
//your code here
Code:
}
If you only want to show code to users who are not logged in.