Jump to content

Colonia

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by Colonia

  1. I could be wrong, but I don't think it would be that easy to configure it that way since the way it is pulling that info out is depending on your settings inside your config file.

    @Jeff: This was the first what I've tried, but it doesn't work.

    Inside of the loop would need to add something like

    $c['alt_metre'] = $flight->altitude * .3048;
    

    In the template you can then use

    <%=flight.alt_metre%>

    Thank you very much, @lorathon :) It works absolutely fine, with a small modification to round the output.

    I've added the following lines in the ACARS.php:

    $alt_meters = round(($flight->alt * 0.30479), 0);
    $c['alt_meters'] = $alt_meters;
    
    $gs_kilometers = round(($flight->gs * 1.851984), 0);
    $c['gs_kilometers'] = $gs_kilometers;
    

    Then I've added this in the acarsmap.tpl:

    <%=flight.alt_meters%>
    <%=flight.gs_kilometers%>

    post-553-003415400 1310950707_thumb.jpg

  2. Hello,

    I'm looking for a possibility to show the altitude beside feet also in meters in the Acarsmap. Also the speed should be indicated in knots as well as kilometers per hour (km/h). I've done some attempts, but nothing is working. I need two other variables, e.g. <%=flight.meters%> and <%=flight.kilometers%>. I tried to multiply the height by PHP with 0.30479 and the speed with 1.851984, but the result is always 0.

    Can someone help, please?

  3. Fantastic module. Thanx for it, Dave. I've modified it a little bit, so now it is sorted by departure or arrival times, shows airport full names, flight types (pax, cargo) and arrival times. And for this great work I've added a link to simpilotgroup.com at the bottom of the page. Example: Colonia VA.

  4. But...once you fly your first route it will show up correctly.

    Yes, that's correct. But the first flight can't book on my website via the hub EDDK. And that was the problem. If anyone of the new pilots take any random existing flight number it works. But I would that they start the first flight in EDDK or another chosen hub after registration and that them shown flights from the selected hub airport by REALScheduleLite.

  5. Thank you for the reply, Dave :)

    Have you assigned the pilots to a hub? - I built in a qualifier in the index template to put the pilot at their hub if they have never filed a PIREP.

    Yes, the pilots are assigned to the hub EDDK, also in the pilots table of the SQL database. And the qualifier is correct in my realschedulelite_index.tpl. But it doesn't work :( I tried the following in the realschedulelite_airport_details.tpl:

               //If pilot is logged in check their location
               //If the pilot is at this airport allow them to bid on flights
               if(Auth::LoggedIn() == true)
               {
                   $location = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, '');
                   $location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid);
    	if(!$location == $name->hub)
    	{
    	    echo '<td><a id="'.$flight->id.'" class="addbid"
    			href="'.actionurl('/schedules/addbid').'">Add to Bid</a></td>';
    	}
                   else if($location->arricao == $name->icao)
                   {
                       echo '<td><a id="'.$flight->id.'" class="addbid"
    			href="'.actionurl('/schedules/addbid').'">Add to Bid</a></td>';
                   }
                   else
                   {
                       echo '<td>You are not at this airport</td>';
                   }
               }
    

    That way it works fine for new and also existed pilots :D At least for the moment, I'll continue testing...

  6. Great Add-On. Thanks for it! But a little problem: New pilots are general stationing at EDDK. But if they klick the RealScheduleLite-Link of this airport, the message is "You are not at this airport" and they can't add a flight to their BIDs. "You are here" ist right, but then it isn't going further for them. And yes, there are enough aircrafts to fly at the airport.

×
×
  • Create New...