CEO North Air Posted February 22, 2010 Report Share Posted February 22, 2010 Hi folks, just another question, how to use multiple airlines? I planned to create some different tours, like a European Tour or a World Tour, and I want to limit the flights just for these airlines. So all European-Tour-Flights will be just shown to pilots who are flying for the European-Tour-Airline. The "normal" Airline is called "North Air", so regular all pilots flying for this one, but some pilots will be invented for touring-flights. Hopefully you´ll understand what I´m requesting? Best regards from Germany! Tobi CEO North Air Virtual Airline www.northairva.bplaced.net Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 22, 2010 Administrators Report Share Posted February 22, 2010 In schedule_results.tpl you will have to use an if command to display only the flights that match. Maybe somethng like <?php if($route->code == $userinfo->code) { "show the route" } ?> Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 22, 2010 Administrators Report Share Posted February 22, 2010 If you do a search, a few days ago I posted some code to do that and where to place it in the schedule_results.tpl template Quote Link to comment Share on other sites More sharing options...
CEO North Air Posted February 25, 2010 Author Report Share Posted February 25, 2010 Hi, thanks a lot for your messages and help! Well, Nabeel unfortunately I don´t find any results when searching for your entry. Could you please give a me link or a quote? Once again thanks a lot and you´re doing a great job! Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 25, 2010 Administrators Report Share Posted February 25, 2010 In the default schedule_results.tpl file find lines 73 & 74 -> /* THIS BEGINS ONE TABLE ROW */ ?> Make a new blank line between the rows and insert -> if(Auth::LoggedIn()) { if($route->code <> Auth::$userinfo->code) { continue; } } This will only show the routes for the same airline that the logged in user is a member of but still show all the routes for someone who is not logged in and just browsing the schedules. Hope this helps. 1 Quote Link to comment Share on other sites More sharing options...
CEO North Air Posted February 25, 2010 Author Report Share Posted February 25, 2010 Hi, THANK YOU SO MUCH! It wokrs perfectly! Thanks a lot! Last question: When I changed the airline, will the flightours counted to the sum I still flown at my head-airline? 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.