Blu-Express VA Posted February 6, 2011 Report Share Posted February 6, 2011 Hi, How to personalized roster http://www.pashairvirtual.co.uk/index.php/Listing and column in the roster for IVAO instead of VATSIM? Thanks in Advanced! Quote Link to comment Share on other sites More sharing options...
Daniel Posted February 6, 2011 Report Share Posted February 6, 2011 here you go <th>IVAO</th> <th>Vatsim</th> <td><?php $fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'IVAO ID'); if($fieldvalue != '') { echo '<center><img src="'.SITE_URL.'/images/yesvat.png" alt="IVAO ID" /></center></a>'; } else { echo '<center><img src="/images/novat.png" width="20" height="18" border="0"/></center></a>'; } ?> </td> <td><?php $fieldvalue = PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); if($fieldvalue != '') { echo '<a href="http://www.vataware.com/pilot.cfm?cid='.$fieldvalue.'" target="_blank"><center><img src="'.SITE_URL.'/images/yesvat.png" alt="Vatsim ID" /></center></a>'; } else { echo '<center><img src="/images/novat.png" width="20" height="18" border="0"/></center></a>'; } ?> <?php } ?></td> Thanks to Mark http://forum.phpvms.net/topic/4098-vatsim-codingagain/ Quote Link to comment Share on other sites More sharing options...
Blu-Express VA Posted February 6, 2011 Author Report Share Posted February 6, 2011 What is the file? Quote Link to comment Share on other sites More sharing options...
Blu-Express VA Posted February 6, 2011 Author Report Share Posted February 6, 2011 It's my file Pilot_list.tpl <h3><?php echo $title?></h3> <?php if(!$allpilots) { echo 'There are no pilots!'; return; } ?> <table id="tabledlist" class="tablesorter"> <thead> <tr> <th>Pilot ID</th> <th>Name</th> <th>Rank</th> <th>Flights</th> <th>Hours</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'); */ // 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> Thanks in Advanced Quote Link to comment Share on other sites More sharing options...
Blu-Express VA Posted February 6, 2011 Author Report Share Posted February 6, 2011 What should I add? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.