Jump to content

Recommended Posts

Posted

I have searched for the answer I seek and am coming up empty handed.

I am curious if it is possible for the pilot center to recognize a pilots Airline of choice and output that info to their pilot center.

Say for example, I open up Wild Animals Airline and their callsign is Wild then I go and add another airline and Call it Wild Express and their callsign is Casper (for lack of anything better).

Now If Pilot A registers for the airline Wild Express, then when he or she views the pilot center it would give them their airline name and call sign with all their profile info up to by rank hours flown etc etc.

Possible to do?

  • Moderators
Posted

I believe this has been brushed upon before based on the login and an if statement.

So if they login with abc you use abc.css if xyz then xyz.css.

I have not tried it but im sure it would work.

Posted

Ohh you are on track with my thoughts. lol Close but no cigar though..... This time. ;)

What I am referring to is not the template that the site uses, but more like when you view the Pilot Center, on the right side of your avatar and what nots of the such, is a list with items such as total money, hours to next rank, current location, etc etc.

All I want to do there in that list is add another list item that says Airline: What ever they chose That airline name is contingent onwhat they used when they registered IF a VA has multiple airlines in operation.

  • Moderators
Posted

lol and there is me complicating the issue....

You could try something like,

<?php echo PilotData::GetPilotCode($pilot->code)?>

Or something along those lines, I dont know if you can get the airline name, but you must be able to.

Ill have a dig in the docs

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