Author Topic: Hide pilots names of live flights (SOLVED)  (Read 44 times)

jiko

  • Newbie
  • *
  • Posts: 7
    • View Profile
Hide pilots names of live flights (SOLVED)
« on: February 05, 2020, 07:52:27 PM »
Hello.
Is there any way to hide the names of live flights from visitors ???
« Last Edit: February 10, 2020, 08:33:54 AM by jiko »

Sophie

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Hide pilots names of live flights
« Reply #1 on: February 05, 2020, 08:59:50 PM »
Of course you can do that. I've added it on my side as well.

http://prntscr.com/qy384t

The Live Flight Map is only shown when you are logged in, because the access to Google Maps is not free unlimited. So you are protected from bot access and unwanted map access.

Not wonder the airline logos have been added to the Live Flight Map, as we support all airlines in the world. The logo is searched by flight number and displayed correctly.

logged off http://prntscr.com/qy3h4u

logged in http://prntscr.com/qy3gr6

the most efficient way is  ,  work with    if ($user_logged==1)

Sophie

This should only be an example that it is possible. The implementation is up to each individual.
« Last Edit: February 05, 2020, 09:05:38 PM by Sophie »
Please use the search function, this will help you with most of the questions asked here.

jiko

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Hide pilots names of live flights
« Reply #2 on: February 05, 2020, 10:47:26 PM »
Thank you very much, Sophia for your immediate response, and I appreciate it.

Because I'm new to VAM, could you give me more details about how I can do that?
In last flights and newest pilots I have done it.
But in live flights, I get very difficult.

thank you again !!

jiko

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Hide pilots names of live flights
« Reply #3 on: February 06, 2020, 12:53:46 AM »
Sophie i try this and its work fine !!!

Code: [Select]
if ($user_logged==0) {
}
if ($user_logged==1) {
if ($row_cnt>0){
?>
<div class="row" id="live_flights">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title"><IMG src="images/icons/ic_flight_takeoff_white_18dp_1x.png">&nbsp;<?php echo "LIVE FIGHTS" ?></h3>
</div>
<div class="panel-body">
<div class="table-responsive">
<table class="table table-hover" id="live_flights_table">
<?php
echo "<tr><th>" LF_CALLSIG "</th><th>" LF_PILOT "</th><th>" LF_DEPARTURE "</th><th>" LF_ARRIVAL "</th><th>" FLIGHT_STAGE "</th><th>"BOOK_ROUTE_ARICRAFT_TYPE "</th><th>" PERC_DONE ."</th><th>" PENDING_NM "</th></tr>";
?>

</table>
<?php include ('./vam_live_flights_map.php'?>
</div>
</div>
</div>
</div>
<?php
}
    }
?>

the Live Flights is not visible to visitor and this is very cool now !!!
thank you very much !!!!!

i put the this code here maybe helps and another members  :)

Sophie

  • Full Member
  • ***
  • Posts: 119
    • View Profile
Re: Hide pilots names of live flights
« Reply #4 on: February 06, 2020, 03:55:17 PM »
you're welcome
Please use the search function, this will help you with most of the questions asked here.