Jump to content

bteixeira

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by bteixeira

  1. Hi all,

    For quite some time i've shouting :) to some help at the forum.

    Here the problem:

    In my VA sapiensair.com, when I'm flying the livemap it works nicelly, but if I go to vacentral livemap it dont apears anything, does anyone had the same problem?

    But the pireps they are sent and show.

    Help please.

    Bruno

  2. Thank you very much itrobb, for help, so also is possible to put this information over schedule_details.tlp?

    I will visit now your site to see.

    bruno

    itrobb

    I use this script in my briefings, so schedule_briefing.tpl.

    If you want it in that, use:

    <?php
    function get_metar($location){
    $fileName = "http://weather.noaa.gov/pub/data/observations/metar/stations/$location.TXT";
    $metar = '';
    $fileData = @file($fileName) or die('METAR not available');
    if ($fileData != false) {
    list($i, $date) = each($fileData);
    
    $utc = strtotime(trim($date));
    $time = date("D, F jS Y g:i A",$utc);
    
    while (list($i, $line) = each($fileData)) {
    $metar .= ' ' . trim($line);
    }
    $metar = trim(str_replace(' ', ' ', $metar));
    }
    echo "METAR FOR $location (Issued: $time UTC):<br>$metar";
    }
    
    echo get_metar($schedule->depicao);
    echo "</br>";
    echo get_metar($schedule->arricao);
    ?>

  3. Hi,

    In what tpl did you change it?

    I don't like the iframes. That's why I use this:

    <?php
    $location = "EGLL";
    
    get_metar($location);
    
    function get_metar($location) {
    $fileName = "http://weather.noaa.gov/pub/data/observations/metar/stations/$location.TXT";
       $metar = '';
       $fileData = @file($fileName) or die('METAR not available');
       if ($fileData != false) {
           list($i, $date) = each($fileData); 
    
           $utc = strtotime(trim($date));
           $time = date("D, F jS Y g:i A",$utc);
    
           while (list($i, $line) = each($fileData)) {
               $metar .= ' ' . trim($line);
               }
           $metar = trim(str_replace('  ', ' ', $metar));
           }
       echo "METAR FOR $location (Issued: $time UTC):<br>$metar";
       }
    ?>

    You can change the location to <?php echo $schedule->depicao;?> or arricao in the schedule briefing or details. It's much better than the default METARs in phpVMS because they don't have to load.

  4. Welcome to Sapiens Air, a small passenger and cargo-express, European virtual airline that aim to provide a simple, straight forward service for it's pilots.

    Finnaly,and after some time to arrange founds for the hosting, where it is the new VA for FSX users (for now) base in Portugal.

    With a website base in phpvms, with full features, pirep system, pilot centre, flight info and others.

    This VA is starting probably some things arent yet at prime, but I hope in a short time it will.

    For now will have to C208 Supercargo Master base in BEJA (LPBJ), and just now I'm repainting a BAE ATP, for cargo operations also.

    Hope some one likes! plus me...

    Join now! Go ahead! Come fly with us. B.Teixeira CEO.

    www.sapiensair.com

    post-5502-0-51357900-1389799683_thumb.png

  5. Hi magicflyer, and thank you very much for your work with this template.

    I took the liberty to use in my recent VA, hope some one like,I just have one question (www.sapiensair.com) I just want to put the latest news and recent pilots on top following quickfacts. I still dont understand where in the code I can make that change.

    Tanks

    bruno

  6. Welcome to Sapiens Air Virtual, a cargo-express, European virtual airline that aim to provide a simple, straight forward service for it's pilots.

    We base our headquarters in Portugal, and base our main operations out of our hub in Beja .

    We are compromised in the fields of safety, fleet, services and professionalism. Whether you fly for us, or help us in managing the airline!

    Sapiens Air Virtual Pilots can access a dynamic pilot centre, use a software to log their flights as well as get special access to other stuff.

    Join now! Go ahead! Come fly with us.

    B.Teixeira

    CEOpost-5502-0-62218400-1378225316_thumb.png

    • Like 1
  7. Hi all,

    I've a problem in my VA future Sapiens Air Virtual (www.aircacifo.com), the currency it apears like this:

    You have 50 hours left until your promotion to First-Officer

    • Your Pilot ID: SAV6002
    • Your Rank: Cadet
    • Total Flights: 0
    • Total Hours: 0
    • Total Transfer Hours: 0
    • Total Money: € 0.00

    Don't know what is wrong, so I send my code under.

    my app.config file code:

    /*

    This is the unit of money. For non-dollars, use :

    Dollars ($), enter "$"

    Euro (€), enter "€"

    Yen (�), enter "¥"

    Pounds (�), enter "£"

    For example, to set EUROS:

    Config::Set('MONEY_UNIT', '€');

    */

    Config::Set('MONEY_UNIT', '€');

    /*

    To change the money format, look at:

    http://us3.php.net/money_format

    However, I do not recommend changing this

    */

    Config::Set('MONEY_FORMAT', '%(#10n');

    my local.config file code:

    /*

    This is the unit of money. For non-dollars, use :

    Dollars ($), enter "$"

    Euro (), enter "€"

    Yen (), enter "¥"

    Pounds (), enter "£"

    For example, to set EUROS:

    Config::Set('MONEY_UNIT', '€');

    */

    Config::Set('MONEY_UNIT', '€');

    tanks

    Bruno

    SAV

×
×
  • Create New...