Jump to content
Vangelis

Sim Brief for phpvms

Recommended Posts

topher2880    0

Simbrief wont do anything for me either.. ive looked at many threads here at how people are 'fixing' it, and a lot appear to be silly mistakes. Im sure mine is also, however I can not seem to get it going.

When you head to /index.php/schedules/brief/7334 or whichever schedule, and click on Generate Simbrief, absolutely nothing happens at all.

Ive seen other posts about making sure things are edited, so:

 

simbrief.apiv1.php in core/modules/SimBrief = DONE (api copy/paste)

simbrief.apiv1.js in lib/js = DONE (website address)

schedule_briefing.tpl in /core/templates = DONE

<form id="sbapiform" method="get" action="http://www.simbrief.com/ofp/ofp.loader.api.php" target="SBworker"> = DONE

<script type="text/javascript" src="<?php echo fileurl('lib/js/simbrief.apiv1.js');?>"></script> = DONE (in head of html)

It would be great if someone could give me a hand on this, oh, and changing tpl to php threw up missing tpl file error

thanks in advance


 

 

Share this post


Link to post
Share on other sites
Vangelis    767

what is your website so we can have a look at it ? 

 

nevermind i just remember that i have your website on my pm but for the rest please post your website as it is easyer for us to help you 

Edited by Vangelis
found it

Share this post


Link to post
Share on other sites
topher2880    0

Hi Vangelis,

After that post I made, I went to bed. this morning, drinking my coffee and on a different computer I checked it and its working exactly as it should be.

I wont mention the website address as the edit is working exactly as it should be and dont want to spam. but thanks heaps for all the help you have given me, and everyone else, through these forums.

 

Share this post


Link to post
Share on other sites
ncd200    5

hello,

At my va we are using the Metric system, so all weights in KG.

But everytime we create a flight briefing with simbrief the system is forced to lbs.

Is it possible to force the flightplan generating to kg?

Share this post


Link to post
Share on other sites
HCStrike    2

I cannot find the simbrief section in my schedule_briefing.php on phpVMS 5.5 

I added this code, is it all correct?

<form id="sbapiform">

<table>
<tr>
 <?php $planedata=(OperationsData::getAircraftByReg($schedule->registration)) ;?>
 <td><input type="hidden" name="type" size="5" type="text" placeholder="ZZZZ" value="<?php echo $planedata->icao ;?>"></td>
		 </td>
<tr>
<tr>

 <td><input type="hidden" name="orig" size="5" type="text" placeholder="ZZZZ" maxlength="4" value="<?php echo $schedule->depicao ; ?>"></td>
<tr>
<tr>

 <td><input type="hidden" name="dest" size="5" type="text" placeholder="ZZZZ" maxlength="4" value="<?php echo $schedule->arricao ; ?>"></td>
<tr>
<tr>

 <td><input type="hidden" name="route" placeholder="Enter your route here"></td>
</tr>
<tr>
 <td colspan=2></td>
</tr>
<tr>

 <td><input type="hidden" name="units" size="5" type="text" placeholder="ZZZZ" maxlength="4" value="KGS"></td>
	 </tr>
<tr>

</table>


<br><br>

<input type="hidden" name="airline" value="<?php echo $schedule->code?>">
<br>

<input type="hidden" name="fltnum" value="<?php echo $schedule->flightnum?>">
<?php $today = date("dMy");?>
<input type="hidden" name="date" value="<?php echo $today?>">
<?php $deptimes = explode(":", $schedule->deptime); ?>
<input type="hidden" name="deph" value="<?php echo $deptimes[0]?>">
<input type="hidden" name="depm" value="<?php echo $deptimes[1]?>">
<?php $arrtimes = explode(":", $schedule->arrtime); ?>
<input type="hidden" name="steh" value="<?php echo $arrtimes[0]?>">
<input type="hidden" name="stem" value="<?php echo $arrtimes[1]?>">
<input type="hidden" name="reg" value="<?php echo $schedule->registration?>">

<input type="hidden" name="navlog" value="1">
<input type="hidden" name="selcal" value="GR-FS">
<input type="hidden" name="planformat" value="lido">

<input type="button" onclick="simbriefsubmit('http://fly.multicrew.co.uk/index.php/SimBrief');" style="font-size:30px" value="Generate Simbrief">

</form>

 

Share this post


Link to post
Share on other sites
web541    49

There is no simbrief section in schedule_searchform.php file by default, you will need to install the full module and follow the instructions. Once you've done that, enter your SimBrief API keys in the relevant places and you should be able to get it to work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×