It’s very strange. After doing everything you tell me, the problems continue. Delete lines 27-31 and stay the same.
Can you send me a link to download the installation file that you use?
Like the one I have is wrong or damaged
I made a new installation of phpvms, install airports, airplanes and flbook.
The installation of the table fltbook.sql already works perfectly.
The rest remains the same.
Select the A320-01 and it is blocked for the other pilots and neither the route nor the A320-02 plane can be selected since the route is blocked.
If I change this option to “false” in the local.config.php, then it works. But I think it should not be in “false”
If someone places a bid, whether to disable that or not
Config::Set(‘DISABLE_SCHED_ON_BID’, false);
If I change this option to “false” in the local.config.php, then it works. But I think it should not be in “false”.
What does not work is changing the reservation option in the administration panel. It does not matter whether you put Yes or No, you always
It’s very strange. After doing everything you tell me, the problems continue. Delete lines 27-31 and stay the same.
Can you send me a link to download the installation file that you use?
Like the one I have is wrong or damaged
I made a new installation of phpvms, install airports, airplanes and flbook.
The installation of the table fltbook.sql already works perfectly.
The rest remains the same.
Select the A320-01 and it is blocked for the other pilots and neither the route nor the A320-02 plane can be selected since the route is blocked.
If I change this option to “false” in the local.config.php, then it works. But I think it should not be in “false”
If someone places a bid, whether to disable that or not
Config::Set(‘DISABLE_SCHED_ON_BID’, false);
If I change this option to “false” in the local.config.php, then it works. But I think it should not be in “false”.
What does not work is changing the reservation option in the administration panel. It does not matter whether you put Yes or No, you always
Oh right I know what the issue is now. In your first post, I took it as the aircraft itself wasn’t showing up for each schedule (I have made a setting for that in the admin panel) as it was blocked off, but really it was the schedule that was blocked off instead so therefore the aircraft were also blocked off.
Yes the DISABLE_SCHED_ON_BID should be set to false, if it is set to true then the app takes it and means “Yes I want to disable the bid if someone else has got one” but if it is set to false then it means “No I don’t mind if someone else bids on the same schedule”.
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
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();
});
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.
I have tried this, However the page does not stay open to book the aircraft. However I right clicked on the book button and then loaded the link up in a new tab and i can book the flight this way as it comes up with mysite/action.php/Fltbook/confirm?id=2&airline=UXX&aicao=B738 and then i can book it and it shows in my smartcars once booked.
does anyone know what could be causing this, once i click book on the fltbook, it opens to the aircraft page and then greys out. I have test on other skins and it is working fine. I am trying to use with the firecrew3 skin.
does anyone know what could be causing this, once i click book on the fltbook, it opens to the aircraft page and then greys out. I have test on other skins and it is working fine. I am trying to use with the firecrew3 skin.
It’s because something else it triggering the modal. It’s a common error with bootstrap. Contact for more help.
On 11/20/2018 at 10:50 AM, UniteCEO said:
does anyone know what could be causing this, once i click book on the fltbook, it opens to the aircraft page and then greys out. I have test on other skins and it is working fine. I am trying to use with the firecrew3 skin.