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
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
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
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?
<?php $last_location = PIREPData::getLastReports($pilot->pilotid, 1, PIREP_ACCEPTED);
echo $last_location->arricao ;
?>
<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
Look in the code snippets forum, I believe it’s there