Jump to content

mark1million

Moderators
  • Posts

    2283
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by mark1million

  1. Is there a quick way to limit this to the month? as you have done with the Toppilot release.
  2. Hi Nabeel, I left it last month because i thought it was a glitch that would sort its self but its done the same this month. On my finances http://www.easyjetva.com/index.php/Finances during the month this tots up the expenses OK but when it comes to the end of the month or a new month this goes blank, yesterday it was running at about 956000 and today (new month) 0. Any ideas? Cheers
  3. Spot on Jeff thats cured it. Cheers
  4. Thanks Jeff, i will up the limit now see if that helps. Nabeel im on a Linode, no restrictions of memory there.
  5. Hi Nabeel, I have just gor this error today when i try to accept pireps, nothing has changed in my install for ages, Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 16 bytes) in /easyjetva.com/public_html/core/classes/ezdb/ezdb_mysql.class.php on line 273 Any ideas would be appreciated, cheers.
  6. Text it displays as is but if you put some html formatting in there that fixes it.
  7. Just the one word.... Excellent!
  8. He left in March 2010, we saught permission a long time before that, back in August 2009. But you are quite right in what you say, so it is worth getting permission before you waste 100's of hours of developing time.
  9. Excellent point of view, but simply get permission from the real world airline you wish to emulate Job done problem sorted. Oh and i know Andrew Harrison which helps...
  10. I notice from today that the months are messed up again
  11. Between the two of you you have both created add on city for us users of phpvms
  12. Hey Jeff, Your just showing off now lol You guys are increadable.
  13. Im running the latest release and all is OK, but your right that is a concern when they release an update.
  14. Forget that should have read more carefully (pilot public profile) sorry.
  15. If you mean the pilots flown routes its already in there, i thong its just a case of copying the code across to the correct tpl.
  16. Some have used the iframe which also works, it deppends on your site size (width) and forum template you are using but most are quite adaptable
  17. you can either widen the iframe or reduce phpvms, i had a site running phpvms with a width of 750px so it is possible to do.
  18. Hi you can get rid of the bars by adding scrolling=no to the iframe Sorry i misunderstood
  19. HI you can define your page size to what ever size you want. just customize the default skin and make your changes, be sure to create another folder to place your changes in and use the admin section to define your new skin. This will explain it better, http://forum.phpvms.net/page/index.html?record=19
  20. I have over 200 ac if you like ill put the code on my site to test for you Good work btw.
  21. Right what you need is to place images of, /images/green-status.gif and /images/red-status.gif In your image folder in the root of your site, you can rename to anything you like myimage.png etc just make sure that the path is correct
  22. take a look here, http://forum.phpvms.net/topic/2564-osses-bule-skin-problem/page__st__20#entry19442
  23. This the code that i use with no problem even with massive routes, its the schedule_results.tpl <div calss="mcright"> <?php if(!$allroutes) { echo '<p align="center">No routes have been found!</p>'; return; } ?> <table width="700" cellspacing="1" cellpadding="1" border="1"> <thead> <tr> <th>Flight Info</th> <th>Options</th> </tr> </thead> <tbody> <?php foreach($allroutes as $route) { /* Uncomment this code if you want only schedules which are from the last PIREP that pilot filed */ /*if(Auth::LoggedIn()) { $search = array( 'p.pilotid' => Auth::$userinfo->pilotid, 'p.accepted' => PIREP_ACCEPTED ); $reports = PIREPData::findPIREPS($search, 1); // return only one if(is_object($reports)) { # IF the arrival airport doesn't match the departure airport if($reports->arricao != $route->depicao) { continue; } } }*/ /* Skip over a route if it's not for this day of week Left this here, so it can be omitted if your VA doesn't use this. Comment out these two lines if you don't want to. */ /* Check if a 7 is being used for Sunday, since PHP thinks 0 is Sunday */ $route->daysofweek = str_replace('7', '0', $route->daysofweek); if(strpos($route->daysofweek, date('w')) === false) continue; /* END DAY OF WEEK CHECK */ /* This will skip over a schedule if it's been bid on This only runs if the below setting is enabled If you don't want it to skip, then comment out this code below by adding // in front of each line until the END DISABLE SCHEDULE comment below If you do that, and want to show some text when it's been bid on, see the comment below */ if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { continue; } /* END DISABLE SCHEDULE ON BID */ /* Skip any schedules which have aircraft that the pilot is not rated to fly (according to RANK), only skip them if they are logged in. */ if(Config::Get('RESTRICT_AIRCRAFT_RANKS') === true && Auth::LoggedIn()) { /* This means the aircraft rank level is higher than what the pilot's ranklevel, so just do "continue" and move onto the next route in the list */ if($route->aircraftlevel > Auth::$userinfo->ranklevel) { continue; } } /* THIS BEGINS ONE TABLE ROW */ ?> <tr> <td> <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?> <?php echo '('.$route->depicao.' - '.$route->arricao.')'?> </a> <br /> <strong>Departure: </strong><?php echo $route->deptime;?> <strong>Arrival: </strong><?php echo $route->arrtime;?><br /> <strong>Equipment: </strong><?php echo $route->aircraft; ?> (<?php echo $route->registration;?>) <strong>Distance: </strong><?php echo $route->distance . Config::Get('UNITS');?> <br /> <strong>Days Flown: </strong><?php echo Util::GetDaysCompact($route->daysofweek); ?><br /> <?php echo ($route->route=='') ? '' : '<strong>Route: </strong>'.$route->route.'<br />' ?> <?php echo ($route->notes=='') ? '' : '<strong>Notes: </strong>'.html_entity_decode($route->notes).'<br />' ?> <?php # Note: this will only show if the above code to # skip the schedule is commented out if($route->bidid != 0) { echo 'This route has been bid on'; } ?> </td> <td nowrap> <a href="<?php echo url('/schedules/details/'.$route->id);?>">View Details</a><br /> <a href="<?php echo url('/schedules/brief/'.$route->id);?>">Pilot Brief</a><br /> <?php # Don't allow overlapping bids and a bid exists if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo actionurl('/schedules/addbid');?>">Add to Bid</a> <?php } else { if(Auth::LoggedIn()) { ?> <a id="<?php echo $route->id; ?>" class="addbid" href="<?php echo url('/schedules/addbid');?>">Add to Bid</a> <?php } } ?> </td> </tr> <?php /* END OF ONE TABLE ROW */ } ?> </tbody> </table> <hr> </div> As for the pilots list you will need to modify for your need, <div class="mcright"> <h3><?php echo $title?></h3> <?php if(!$allpilots) { echo 'There are no pilots!</div>'; return; } ?> <table class="sortable" width="700" cellspacing="1" cellpadding="5" border="1"> <thead> <tr> <th width="56px">Pilot ID</th> <th width="150px">Name</th> <th width="80px">Rank</th> <th width="55px">Flights</th> <th width="55px">Hours</th> <th width="100px">Last Flight</th> <th width="55px">Vatsim</th> <th width="55px">Ivao </th> <th width="65px">Active/Inactive</th> </tr> </thead> <tbody> <?php foreach($allpilots as $pilot) { /* To include a custom field, use the following example: <td> <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> </td> For instance, if you added a field called "IVAO Callsign": echo PilotData::GetFieldValue($pilot->pilotid, 'IVAO Callsign'); */ ?> <tr> <td width="1%" nowrap><a href="<?php echo SITE_URL?>/index.php/profile/view/<?php echo $pilot->pilotid?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <div align="left"><img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </div></td> <td><div align="center"><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></div></td> <td><div align="center"><?php echo $pilot->totalflights?></div></td> <td><div align="center"><?php echo $pilot->totalhours?></div></td> <td><div align="center"><?php //$report = PIREPData::GetLastReports($pilot->pilotid, 1); if($pilot->lastpirep == 0) { echo 'No data yet'; } else { $report = PIREPData::GetLastReports($pilot->pilotid, 1); echo date('d.M.Y', strtotime($report->submitdate)); } ?></td> <td><div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'Vatsim ID' ); if( $fieldvalue != '' ) { echo '<a href="http://www.vataware.com/pilot.cfm?cid=' . $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0" alt="Vatsim ID" /></a></a>' ; } else { echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ; } ?> </div></td> <td><div align="center"> <?php $fieldvalue = PilotData :: GetFieldValue ( $pilot -> pilotid , 'IVAO ID' ); if( $fieldvalue != '' ) { echo '<a href="http://www.ivao.aero/members/person/details.asp?ID='. $fieldvalue . '" target="_blank"><img src="/images/charticon.jpg" width="28" height="28" border="0" alt="Ivao ID" /></a>' ; } else { echo '<img src="/images/nonreg.png" width="20" height="18" border="0" alt="Not Listed" /></a>' ; } ?> </div></td> <td><div align="center"><?php If ($pilot->retired == 0) { echo '<img src="/images/green-status.gif" />'; } else { echo '<img src="/images/red-status.gif" />'; } ?></div></td></div></td> <?php } ?> </div> </tbody> </table> <br /> </div> Hope that helps you guys out.
×
×
  • Create New...