Jump to content

Captthud

Members
  • Posts

    34
  • Joined

  • Last visited

Everything posted by Captthud

  1. It printed this to many times to count pretty much a whole page Warning: Invalid argument supplied for foreach() in /hermes/bosoraweb047/b82/ipg.xxxx/Catch22/phpvms/lib/skins/lance/pilots_list.php on line 32 Warning: Invalid argument supplied for foreach() in /hermes/bosoraweb047/b82/ipg.xxxxxxxxxxxxx/Catch22/phpvms/lib/skins/lance/pilots_list.php on line 32 Warning: Invalid argument supplied for foreach() in /hermes/bosoraweb047/b82/ipg.xxxxxxxxxxxx/Catch22/phpvms/lib/skins/lance/pilots_list.php on line 32 Warning: Invalid argument supplied for foreach() in /hermes/bosoraweb047/b82/ipg.xxxxxxxxxxxx/Catch22/phpvms/lib/skins/lance/pilots_list.php on line 32 Warning: Invalid argument supplied for foreach() in /hermes/bosoraweb047/b82/ipg.xxxxxxxxxxxx/Catch22/phpvms/lib/skins/lance/pilots_list.php on line 32 Warning: Invalid argument supplied for foreach() in /hermes/bosoraweb047/b82/ipg.xxxxxxxxxxxxx/Catch22/phpvms/lib/skins/lance/pilots_list.php on line 32 Warning: Invalid argument supplied for foreach() then it printed the hubs to many times to count pretty much about 5 or 6 pages and inserted pilots into hubs randomly as well as the hubs they are supposed t be in I replaced the code on the page with the code you put up line 32 is line 32 I took this line out of the php file and it did about the same thing just sort of opposite <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
  2. I returned them to default where should I put that code in?
  3. Didn't work Got Parse error: syntax error, unexpected end of file in /hermes/bosoraweb047/b82/ipg.xxxxxxxxxxxx.com/Catch22/phpvms/lib/skins/lance/pilots_list.php on line 66 across he top of the page
  4. <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> <?php if(!$pilot_list) { echo 'There are no pilots!'; return; } ?> <style> .borders{ margin-left: 100px; margin-right:100px; } </style> <div class="borders"> <h3><?php echo $title?></h3> <table class="table"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank</th> <th>Flights</th> <th>Hours</th> </tr> </thead> <tbody> <?php foreach($pilot_list 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'); */ // To skip a retired pilot, uncomment the next line: //if($pilot->retired == 1) { continue; } ?> <tr> <td width="1%" nowrap><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a> </td> <td> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" /> <?php echo $pilot->firstname.' '.$pilot->lastname?> </td> <td><img src="<?php echo $pilot->rankimage?>" alt="<?php echo $pilot->rank;?>" /></td> <td><?php echo $pilot->totalflights?></td> <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> <?php } ?> </tbody> </table> </div> My question here Is When I leave the pilots.tpl default I get only the hubs that have pilots in them There are no pilots here is on the margin and about 4 times across the bottom of the page http://i228.photobuc...zpsurzfhlya.png when I remove the code in the first 8 lines I get all the hubs, but an error code pointing to the line that has the <foreach> argument on it http://i228.photobuc...zps3ezzm4ma.png How do I get the hub list with.....there are no pilots here....in the hubs that have no pilots in them? Thanks Rick
  5. the only foreach referrals in those flies point to ACARS flight results, and pireps Thanks Rick
  6. what file is that code in? Thanks Rick http://www.flyvfrwpr.com/phpvms/index.php
  7. I agree on the text my question is about the logo, I changed it as per the detructions in both the ,tpl and the .php and got a click on me image that had nothing to do with the image I was going to use I used the default image as a template and I use photobucket as a host and so far all the other images are working just fine I also have questions about the pilots page link, and the schedules page link I'm going to try the above solution Thanks Rick http://flyvfrwpr.com/phpvms/index.php
×
×
  • Create New...