Jump to content

saapilot

Members
  • Posts

    27
  • Joined

  • Last visited

Posts posted by saapilot

  1. Gentlemen,

    My response to an email I received regarding the template design:

    I fully appreciate and respect any copyright for Dave's software, I have also not removed any embedded copyright notices from his addons that he has published on www.phpvms.net. I coded this template from the ground up based on advice and information that Dave had provided on the forums, I am prepared to send you the zip file for this template in evidence thereof. I will happily make minor layout changes to the front page but the presentation thereof will always be similar as everyone using phpvms is using the same code.

    There was no malicious intent here, it was purely a case of coding a template based on Dave's design that was considered practical and effective.

    Just a few pointers to clear things up:

    • Unlike many others here I have provided code, albeit minor in comparasion to some, on this forum for everyones use My link

    • The css for the basic layout was obtained from cssportal

    I honestly don't believe that I have stolen certainly haven't copied and pasted anything from anyone, everyone is using code that has been generously provided by talented programmers to display essentially similar data, with subtle differences in presentation.

    Dave, please accept my humble apologies I will amend the template on my return from a business trip next week.

    Mark

    • Like 2
  2. Good day,

    Would just like some feedback from other users to see if I could have more effective flight schedules. Currently I use real world schedules where the same route (flight number) is flown by different aircraft over the period of a week. I have appended A,B,C,D,E,F,G to the flight number to represent the day of the week, the flight numbers thus appear as 230A, 230B, 230C, etc. The schedules don't import without a unique flight number even though the aircraft flying the route may differ.

    Are there any other possibilities to having three dimesional flight schedules ie flight number, day of the week and aircarft without using the method described above?

    Other ideas would also be useful.

    Many thanks

    Mark

  3. Hi Nabeel,

    Is there a way to have a folder under the modules folder where we can store all these so called custom folders. By way of example, /core/modules/mymodules/module1/module1.php and so on. I get an error when I try and do it like this, something along the lines of module not found...

    It would be helpful not to clutter the modules folder with all these custom folders.

    Thanks

    Mark

  4. Extract from config file:

    # VA Central

    Config::Set('VACENTRAL_ENABLED', true);

    Config::Set('VACENTRAL_API_SERVER', 'http://api.phpvms.net');

    Config::Set('VACENTRAL_API_KEY', '7f6775e15d9XXXXXXXXXXc01090a0980');

    Code amended.

    Thanks

    Mark

  5. Good day,

    Just added new airline but it does not show in list of airlines, already have five others there, it is however listed in the database. When trying to import flight schedules for this airline it fails. I am running v930.

    Any help appreciated.

    Mark

  6. The site has been going since December, and I have upgraded every so often to not fall too far behind the beta's.

    I have been using the tpl's that come with the downloads and checking them with winmerge for changes.

    The live acars map is fine, it seems to be with the drawing of the route thats the problem, although viewing the route from the admin section does display without problems. I assume it's the same tpl that generates the route map.

    Mark

  7. Good day,

    When I use IE8 and view a PIREP report the Google map comes up blank, only the heading "Route Map" displays after the ACARS report. If I use FF the map displays perfectly.

    I know the one simple solution "Don't use IE", I would appreciate some help please.

    Using 2.1.915 and only added <div> at the top of the code to center in display area, no other changes.

    Cheers

    Mark

  8. Here's the working code, to go into frontpage_recentbids.tpl

    <div id="mainbox">

    <h3>Flight Departures Board</h3>

    <?php

    if(!$lastbids)

    {

    echo '<p align="center">No flights have currently been booked</p>';

    return;

    }

    ?>

    <table width="100%" class="tablesorter">

    <thead>

    <tr bgcolor="#336699">

    <th height="25" width="15%"><div align="center">Flight Number</div></th>

    <th height="25" width="13%"><div align="center">Depart</div></th>

    <th height="25" width="13%"><div align="center">Arrive</div></th>

    <th height="25" width="20%"><div align="center">Pilot Name</div></th>

    <th height="25" width="15%"><div align="center">Aircraft</th>

    <th height="25" width="12%"><div align="center">Tail No.</div></th>

    <th height="25" width="12%"><div align="center">Flight Time</div></th>

    </tr>

    </thead>

    <tbody>

    <?php

    foreach($lastbids as $lastbid)

    {

    ?>

    <tr bgcolor="#DFF4FF">

    <td height="25" width="15%" align="center"><?php echo $lastbid->code . $lastbid->flightnum; ?></a> </td>

    <td height="25" width="13%" align="center"><span><?php echo $lastbid->depicao; ?></span></td>

    <td height="25" width="13%" align="center"><span><?php echo $lastbid->arricao; ?></span></td>

    <?php

    $params = $lastbid->pilotid;

    $pilot = PilotData::GetPilotData($params);

    $pname = $pilot->firstname;

    $psurname = $pilot->lastname;

    ?>

    <td height="25" width="20%" align="center"><span><?php echo $pname; ?> <?php echo $psurname; ?></span></td>

    <td height="25" width="15%" align="center"><span><?php echo $lastbid->aircraft; ?></span></td>

    <td height="25" width="12%" align="center"><?php echo $lastbid->registration?></td>

    <td height="25" width="12%" align="center"><span><?php echo $lastbid->flighttime; ?> Hours</span></td>

    </tr>

    <?php

    }

    ?>

    </tbody>

    </table>

    <hr>

    </div>

    Add the following to frontpage_main.tpl

    MainController::Run('FrontBids', 'RecentFrontPage', 5);
  9. Good day,

    I'm trying to display current bids, in table format, in the main body of the front page without much luck. The problem is that no data is displayed even though there are bids, there are also no error messages displayed. Any help would be greatly appreciated.

    <div id="mainbox">

    <h3>Flight Departures Board</h3>

    <table width="100%" class="tablesorter">

    <thead>

    <tr bgcolor="#336699">

    <th height="25" width="10%"><div align="center">Flight Number</div></th>

    <th height="25" width="10%"><div align="center">Pilot ID</div></th>

    <th height="25" width="30%"><div align="center">Aircraft Type</div></th>

    <th height="25" width="10%"><div align="center">Tail No.</div></th>

    <th height="25" width="15%"><div align="center">Depart Airport</th>

    <th height="25" width="15%"><div align="center">Arrive Airport</div></th>

    <th height="25" width="10%"><div align="center">Flight Time</div></th>

    </tr>

    </thead>

    <tbody>

    <?php

    if(!$bids)

    {

    echo 'No flights have currently been booked';

    return;

    }

    foreach($bids as $bid);

    {

    ?>

    <tr bgcolor="#DFF4FF">

    <td height="25" width="10%" align="center"><?php echo $bid->code . $bid->flightnum; ?></a> </td>

    <?php

    $params = $bid->pilotid;

    $pilot = PilotData::GetPilotData($params);

    $pname = $pilot->firstname;

    $psurname = $pilot->lastname;

    ?>

    <td height="25" width="10%" align="center"><span><?php echo $pname; ?> <?php echo $psurname; ?></span></td>

    <td height="25" width="30%" align="center"><span><?php echo $bid->aircraft; ?></span></td>

    <td height="25" width="10%" align="center"><?php echo $bid->registration?></td>

    <td height="25" width="15%" align="center"><span><?php echo $bid->depicao; ?></span></td>

    <td height="25" width="15%" align="center"><span><?php echo $bid->arricao; ?></span></td>

    <td height="25" width="10%" align="center"><span><?php echo $bid->flighttime; ?> Hours</span></td>

    </tr>

    <?php

    }

    ?>

    </tbody>

    </table>

    <hr>

    </div>

    Many thanks

    Mark

×
×
  • Create New...