Jump to content

Recommended Posts

Posted

Hey all,

Here's what's going on. I'm trying to display my Vatsim ID. It shows up under /profile/view/1 but won't show under /profile or /pilots. Does anyone know how to view the template for /profile/view/1 ?

Chris

  • Administrators
Posted

As long as you have placed your modified template files in your custom skins folder they will not be overwritten. If you have been modifying the files with in the core/templates folder (which you should not be doing) they will get overwritten in an update. The system looks for the needed template in the chosen skin, then if it is not found it will go get the generic one out of the core/templates folder.

Posted

Ok...good. That's what I've been doing (pilots_list under skin). Everything else shows up fine except for the vatsim id. Here is a the code from the page.

<h3><?php echo $title?></h3>

<?php
if(!$allpilots)
{
	echo 'There are no pilots!';
	return;
}
?>
<table width="945" border="1" class="tablesorter" id="tabledlist">
<thead>
<tr>
<th>Pilot ID</th>
<th width="25%">Name</th>
<th width="19%">Rank</th>
<th width="15%">Flights</th>
<th width="17%">Hours</th>
   <th width="24%">Vatsim ID</th>
</tr>
</thead>
<tbody>
<?php
foreach($allpilots as $pilot)
{
/* 
	To include a custom field, use the following example:



	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="7%" nowrap><div align="center"><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>">
  <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></a></div></td>
<td>
	<div align="center"><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 Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></div></td>
<td><div align="center"><?php echo PilotData::GetFieldValue($pilot->pilotid, 'Vatsim_ID');?></div></td>
   <?php
}
?>
</tbody>
</table>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...