MikeTGV Posted January 27, 2015 Report Posted January 27, 2015 I am trying achieve this on the frontpage of my website but I'm not sure of it is possible. I would appreciate some help in this matter. When a Pilot is logged in, I want it to show as (You are Logged in as PILOT_NAME , PILOT_ID). Whatever code I use, it returns the info as 0000. Is there any way we achieve this ? P.S: I tried searching as much possible on the forums and couldn't find it. If I overlooked on the topics, I apologize for the trouble. Quote
Administrators simpilot Posted January 28, 2015 Administrators Report Posted January 28, 2015 <?php if(Auth::LoggedIn()) { echo 'You are Logged in as '.Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname.' '.PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid); } ?> 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.