Jump to content
Vangelis

Sim Brief for phpvms

Recommended Posts

With the same route, on simbrief's site, I can download to any format, but on the module you created it wont let me download to anything else but pdf. The route: OMAA-WMKK. So it should give me more options then just download to pdf,

Share this post


Link to post
Share on other sites

unfortunatly with that route i am not able to reproduce the porblem in my setup i am able to export to all the avaiable files

untitled.bmp

If something like this occurs again please attach the ofp_id you will find it on the address bar for example

/index.php/SimBrief?ofp_id=1406567438_D73BD240A0

Share this post


Link to post
Share on other sites

Hi Vangeles,

thx for this Addon.

I have the following problem. After I start the process by clicking on the simbrief button and the 100% bar finished, nothing happens. There is still the old briefing and nothing changed.

I use PHP 5.4, is this a problem?

Share this post


Link to post
Share on other sites

First Screen: https://dl.dropboxus...27786/first.jpg

Second Screen: https://dl.dropboxus...7786/second.jpg

When it reaches 100% the litte windows close and nothing happens anymore.

When I start your demo, after the 100% the briefing page had to change to the simbrief briefing page, but not in our Briefing.

When I type the direct URL to the simbrief template into my browser I get this, perhaps this could help:

https://dl.dropboxusercontent.com/u/53727786/direct.jpg

Share this post


Link to post
Share on other sites

Great Module thanks for this ! . A question , is there a way to give the pilot an option to change the aircraft type ( from default in schedule). For example a pop-up window perhaps when one clicks on "Get simbrief" ? which would change the submission to for example...

http://www.simbrief.com/ofp/ofp.loader.api.php?type=A332&orig=LTBA&dest=EGLL

to

http://www.simbrief.com/ofp/ofp.loader.api.php?type=XXX&orig=LTBA&dest=EGLL , XXX one could enter aircraft of choice perhaps ?

Just wondering..thanks in advance.

Deepan

Share this post


Link to post
Share on other sites

Your aircraft type needs to be according to the list bellow

post-271-0-33254800-1416129825_thumb.png

in your example you have in your va an ac with icao code 744 and that is not correct it should be b744

Share this post


Link to post
Share on other sites

Sorry but I have tried for hours double checking everything 3-4 times and I get nothing from pressing the Generate Button .. :(

Followed the readme but nothing appears to be working for me

Added script to layout.tpl, added files modified the files mentioned in the readme,

Got the API Key and added it to the .js file.

If any one has any ideas on how I could trouble shoot this please ?

Share this post


Link to post
Share on other sites

Hi Vangelis one help please

Version simpilot 5.5.1

Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (@) at position 0 (@): Unexpected character' in /homepages/10/d328219951/htdocs/core/templates/SimBrief/SimBrief.php:64 Stack trace: #0 /homepages/10/d328219951/htdocs/core/templates/SimBrief/SimBrief.php(64): DateTime->__construct('@') #1 /homepages/10/d328219951/htdocs/core/classes/TemplateSet.class.php(238): include('/homepages/10/d...') #2 /homepages/10/d328219951/htdocs/core/classes/TemplateSet.class.php(181): TemplateSet->getTemplate('SimBrief/SimBri...', false, true, false) #3 /homepages/10/d328219951/htdocs/core/classes/Template.class.php(82): TemplateSet->showTemplate('SimBrief/SimBri...') #4 /homepages/10/d328219951/htdocs/core/classes/CodonModule.class.php(92): Template::show('SimBrief/SimBri...') #5 /homepages/10/d328219951/htdocs/core/modules/SimBrief/SimBrief.php(12): CodonModule->render('SimBrief/SimBri...') #6 [internal function]: SimBrief->index() #7 /homepages/10/d328219951/htdocs/core/classes/M in /homepages/10/d328219951/htdocs/core/templates/SimBrief/SimBrief.php on line 64

Share this post


Link to post
Share on other sites

$epoch = (string) $info->times[0]->sched_out;

$dt = new DateTime('@'.$epoch); // convert UNIX timestamp to PHP DateTime

echo $dt->format('H:i'); // output = 2012-08-15 00:00:00

Share this post


Link to post
Share on other sites

The problem is in the variable string I pass manually and no longer get the error.

any solution

$epoch = (string) $info->times[0]->sched_out;

$epoch = 1344988800;

$dt = new DateTime("@$epoch");

// $dt = new DateTime('@'.$epoch); // convert UNIX timestamp to PHP DateTime

echo $dt->format('H:i'); // output = 2012-08-15 00:00:00

Share this post


Link to post
Share on other sites

I'm not the best person to ask here as I do not use this module. I can only advise that you make sure that you have all parameters set correctly.

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