Jump to content

Multiple Airlines - how to limit flights?


CEO North Air

Recommended Posts

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

Link to comment
Share on other sites

  • Administrators

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
Link to comment
Share on other sites

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