Jump to content

CFVA

Members
  • Posts

    107
  • Joined

  • Last visited

Posts posted by CFVA

  1. Want to add the aircraft being flown in the Live ACARS map page.

    ACARS.PHP says variable     <%=flight.aircraftname%>            Gives the full name

    So I added that in ACARS.PHP:

    So I have

        <tr>
            <td><b>Pilot</b></td>
            <td><b>Flight Number</b></td>
            <td><b>Departure</b></td>
            <td><b>Arrival</b></td>
            <td><b>Aircraft</b></td>
            <td><b>Status</b></td>
            <td><b>Altitude</b></td>
            <td><b>Speed</b></td>
            <td><b>Distance/Time Remain</b></td>
        </tr>
    for the table &

    <script type="text/html" id="acars_map_row">
    <tr class="<%=flight.trclass%>">
    <td><a href="<?php echo url('/profile/view');?>/<%=flight.pilotid%>"><%=flight.pilotid%> - <%=flight.pilotname%></a></td>
    <td><?php echo "CF"?><%=flight.flightnum%></td>
    <td><%=flight.depicao%></td>
    <td><%=flight.arricao%></td>
    <td><<%=flight.aircraftname%></td>
    <td><%=flight.phasedetail%></td>
    <td><%=flight.alt%></td>
    <td><%=flight.gs%></td>
    <td><%=flight.distremaining%> <?php echo Config::Get('UNITS');?> / <%=flight.timeremaining%></td>
    </tr>

    acars1.JPG

    All other variables show except aircraft name!

    Using kAcars 1.0.1.5 & PHPVMS 5.5.2

    Thanks in advance

     

  2. I use Ron’s Editor which is great but won’t allow adding header. 

    I'm asking why it doesn’t do it like it does with the aircraft file!

    i’m not looking for work around just what needs fixing for it to work

     

     

    • Sad 1
  3. I've searched through ALL files for the words "Bid added" that appear after selecting a flight, but can't find it! I want to change it to "Flight Booked". 

    I've found the text "Add bid" and changed that to "Book Flight" but can't see where the "Bid added" text comes from.

     

    Thanks

     

  4. 10 hours ago, servetas said:

    Follow the steps below:

    1) Open the core/common/FrontSchedulesData.class.php and where "public function" replace with "public static function".

    2) Open the core/modules/FrontSchedules/FrontSchedules.php and where ".tpl" replace with ".php".

    3) Open the core/templates directory and change the name of the "airport_search.tpl" file to "airport_search.php".

    They should work correctly afterwards.

    Done all that, but no routes show after the search!

  5. 18 hours ago, servetas said:

    I do not believe that this is the issue but can you try the following solution? Open your admin/modules/Import/Import.php, on lines 305-306 you should have something like this:

    
    $line = "{$s->code},{$s->flightnum},{$s->depicao},{$s->arricao},"."{$s->route},{$s->registration},{$s->flightlevel},{$s->distance}," .
                    "{$s->deptime},{$s->arrtime},{$s->flighttime},{$s->notes},"."{$s->price},{$s->flighttype},{$s->daysofweek},{$s->enabled},{$s->week1},{$s->week2},{$s->week3},{$s->week4}";

    As you can see, I have remove all the spaces between all the elements and especially the {$s->daysofweek}. Could you please attach your Import.php file?

    The most practical way is running a mysql command through phpMyAdmin as soon as you import your schedules that will automatically select all the days of the week.

    
    UPDATE phpvms_schedules SET daysofweek='0123456', week1='0123456', week2='0123456', week3='0123456', week4='0123456' WHERE 1;

    Just do not forget to replace "phpvms_" with your own database tables prefix if you are using a different one.

    That seems to have solved it, by replacing the line of code in import.php. There were other columns that had spaces added everytime on export but all seems ok now.

    Thanks for the help

  6. When exporting the schedule from the Admin Centre option, it is exporting the daysofweek column with a preceding SPACE i.e. " 0123456" not "0123456". This gives the problem that when imported back SATURDAY is always missing from the schedule, as it imports " 012345"

    Any ideas please as it is really annoying have to edit the whole column everytime

×
×
  • Create New...