Jump to content

Recommended Posts

Posted

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

  • Administrators
Posted

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" }
?>

Posted

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!

  • Administrators
Posted

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. B)

  • Like 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...