Jump to content

Route Operator


miniarma

Recommended Posts

Hey guys,

Not the best when it comes to this and will need a little help. I am looking to implement something which seems simple, for each schedule I want to be able to add "Airline which operates this route" with the option to add an airline logo.

So with this added, on schedule search it will show in the results the airline logo on each individual schedule and also on the briefing page and live flight map.

If anyone knows of how to do this or is willing to make it or guide me then that will be helpful. If payment is needed then I will pay you :)

Many thanks & hope I made sense

  • Like 1
Link to comment
Share on other sites

  • Administrators

Just use the airline code option (screenshot below of an example) to give the flight the correct ICAO code for the airline then create some images that are named the same as the code.

ie: UAL.png - AAL.png - etc..

Then in your template you can use something like,

<img src="PATHTOMYIMAGE/<?php echo $schedule->code; ?>.png" alt="<?php echo $schedule->code; ?>" />

You will have to adjust the variable to whatever it is declared as in the template you are using.

That is how I have done it in the past.

post-198-0-09404900-1423948155_thumb.png

  • Like 1
Link to comment
Share on other sites

  • 1 year later...

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