Daniel Posted October 26, 2010 Report Posted October 26, 2010 Could some possibly give me the full script for the pilot_list.tpl to look like this. http://www.easyjetva.com/index.php/pilots and of course i will change the images and color and font etc. Just need the Code Thanks, Daniel Sorry about the description "Can anyone Fix it?" Quote
Daniel Posted October 26, 2010 Author Report Posted October 26, 2010 and to add if possible. No Hubs in the roster just. Just remove that from the script if possible. So it is just one list. thank you very much in advance. Quote
Jon Posted October 26, 2010 Report Posted October 26, 2010 This is What I Use. Look Here Just added a few php functions to the orginal code IS that what you want~? If Yes then it's: <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> <th>Active/Inactive</th> <th>VATSIM ID</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> <td> <?php if($userinfo->retired == '1') echo "Retired"; else echo "Active";?></td> <td><?php echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); ?></td> <?php } ?> </tbody> </table> Remember you need to put this into your chosen skins folder so you don't overwrite the original file. Regards, Jon Quote
Daniel Posted October 26, 2010 Author Report Posted October 26, 2010 I need it so that it does not display the hub anyware on the roster. and i can but an image if they fly on Vatsim or Not like a tick and a cross. So it is just one big list. Quote
Jon Posted October 26, 2010 Report Posted October 26, 2010 Oh ok, so you want a tick for poeple who have a vatsim id and a cross or those who don't and then no hubs? Quote
Daniel Posted October 26, 2010 Author Report Posted October 26, 2010 yes. and the Same for IVAO if they fly on it Tick if not Cross thanks Plus what custom field would i have to add? Quote
Moderators mark1million Posted October 26, 2010 Moderators Report Posted October 26, 2010 In the registration you need to add the custom field just go to the admin and add custom field "ivao" and "Vatsim" whatever you call them you can then add this to the pilots list, the code is in here somewhere, sorry im, not at my home pc or i would post the code. Quote
Moderators mark1million Posted October 26, 2010 Moderators Report Posted October 26, 2010 As for modification of the way the list is displayed that is in the code modules pilots and pilots.php Quote
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.