Administrators Nabeel Posted September 4, 2009 Administrators Report Share Posted September 4, 2009 Post your code, seems like a syntax error (you can use pastebin) Quote Link to comment Share on other sites More sharing options...
BBuchanan Posted September 4, 2009 Report Share Posted September 4, 2009 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 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 5, 2009 Administrators Report Share Posted September 5, 2009 You're missinga closing } Add <?php } ?> After that closing </tr> tag Quote Link to comment Share on other sites More sharing options...
BBuchanan Posted September 7, 2009 Report Share Posted September 7, 2009 That did it. Thanks! ;D 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.