Jump to content

Recommended Posts

Posted

Hello,

Please guide me how can I just display the city name in live flight departure board.

I want that i just display the departure city and arrival city instead of departure airport and arrival city.

Thanks in advance.

Posted

Hello,

Please guide me how can I just display the city name in live flight departure board.

I want that i just display the departure city and arrival city instead of departure airport and arrival city.

Thanks in advance.

:huh:

Posted

The closest thing you can get to the city, is the airport!

You can try the showing the country as well!?

To show the city name, you would have to edit the phpvms_airports table and insert the data for all the airports, as well as make some changes to the files in the common and modules folders on your site.

Posted

Oh, OK, I read it wrong!

$depinfo = OperationsData::getAirportInfo($flight->depicao);
$arrinfo = OperationsData::getAirportInfo($flight->arricao);

And then, where you want them displayed:

<?php echo $depinfo->name;?>
<?php echo $arrinfo->name;?>

Posted

@itrobb

You code gives him the Airport Name doesn't it?

I think he wants the actual name of the city, of the airport. E.G KLAX - Los Angeles (Not Los Angeles international airport", EGLL - London (not Heathrow International airport")

@stars

As i said, if you want to do this, you would need to do a lot of modification to the airports table. The closest thing you can do, is what itrobb said; that is, the airport names!

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