Briefing

I’ve a questions,

how can I do

  1. that’s in the Briefing shows the firstname and lastname pilot??

  2. tahat’s the time-not a single number 1:20 and the conclusions separately at first hours : minutes example: (<?php echo “{$schedule->deptimehours}”; ?>:<?php echo “{$schedule->deptimeseconds}”; ?>)

I’m a bit lost…

I need to at VATSIM plan was already full, here is my link:

<a class="post" href="http://www.vatsim.net/fp/?2=<?php echo $schedule->flightnum; ?>&3=<?php echo "{$schedule->aircraft}"; ?>&4=none&5=<?php echo "$schedule->depicao"; ?>&6=<?php echo "{$schedule->deptime}"; ?>&7=<?php echo "{$schedule->flightlevel}"; ?>&8=<?php if($schedule->route == ''){echo '<br />';}else{echo strtoupper($schedule->route);}?>&9=<?php echo "$schedule->arricao"; ?>&10a=HOURTIME&10b=HOURMINUTES&11=HERELINK& target="_blank">VATSIM</a>

To get the hour/minute you can do:

<?php
$time = explode(':', $schedule->deptime);
$hour = $time[0];
$minute = $time[1];

Something like that should work

To get the hour/minute you can do:

<?php $time = explode(':', $schedule->deptime); $hour = $time[0]; $minute = $time[1]; Something like that should work

Thanks Nabeel for your Replay

I’ve add your code into schedules_briefing.tpl

but that isn’t work

<?php
$time = explode(':', $schedule->deptime);
$hour = $time[0];
$minute = $time[1];
?>

Can you paste the template into pastebin.org and put the link here? Thanks

Can you paste the template into pastebin.org and put the link here? Thanks

I’ve lost these problem! use this code!!!

<?php
$time = explode(":", $schedule->deptime);
echo $time[0];
echo $time[1];
?>
1 Like

I’ve lost all the problems!!

Thank you Nabeel!