FltbookSystem issue

hey folks!

im working rnw on the new Virtual Airline System for FSCloud.

I want to build in web541 Version of his FLTbook System. I moved al the files created the all entries. Page is working but when i try to book a flight the window where you can chose the plane pops up but always close immediately. I didn’t changed the code or styled anything..

Im using the php branch ( https://github.com/web541/FltbookSystem/tree/php ) and phpvms 5.5.2

Hope you can help!

ps: is this fltbooking system working with smartCARS ?

I would ask this directly from the developer for support and FBS doesn’t have anything to do with your ACAR software unless it uses FBS for booking the flight.

PS: There might be a chance your browser’s blocking popups or you have some kind of a popup blocker add-on installed.

Ok i will check that! thanks for your respond!

I believe you’re trying to say that the pop-up window (modal) doesn’t stay open, is this correct?

If so, go into core/templates/Fltbook/search_results.php page and find this at the top

<script type="text/javascript" src="<?php echo SITE_URL;?>/lib/js/bootstrap.js"></script>

And replace it with this (if you already have bootstrap referenced in your master template)

<script type="text/javascript>
 // Clear Modal On Hide
 // ===================
// no cache data loaded to modal popup (by default it's cached)
$('body').on('hidden.bs.modal', '.modal', function (event) {
  $(this).removeData('bs.modal');
});

$(document).on("hidden.bs.modal", function (e) {
 $(e.target).removeData("bs.modal").find(".modal-content").empty();
});
</script>

If that doesn’t work, try removing one of the $(document) or $(‘body’) sections and see if it works.

And that should work (clears the bootstrap modal cache on exit which isn’t done automatically).

And to get it to work with smartCARS, there is a specific line in their code which you have to add (can’t remember off the top of my head) but it was something to do with the bidding of the flights and setting the aircraft to the aircraftid in a foreach or something, might be better to ask the developer of smartCARS.

Beware that some of the code is a bit messy to work with phpVMS (can be re-written, but don’t have time atm) but it does work if done the right way.

Working like charm now! thanks!! im using a modified version of the “CrewCenter” skin so it was that double bootstrap which couses errors..

Do i need to install Parkhos fuel Calculator to get this working too?..

i wrote to TFDI design and they told me so long the bids are added into the “standard” phpvms page (/index.php/schedules/bids) it will also show up in the smartCARS client.

Working like charm now! thanks!! im using a modified version of the “CrewCenter” skin so it was that double bootstrap which couses errors..

Do i need to install Parkhos fuel Calculator to get this working too?..

i wrote to TFDI design and they told me so long the bids are added into the “standard” phpvms page (/index.php/schedules/bids) it will also show up in the smartCARS client.

np

In regards to the fuel calculator, that is not needed to operate this module due to the “wacky” code going one, but if you want something more decent, then you could merge the two.

If thats what TFDI said, then you should be fine, as said before, can’t remember the change (if any) I had to make.

The module is working fine but cant handle a big database.. i had to remove it couse of 505 erorrs or dealing with loading times over 1min.. Im now using a modified Schedule Search Module so our pilots can also book flights on our Website.

ps: smartCars Bids are working with WEB541 and Parkhos version!

Hi, I have a problem… The aircraft location doesn’t work as a realschedulelite, how can I fix it?

For example, On SCEL are the same aircraft (registration) as SCSE.

Help!!

16 hours ago, joooseb said:

Hi, I have a problem… The aircraft location doesn’t work as a realschedulelite, how can I fix it?

For example, On SCEL are the same aircraft (registration) as SCSE.

Help!!

Can you explain more about this issue please.

1 hour ago, web541 said:

Can you explain more about this issue please.

Well for example… If I went since SCEL to SCSE with an A319 (CC-AJG), the aircraft (CC-AJG) must be in SCSE, but when I go to book a flight, the aircraft still appear in SCEL and in all flights and aiport of the airline.

Ah, aircraft location is not simulated in this module, however there are modules around which simulate that.

34 minutes ago, web541 said:

Ah, aircraft location is not simulated in this module, however there are modules around which simulate that.

But in that module can I bid by aircraft ragistration or by aircraft type?

Hi all,

Is there any way of being able to change it so it allows you to choose any aircraft from the fleet on any given schedule?

I’ve never tried it before as it is not what the module is designed to do, but I guess a few edits can be made. I don’t have time to do it at the moment (I’ll post when I can), but you’d have to change the schedule_searchform.php file to allow all aircraft to show in the dropdown, make a data.class function to fetch all aircraft types then remove some code in the Fltbook.php file to allow the aircraft to be parsed.

After that’s done, it should work fine.

 

Hello,

I am also using this great module, I just love it. Only one problem, or you cant call it a problem.

The dropdown list items are taking about a minute to load, which will cause the site responds very slowly.

Do you have any idea on how to fix this?

 

Kindly regards,

 

Rick

15 hours ago, ncd200 said:

Hello,

I am also using this great module, I just love it. Only one problem, or you cant call it a problem.

The dropdown list items are taking about a minute to load, which will cause the site responds very slowly.

Do you have any idea on how to fix this?

 

Kindly regards,

 

Rick

Which dropdown lists (all of them)? Also, how many airports and aircraft types (so not every registration, but each type e.g. B738, B744) do you have in your database? I have a feeling it’s loading in way too much information for it to handle, and it may be easier to transform them into text boxes, but just confirm the questions above first.

On 11-9-2017 at 11:20 PM, web541 said:

Which dropdown lists (all of them)? Also, how many airports and aircraft types (so not every registration, but each type e.g. B738, B744) do you have in your database? I have a feeling it’s loading in way too much information for it to handle, and it may be easier to transform them into text boxes, but just confirm the questions above first.

found the problem, it was in my airport list.

As vacentral is down and the system is unable to fetch airports i have installed a list found here.

I am removing many airports from this list now, allready 8000 now.

Now the site loads faster.

 

 

Thanks for the help

Ok another problem.

Also I have now the problem that the popup for aircraft selection dissappears directly.

I have tried to use the options given above but I can’t figure it out.

I know it is a js problem.

Any ideas?

Rick

Go into core/templates/Fltbook/search_results.php page and find this at the top

\<script type="text/javascript" src="\<?php echo SITE\_URL;?\>/lib/js/bootstrap.js"\>\</script\>

And replace it with this (if you already have bootstrap referenced in your master template)

\<script type="text/javascript\> // Clear Modal On Hide // =================== // no cache data loaded to modal popup (by default it's cached) $('body').on('hidden.bs.modal', '.modal', function (event) { $(this).removeData('bs.modal'); }); $(document).on("hidden.bs.modal", function (e) { $(e.target).removeData("bs.modal").find(".modal-content").empty(); }); \</script\>

 

This answer is here in the topic, in the same topic, just go up

Thanks, but as mentioned above, I have allready tried that. when i do that the popup opens as a blank white line. no form below it.

 

Rick