Stealthbird97 Posted January 15, 2013 Report Share Posted January 15, 2013 I have a sidebar section which is only visible when a pilot is logged in. I would also like this section show some user data. What code would I need to make it display the pilots name. I've already tried <?php echo $userinfo->firstname . ' ' . $userinfo->lastname; ?>! But this doesn't show anything. I would be much obliged if someone could tell me the code i need. Thanks Quote Link to comment Share on other sites More sharing options...
mattia Posted January 15, 2013 Report Share Posted January 15, 2013 try Auth::$userinfo->firstname 1 Quote Link to comment Share on other sites More sharing options...
Stealthbird97 Posted January 16, 2013 Author Report Share Posted January 16, 2013 Thank you very much! Quote Link to comment Share on other sites More sharing options...
Stealthbird97 Posted January 16, 2013 Author Report Share Posted January 16, 2013 Any way of displaying the avatar as well This doesn't work <img src="<?php echo PilotData::getPilotAvatar($pilotcode); ?>" /> Quote Link to comment Share on other sites More sharing options...
Stealthbird97 Posted January 17, 2013 Author Report Share Posted January 17, 2013 anyone for the third post by me? 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.