Jump to content

mark1million

Moderators
  • Posts

    2284
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by mark1million

  1. 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.
  2. With the route problem i had that problem as well but i thing i set the table class and wrap. Ill have a look and get back to you shortly
  3. You have included the script in the loop, Get rid of that javascript boxes because its in the header anyway. See how that goes.
  4. Hi, check your column widths you may need to specify them to keep everything uniform.
  5. Yes this is something i have requested before, like private admin notes regarding the pilot, this is defiantly something worth developing some how especially when you need to add private notes regarding a particular pilot. Dont know how easy it would be to setup but im sure its possible
  6. No worries i figured it out, Thanks Nabeel for your help.
  7. OK so i had to put the actual file location not the url which is now working but im getting the complete data in one line, is there a way i can put in a line break?
  8. Tried that im getting no output what so ever, Damn..
  9. OK so the plot thickens, thats got rid of the error but nothing is displayed for some reason.
  10. I get the following error, Fatal error: Class 'PilotData' not found in /srv/www/easyjetva.com/public_html/core/vr.php on line 2 what im afer is that fied data in a plain text file for vroute to automatically parse my roster with vatsim id's and send invitations to join the group.
  11. Hi Nabeel, I have created a custom field when registering "vatsimid" i want to pull all that field values in to a plain text web page, i thought the values would have been in the pilots table but the're not, i have had a poke about but any assistance would be appreciated. This is what i want, <?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?> Just a plain text file with all the CID's
  12. Hi Dave, I have a module working where it will register a user when they register through vms, the only thing that i need to do it to add some more code to register them in the registered members user group and its fully functioning. Basically when a user registers on vms it takes the variables and inserts it in to the forum db i have to manually activate them as they are registered as inactive which suites me fine and add them to the group, i was meant to look at this but never got the time to do so.
  13. I would reupload the files my friend your database is OK but the files are giving the following errors, Checking PHP version [OK] PHP version is 5.2.x Checking connectivity... [OK] Can contact outside servers Checking for SimpleXML module... [OK] SimpleXML module exists! Checking file hashes for corrupt or mismatched files [Error] ../install/navdata.sql doesn't exist [Checksum failed] /core/common/PIREPData.class.php did not match, possibly corrupt or out of date [Error] ../core/common/jqgrid.class.php doesn't exist [Checksum failed] /core/common/StatsData.class.php did not match, possibly corrupt or out of date [Checksum failed] /core/common/SchedulesData.class.php did not match, possibly corrupt or out of date [Error] ../core/common/NavData.class.php doesn't exist [Checksum failed] /core/common/FuelData.class.php did not match, possibly corrupt or out of date [Checksum failed] /core/common/DownloadData.class.php did not match, possibly corrupt or out of date [Checksum failed] /core/common/OperationsData.class.php did not match, possibly corrupt or out of date [Error] ../core/common/OFCharts.class.php doesn't exist [Error] ../core/templates/profile_badge.tpl doesn't exist [Checksum failed] /core/templates/schedule_results.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/finance_summarysheet.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/contact_form.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/core_htmlhead.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/finance_header.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/core_navigation.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/finance_balancesheet.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/pirep_new.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/pilots_list.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/pilot_public_profile.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/schedule_details.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/codon.config.php did not match, possibly corrupt or out of date [Checksum failed] /core/classes/Vars.class.php did not match, possibly corrupt or out of date [Error] ../core/classes/CodonCache.class.php doesn't exist [Checksum failed] /core/classes/TemplateSet.class.php did not match, possibly corrupt or out of date [Checksum failed] /core/classes/CodonRewrite.class.php did not match, possibly corrupt or out of date [Checksum failed] /core/classes/CodonModule.class.php did not match, possibly corrupt or out of date [Error] ../core/classes/ezdb/ezdb_base.class.php doesn't exist [Error] ../core/classes/ezdb/ezdb_mysql.class.php doesn't exist [Error] ../core/hooks/client/post-load.php doesn't exist [Error] ../core/hooks/system/postmoduleload.php.1 doesn't exist [Checksum failed] /core/modules/Schedules/Schedules.php did not match, possibly corrupt or out of date [Checksum failed] /core/modules/XML/XML.php did not match, possibly corrupt or out of date [Checksum failed] /core/modules/Profile/Profile.php did not match, possibly corrupt or out of date [Checksum failed] /core/modules/Downloads/Downloads.php did not match, possibly corrupt or out of date [Error] ../core/modules/kACARS_Free/kACARS_Free.php doesn't exist [Checksum failed] /core/modules/ACARS/fspax.php did not match, possibly corrupt or out of date [Checksum failed] /core/modules/ACARS/xacars.php did not match, possibly corrupt or out of date [Checksum failed] /core/modules/PIREPS/PIREPS.php did not match, possibly corrupt or out of date [Checksum failed] /core/modules/Pages/Pages.php did not match, possibly corrupt or out of date [Checksum failed] /core/modules/RouteMap/RouteMap.php did not match, possibly corrupt or out of date [Error] ../admin/maintenance.php doesn't exist [Checksum failed] /admin/templates/sidebar_dashboard.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/ops_airlineslist.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/export_form.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/pilots_detailtabs.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/groups_grouplist.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/downloads_overview.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/finance_expenseform.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/finance_header.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/ops_airlineform.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/ops_aircraftlist.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/settings_addcustomfield.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/ops_schedules.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/vacentral_index.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/pilots_viewallbids.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/ops_scheduleform.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/core_navigation.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/finance_balancesheet.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/pilots_awards.tpl did not match, possibly corrupt or out of date [Error] ../admin/templates/maintenance_changepilotid.tpl doesn't exist [Checksum failed] /admin/templates/reports_aircraft.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/sidebar_ranks.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/finance_expenselist.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/settings_mainform.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/downloads_downloadform.tpl did not match, possibly corrupt or out of date [Checksum failed] /admin/lib/phpvmsadmin.js did not match, possibly corrupt or out of date [Checksum failed] /admin/modules/Finance/Finance.php did not match, possibly corrupt or out of date [Checksum failed] /admin/modules/PilotAdmin/PilotAdmin.php did not match, possibly corrupt or out of date [Checksum failed] /admin/modules/Downloads/Downloads.php did not match, possibly corrupt or out of date [Checksum failed] /admin/modules/SiteCMS/SiteCMS.php did not match, possibly corrupt or out of date [Checksum failed] /admin/modules/Import/Import.php did not match, possibly corrupt or out of date [Checksum failed] /admin/modules/Maintenance/Maintenance.php did not match, possibly corrupt or out of date [Checksum failed] /admin/modules/PIREPAdmin/PIREPAdmin.php did not match, possibly corrupt or out of date PHP Error Message Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/lib/js/jquery.form.js) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a3247520/public_html/install/checkinstall.php on line 140 Free Web Hosting [Error] /lib/js/jquery.form.js doesn't exist -- Checked 182 files, found 76 errors
  14. Hi glad its working for you The file for that is core_navigation.tpl thats in your core/templates folder, just make a copy and copy to your skins folder, make the changes in there.
  15. Hi you can manually add the coordinates, just google the airport that should give you them. 39°41′47″N 20°49′21″E http://en.wikipedia.org/wiki/Ioannina_National_Airport I was bored Hope that helps.
  16. You can define a new group with the appropriate permissions then add them to that group.
  17. Hi in my local config i have the following, # Google Map Options Config::Set('MAP_WIDTH', '700px'); Config::Set('MAP_HEIGHT', '600px'); In my flown_routes_map.tpl i have defined a size, <div class="mapcenter" align="center"> <div id="routemap" style="width: 600px; height: 600px;"></div> Maybe that will help you. Or i have just found this bit you can remove the <?php echo Config::Get('MAP_WIDTH');?> and <?php echo Config::Get('MAP_HEIGHT')?> to define your own. <div class="mapcenter" align="center"> <div id="routemap" style="width:<?php echo Config::Get('MAP_WIDTH');?>; height: <?php echo Config::Get('MAP_HEIGHT')?>"></div> </div>
  18. HI, I have just been looking at your site and personally seaking i think it would be easier to filly move over to vms and skin your site in the way you currently have with out too much problems. I dont know what you have in the back end but phpvms is very friendly to customize if you have some basic css knowledge.
  19. define the size in the routemap.tpl also make sure its enclosed in the content div tags mcright
  20. Hi what is the registration for can you not use what vms creates when piotos register?
  21. core folder
  22. Look your problem is simple, in every page you have or tpl you simply have to place the content between the correct class of divs..... in your case its <div class="mcright"> </div> You need to choose your words a bit more carefully no one goes in to your site apart from you and if your security is weak then expect your site not to be up for long.
  23. Its the pilots_list.tpl
  24. At the bottom of your page where the closing divs are just add some more, </div> It may take two or three to do the job just experiment
  25. Try removing that script above the <h3> i think thats in the header.tpl anyway, back up 1st though.
×
×
  • Create New...