vatware button on roster question

Use what I posted. Why’s there a quote in front of the PilotData?

Parse error: syntax error, unexpected '<' in /home/globalai/public_html/lib/skins/global/pilots_list.tpl on line 57

I get that error with your code. I know the piece of code causing it, but there is no way of stopping it from occuring.

Cheers

Dan C

<?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="'.SITE_URL.'/lib/skins/global/images/vatsim.gif" alt="Vatsim ID" /></a>';
}
Parse error: syntax error, unexpected '<' in /home/globalai/public_html/lib/skins/global/pilots_list.tpl on line 57

Am getting that error now.

http://globalaircargovirtual.org/download/pilots_list.zip

Cheers

Dan C

You didn’t close the php tag, above that </tr> put ?>

YAY got it working, If anyone wants it pm me, will send you the file.

Cheers

Dan C

Nightfox, don’t get pissed, but those large rank badges really don’t look good, You may want to bring those down to a small size…Other than that, looking good!!

Roger i am gonna come and rip ya a new one…lol jk Yea will resize them.

Cheers

Dan C

Re made them and at a smaller size of 50x30.

Cheers

Dan C

This is what I get:

Parse error: syntax error, unexpected $end in /home/vdefense/public_html/ultrair-virtual.org/lib/skins/biz/pilots_list.tpl on line 60

Post your code, seems like a syntax error (you can use pastebin)

Parse error: syntax error, unexpected $end in /home/vdefense/public_html/ultrair-virtual.org/lib/skins/biz/pilots_list.tpl on line 60

and the page itself:

<div id="pilots">
<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>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'); ?>


	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>
	<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 $pilot->totalhours ?></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"><img src="'.SITE_URL.'/lib/skins/global/images/vatsim.gif" alt="Vatsim ID" /></a>';
}
    ?>
</tr>  
</tbody>
</table>

page can be found here: http://www.ultrair-virtual.org/index.php/pilots

You’re missinga closing }

Add

<?php

}

?>

After that closing </tr> tag

That did it. Thanks! ;D