Jump to content
ThomasH

Pilot Roster - Current Location

Recommended Posts

Hello

I would like to get pilot roster at the end of the table not with the pilot him HUB, but current location indicated. I simply do not do it. If somebody can write to me please a code for it?

Thanks

Thomas

Share this post


Link to post
Share on other sites

Hi the code to display the pilots current position in their profile is,

<?php echo $report->arricao;?>

Not sure if it will work in the pilots page, you could try something like,

<?php echo $userinfo->arricao;?>

See if that gives you anything, im sure someone more proficient in code will be along soon :lol:

Share this post


Link to post
Share on other sites

Ok, this is my code in pilots_list.tpl:

39 <center><td><?php echo $userinfo->arricao;?></td></center>

40 </tr>

41 </tbody>

42 </table>

But becom error message in the browser:

Parse error: syntax error, unexpected $end in /kunden/265414_32756/html/phpvms/core/templates/pilots_list.tpl on line 43

hmm, can you help me?

Share this post


Link to post
Share on other sites
<?php $last_location = PIREPData::getLastReports($pilot->pilotid, 1, PIREP_ACCEPTED);
echo $last_location->arricao ;
?>

Share this post


Link to post
Share on other sites

   <center><td><?php $last_location = PIREPData::getLastReports($pilot->pilotid, 1, PIREP_ACCEPTED);
echo $last_location->arricao ; ?>
</td></center>
</tr>
 </tbody>
</table>

And then come:

Parse error: syntax error, unexpected $end in /kunden/265414_32756/html/phpvms/core/templates/pilots_list.tpl  on line 45

Share this post


Link to post
Share on other sites

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...