Jump to content

Recommended Posts

Posted

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!

  • Moderators
Posted

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" />

Posted

Slightly more robust way, taken from the profile template :)

<img src="<?php echo fileurl(SIGNATURE_PATH.'/'.PilotData::GetPilotCode($userinfo->code, $userinfo->pilotid).'.png'); ?>">

Posted

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!

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...