in2tech Posted August 6, 2014 Report Share Posted August 6, 2014 I have searched and not found this on the forums. I know it's here somewhere. I am wanting the code for pilot signature similar to the ranks where it will show the signature image for each pilot in the pilot center I am creating! Not just a link but the actual image for each pilot logged in. Should be something like the rank right? <?php echo $userinfo->rank; ?> I have tried: <?php echo $userinfo->signature; ?> <?php echo $userinfo->badge; ?> But neither one works! Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted August 6, 2014 Moderators Report Share Posted August 6, 2014 In order to get your pilot's signature you can use this: <img src="<?php echo SITE_URL; ?>/lib/signatures/<?php echo PilotData::GetPilotCode($userinfo->code, $userinfo->pilotid); ?>.png" alt="pilot signature" /> Quote Link to comment Share on other sites More sharing options...
Tom Posted August 6, 2014 Report Share Posted August 6, 2014 Slightly more robust way, taken from the profile template <img src="<?php echo fileurl(SIGNATURE_PATH.'/'.PilotData::GetPilotCode($userinfo->code, $userinfo->pilotid).'.png'); ?>"> Quote Link to comment Share on other sites More sharing options...
in2tech Posted August 6, 2014 Author Report Share Posted August 6, 2014 Thanks, I appreciate the help. Now I want the Last Flight data: Date: Flight Number: Departure: Arrival: Distance: Flight Time: Landing Rate: Status: (accepted, etc...) I guess this info is in the acars file, right? Can I strip the code from there? Guess we will see! And how do I get the text at the bottom of the award given? Figured out the text code but it's an alignment issue now. Want the text at the bottom of the award. http://screencast.com/t/78JcZ1nq3s Like I have here, but for the awards: http://screencast.com/t/rAD3hrR7pE This is the award code I have: <?php foreach($allawards as $award){ ?> <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" /><?php echo $award->name ?> <?php } ?> Thanks again for your help! 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.