ncd200 Posted August 23, 2015 Report Share Posted August 23, 2015 Since this week i have the problem that when i press the generate simbrief i recieve a "404" error. Is the simbrief still working on other users? My webadress is : www.feelairva.com Kindly regards, Rick Winkelman Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 23, 2015 Author Members Report Share Posted August 23, 2015 Somebody changed something if it used to work change this and you should be fine 4.Edit your schedule_briefing.tpl in /core/templates and in line 195 edit the link to corespond to your site Example http://www.yoursitelink/index.php/SimBrief Quote Link to comment Share on other sites More sharing options...
ncd200 Posted August 23, 2015 Report Share Posted August 23, 2015 Thanks, that did the trick. Quote Link to comment Share on other sites More sharing options...
zeke1510 Posted October 12, 2015 Report Share Posted October 12, 2015 Is there a way to have the LIDO come up in LBS and not KG as default? Quote Link to comment Share on other sites More sharing options...
zeke1510 Posted October 13, 2015 Report Share Posted October 13, 2015 Hi all, A follow-up question to the above. It seems the Simbrief is pulling my arrtime as Block time and ignoring my flightime. Anyone can help? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted October 13, 2015 Author Members Report Share Posted October 13, 2015 Is there a way to have the LIDO come up in LBS and not KG as default? Edit schedule_briefing.tpl and at about line 187 add <input type="hidden" name="units" value="lbs"> Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted October 13, 2015 Author Members Report Share Posted October 13, 2015 Hi all, A follow-up question to the above. It seems the Simbrief is pulling my arrtime as Block time and ignoring my flightime. Anyone can help? are you sure you havent changed anything ? can you attach schedule_briefing.tpl ? Quote Link to comment Share on other sites More sharing options...
KenG Posted November 3, 2015 Report Share Posted November 3, 2015 I'd apperciate any help. Running phpVMS 5.5.x on php 5.5.45 using oceans_blue skin. Tried to intergrate, changed .tpl to .php, edited the files per the instructions however when I press the Generate Simbrief button nothing happens. Double checked the layout.php script format was slightly different so I tried changing it to: <script type="text/javascript" src="<?php echo SITE_URL?>/lib/skins/ocean_blue/js/simbrief.apiv1.js"></script> www.flyelite.org Thank you, -Ken Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted November 4, 2015 Author Members Report Share Posted November 4, 2015 you need to place the js file in /lib/js/ folder and change <script type="text/javascript" src="[url="http://www.flyelite.org/phpvms/lib/skins/ocean_blue/js/simbrief.apiv1.js"]http://www.flyelite.org/phpvms/lib/skins/ocean_blue/js/simbrief.apiv1.js[/url]"></script>[font=monospace] to <script type="text/javascript" src="<?php echo fileurl('lib/js/simbrief.apiv1.js');?>"></script> also make sure you have inserted an api key Quote Link to comment Share on other sites More sharing options...
KenG Posted November 4, 2015 Report Share Posted November 4, 2015 Thank you, but did not work. It must be a problem with my host. -Ken Quote Link to comment Share on other sites More sharing options...
yorgosGK Posted November 7, 2015 Report Share Posted November 7, 2015 also make sure you have inserted an api key I have this module implemented and working on my website, great work Baggeli! Nase kala..... However, I would like to implement it on the actual "MyBids" page and not on the brief (before you book the flight). When I move the Generate SimBreif on the BRIEF page, it all works great. However when I move the "generate simbrief" button to the "MyBids" page (along with a whole form around it) It says parameters missing. What do I need to do to be able to move this button on the My Bids page? like here: http://i.prntscr.com/3b4e425d88c642369b77b174f2415ea9.jpeg Currently this button here works great...on the brief page http://i.prntscr.com/edb58e919b7f46efa6d7929d8d03c9dd.jpeg Quote Link to comment Share on other sites More sharing options...
Strider Posted November 8, 2015 Report Share Posted November 8, 2015 If you look at the code it is a form with hidden fields that are filled with details taken from the brief page. Quote Link to comment Share on other sites More sharing options...
Patrick1246 Posted December 8, 2015 Report Share Posted December 8, 2015 good day, my hosting is currently blocked, because it has overloaded the server. when I check the acces loggs, I can see there where many access on a simbrief ofp. anyone have seen this or no a resolution? regards Patrick Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted December 10, 2015 Author Members Report Share Posted December 10, 2015 To be honest it is the first time i see somwthing like this Quote Link to comment Share on other sites More sharing options...
Patrick1246 Posted December 14, 2015 Report Share Posted December 14, 2015 same now again, I had to block the IP (it was a normal Pilot) before I got blocked again from the hoster, Quote Link to comment Share on other sites More sharing options...
Strider Posted December 16, 2015 Report Share Posted December 16, 2015 The only way is he is either doing on purpose to cause the server to crash, or he is impatient and is clicking on it repeatedly, I have this and I have not had any problems like this with it. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted December 18, 2015 Author Members Report Share Posted December 18, 2015 If you want i can provide some code that blocks the specific user from accessing simbrief Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted February 19, 2016 Report Share Posted February 19, 2016 Hi all, I have recently transferred my VA to a new URL and have managed to kind of get the simbrief module working. I have an API key from simbrief and have changed the reference url in the simbrief.js file, however, when the simbrief ofp is returned the output page is the old Virgin Atlantic url. I can't see where this redirect can be happening from. Any ideas? Could it be to do with simbrief itself and the API key settings at their end? Thanks Quote Link to comment Share on other sites More sharing options...
web541 Posted February 19, 2016 Report Share Posted February 19, 2016 Is your API key on Simbrief's side linked to your site? Did you edit your API key in core/modules/Simbrief/simbrief.apiv1.php In your schedule_briefing.tpl/.php is your site url still the old one? Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted February 19, 2016 Report Share Posted February 19, 2016 Honest answer, I don't know but I assume it is. I emailed Derek from Simbrief originally and he gave me the API key. I then entered the API into the simbrief.apiv1.php file. My schedule_briefing.php doesn't contain any reference to our site url at all. In Baggelis' original post he talks about amending line 195 in schedule_briefing but my file doesn't go up to that. Quote Link to comment Share on other sites More sharing options...
web541 Posted February 19, 2016 Report Share Posted February 19, 2016 Do you have the form like this? <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://www.YourWebSite.com/index.php/SimBrief');" style="font-size:30px" value="Generate Simbrief"> </form> Where http://www.YourWebSite.com/index.php/SimBrief is your site url? Is there a schedule_briefing.php in your skin folder overriding the core/templates one? Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted February 19, 2016 Report Share Posted February 19, 2016 Ah see, I knew if I picked your brains you'd spot my error! Indeed, I didn't realise I had a copy of it in the skins folder. I spent ages going back and forth between my two url files. Now edited it and it's working perfectly. Thanks for your help as always Quote Link to comment Share on other sites More sharing options...
web541 Posted February 19, 2016 Report Share Posted February 19, 2016 No worries Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted February 24, 2016 Report Share Posted February 24, 2016 Ok, for those that are interested, I have created a form on my website so that you can adjust various options before generating the SimBrief OFP. I have written a post about it. Below is the link to the post. http://forum.phpvms.net/topic/23385-simbrief-form-to-tailor-ofp-result/ I use it in conjunction with Vangelis' module and it works perfectly. In essence it utilises the hidden form elements to allow tailoring of the resulting OFP. I have put the files on Github. I've not used Github before so I'm not sure if I've uploaded them correctly. Any problems, message me. Thanks Vangelis, keep up the great work Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted February 26, 2016 Report Share Posted February 26, 2016 Once you've emailed Derek at SimBrief you should receive an email from him. Might take a day or so. Alternatively, sign up on his forum and there is a section to apply for the API key. http://www.simbrief.com then go to help. Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted February 29, 2016 Author Members Report Share Posted February 29, 2016 Can you please open a new topic for that ? As it isn't a simbrief issue thanks Quote Link to comment Share on other sites More sharing options...
TennShadow Posted February 29, 2016 Report Share Posted February 29, 2016 Can you please open a new topic for that ? As it isn't a simbrief issue thanks I've moved those posts to a new thread. http://forum.phpvms.net/topic/23404-skin-question/ Thanks! Quote Link to comment Share on other sites More sharing options...
ahughes3 Posted March 4, 2016 Report Share Posted March 4, 2016 The airac supplied in the free simbrief account will be an out of date one. That is probably why it will give you a route that is different to what you want. You either need to buy and navigraph subscription to get the latest airac or, if you go to the simbrief website itself, you can use their dispatch centre and enter the route you want. It may throw errors though if waypoints are out of date. Quote Link to comment Share on other sites More sharing options...
Patrick1246 Posted April 8, 2016 Report Share Posted April 8, 2016 is it possible to make it https compatible? If I click on generate, nothing happens, it works without https. Quote Link to comment Share on other sites More sharing options...
web541 Posted April 8, 2016 Report Share Posted April 8, 2016 It works for me with https, check your site url in lib/js/simbrief.apiv1.js core/templates/schedule_briefing.tpl/.php or lib/skins/YOURSKIN/schedule_briefing.tpl/.php Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.