Jump to content

Recommended Posts

Posted

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.

  • Administrators
Posted
<?php
if(Auth::LoggedIn())   {
echo 'You are Logged in as '.Auth::$userinfo->firstname.' '.Auth::$userinfo->lastname.' '.PilotData::GetPilotCode(Auth::$userinfo->code, Auth::$userinfo->pilotid);
}
?>

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...