AFVA | Mitchell Posted February 3, 2010 Report Share Posted February 3, 2010 [move]phpVMSBooking[/move] ----------------------------------- FEATURES: Flight Search Easy-To-Customize Add To Bid Feature INSTALLATION: 1. Download attached .ZIP 2. Upload booking_results.tpl, booking_form.tpl and booking_confirm.tpl to your core/templates or lib/skins/[sKIN NAME]/ 3. Upload 'Booking' to core/modules 4. Go to www.[yoursitename].[com or whatever]/index.php/booking COMING SOON: Confirmation Page Small Form you can put on home page Enjoy! Mitch phpvms_booking_1_0.zip Quote Link to comment Share on other sites More sharing options...
hjhjhgjgjh Posted February 3, 2010 Report Share Posted February 3, 2010 can you post a screenshot? Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted February 3, 2010 Author Report Share Posted February 3, 2010 Here they are Flight Search: Results: All of this can by easy made to your liking in the .tpls http://vhmrw.site90.com/index.php/booking Quote Link to comment Share on other sites More sharing options...
Thomas Posted February 3, 2010 Report Share Posted February 3, 2010 Brilliant, Thanks for creating. 1 Quote Link to comment Share on other sites More sharing options...
saapilot Posted February 5, 2010 Report Share Posted February 5, 2010 Good day, Many thanks to everyone for developing this ever growing system. One question on the booking system, is it possible to add code that only shows the flights for today in the results page? Many thanks in advance. Mark Quote Link to comment Share on other sites More sharing options...
pouzo Posted February 5, 2010 Report Share Posted February 5, 2010 how cna i put it on the homepage , as i am pointing as PHP include but it does not give out the airport departure or arrival. Please help. I can see the airports and stuff on the index.php/booking but when i put it as an php include , it does not work. Any ideas will be nice 1 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 5, 2010 Administrators Report Share Posted February 5, 2010 Try something like: MainController::Run('booking', 'index'); Good job on the addon! Just a minor issue, at the end of booking.php there is this: ?> With a blank line after the ?> You can take our the ?> (not required). The blank line/space at the end could mess up potentially sending that whitespace out and causing an "headers already sent" error message Quote Link to comment Share on other sites More sharing options...
pouzo Posted February 5, 2010 Report Share Posted February 5, 2010 Lol nabeel , I LOVE YU MWAN , i tried MainController::Run('booking'); but i forgot to add the index and now its working . Weheee. Quote Link to comment Share on other sites More sharing options...
piper338 Posted February 6, 2010 Report Share Posted February 6, 2010 Thanks man! Got it running on my front page of my dev site just gotta style it up and it should be good to go. Thanks again, Chad C. Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted February 7, 2010 Author Report Share Posted February 7, 2010 is it possible to add code that only shows the flights for today in the results page? I can add a feature to choose a day (monday, tuesday, etc.), will post the code here soon.... Quote Link to comment Share on other sites More sharing options...
saapilot Posted February 7, 2010 Report Share Posted February 7, 2010 That would be great, thanks Mitchell. Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted February 13, 2010 Author Report Share Posted February 13, 2010 I am to busy at the moment to test it but... Try this code for day of week: Replace the params stuff in booking.php's search feature. $params = array( 's.depicao' => $this->post->depicao, 's.arricao' => $this->post->arricao, 's.daysofweek' =>$this->post->day, 's.enabled' => 1, ); and add this to booking_form.tpl <select name="day" id="day"> <option value="0">Sunday</option> <option value="1">Monday</option> <option value="2">Tuesday</option> <option value="3">Wednesday</option> <option value="4">Thursday</option> <option value="5">Friday</option> <option value="6">Saturday</option> </select> Quote Link to comment Share on other sites More sharing options...
saapilot Posted February 15, 2010 Report Share Posted February 15, 2010 Hi Mitchell, Many thanks for your time, it works a treat!!!! Mark Quote Link to comment Share on other sites More sharing options...
MaciejO Posted April 1, 2010 Report Share Posted April 1, 2010 Thanks ! I have modified it a bit , and now will try to work on calendar(not really working one , yes i want do that dates will show up but that will read days of week and show it after click search) That's how my one's look Damn was just about to forget about this , Much thanks for SimPilot for help with putting it as sidebar Quote Link to comment Share on other sites More sharing options...
flyalaska Posted April 28, 2010 Report Share Posted April 28, 2010 I have this working inside a lightbox. In the box, the dep/arr only shows dep/app. Doesn't display the airports. Any ideas? You can see here Click on the "Book your Alaska Adventure" banner.(Start Now) I am displaying this way <?php Template::Show('booking_form.tpl'); ?> Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted April 28, 2010 Author Report Share Posted April 28, 2010 I have this working inside a lightbox. In the box, the dep/arr only shows dep/app. Doesn't display the airports. Any ideas? You can see here Click on the "Book your Alaska Adventure" banner.(Start Now) I am displaying this way <?php Template::Show('booking_form.tpl'); ?> Change the code from <?php Template::Show('booking_form.tpl'); ?> To <?php MainController::Run('booking', 'index'); ?> This way it shows the same thing though the airports are also shown. It also makes the search work. Quote Link to comment Share on other sites More sharing options...
flyalaska Posted April 28, 2010 Report Share Posted April 28, 2010 Thank you. That fixed it! Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted May 10, 2010 Report Share Posted May 10, 2010 how can I add this to Top navigation so that it opens a new site like the other Top Navigtion entries? thanks in advance Thomas Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted May 11, 2010 Author Report Share Posted May 11, 2010 how can I add this to Top navigation so that it opens a new site like the other Top Navigtion entries? thanks in advance Thomas Open core_navigation.tpl (should be in your lib/skins/***/ folder or core/templates). Below this code: <li><a href="<?php echo url('/acars'); ?>">Live Map</a></li> Add: <li><a href="<?php echo url('/booking');?>">Book A Flight</a></li> Done! Hope this helped, Mitch Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted May 11, 2010 Report Share Posted May 11, 2010 Open core_navigation.tpl (should be in your lib/skins/***/ folder or core/templates). Below this code: <li><a href="<?php echo url('/acars'); ?>">Live Map</a></li> Add: <li><a href="<?php echo url('/booking');?>">Book A Flight</a></li> Done! Hope this helped, Mitch thanks a lot will add this ASAP this procedere will work with other modules too I guess? BR Thomas Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted May 11, 2010 Author Report Share Posted May 11, 2010 thanks a lot will add this ASAP this procedere will work with other modules too I guess? BR Thomas Yes it should just change the ('/booking') to ('/modulename') modulename = Name of the module (the folder in core/modules) Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted May 22, 2010 Report Share Posted May 22, 2010 how can I make it look right with Obsess Blue Theme? the pic attached shows the way it looks at the moment lot of white space otherwise works great BR Thomas Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted May 23, 2010 Report Share Posted May 23, 2010 how can I make it look right with Obsess Blue Theme? the pic attached shows the way it looks at the moment lot of white space otherwise works great BR Thomas You have to add the mcright div to it to get it to center up and look right. The answer is located here http://forum.phpvms.net/topic/2564-osses-bule-skin-problem/ I have not tried this script, but I know the fix in that other thread will work. That is a skin problem and not a script problem. Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted May 23, 2010 Report Share Posted May 23, 2010 You have to add the mcright div to it to get it to center up and look right. The answer is located here http://forum.phpvms.net/topic/2564-osses-bule-skin-problem/ I have not tried this script, but I know the fix in that other thread will work. That is a skin problem and not a script problem. will try Quote Link to comment Share on other sites More sharing options...
Txmmy83 Posted May 23, 2010 Report Share Posted May 23, 2010 thanks works now BR Thomas Quote Link to comment Share on other sites More sharing options...
Matthew Talbot Posted June 4, 2010 Report Share Posted June 4, 2010 Try something like: MainController::Run('booking', 'index'); Good job on the addon! Just a minor issue, at the end of booking.php there is this: ?> With a blank line after the ?> You can take our the ?> (not required). The blank line/space at the end could mess up potentially sending that whitespace out and causing an "headers already sent" error message Where do I place that code on my VA to get it on my Frontpage, I have managed to add other codes to it, but i cannot find it and I don't think It looks right the code, but it probably is as you know what you are doing, I got my Signature working Many Thanks, Matthew Join Fly Sol - We are all ways recruiting. Quote Link to comment Share on other sites More sharing options...
Jeff Posted June 4, 2010 Report Share Posted June 4, 2010 Where do I place that code on my VA to get it on my Frontpage, I have managed to add other codes to it, but i cannot find it and I don't think It looks right the code, but it probably is as you know what you are doing, I got my Signature working Many Thanks, Matthew Join Fly Sol - We are all ways recruiting. frontpage_main.tpl Quote Link to comment Share on other sites More sharing options...
CrashGordon Posted June 4, 2010 Report Share Posted June 4, 2010 I'm feeling really dumb. It looks nice, but what does it actually do that isn't already being done? Quote Link to comment Share on other sites More sharing options...
AFVA | Mitchell Posted June 4, 2010 Author Report Share Posted June 4, 2010 I'm feeling really dumb. It looks nice, but what does it actually do that isn't already being done? The truth is...it dosn't. It adds a realistic side of things to make the VA website seem more real, also in the future (once im done with WorldACARS and a million other things) i will add all sorts of stuff to enhance it. But pretty much its another way of bidding on flights Quote Link to comment Share on other sites More sharing options...
CrashGordon Posted June 5, 2010 Report Share Posted June 5, 2010 Thanks. At least I know I haven't lost what little remains of my mind. I think I'll add it to my site. I might even kludge together a version for booking cargo flights, as well. 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.