Kieran Posted February 20, 2010 Report Share Posted February 20, 2010 Hello, My website has three airlines integrated into it... KLM, Ryanair and EasyJet. I'm a member of the 'KLM' airline, but I can bid on routes from the other two airlines! They show on the available routes section. How would I stop this? Thanks... Kieran. PS. I can add this as a bug in the tracker if you like! Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 21, 2010 Administrators Report Share Posted February 21, 2010 It's not a bug. The different airlines are just setup for different routes. But it's easy to customize. You can add some code into the template which will only show the bid link for the airline the user is in. schedule_results.tpl if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) to if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0 && Auth::$userinfo->code == $route->code) Quote Link to comment Share on other sites More sharing options...
Kieran Posted February 21, 2010 Author Report Share Posted February 21, 2010 It's not a bug. The different airlines are just setup for different routes. But it's easy to customize. You can add some code into the template which will only show the bid link for the airline the user is in. schedule_results.tpl if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0) to if(Config::Get('DISABLE_SCHED_ON_BID') == true && $route->bidid != 0 && Auth::$userinfo->code == $route->code) Thanks, I worked it out... I was having a look at the 'only show routes that match the users last pirep position'... Uncommented the code, but it still seems to display all of the routes? Quote Link to comment Share on other sites More sharing options...
Kieran Posted February 21, 2010 Author Report Share Posted February 21, 2010 Say If I wanted to add a field to each flight saying whether the flight was regional or not, how would I go about it? How would I access the data from the new field in the For() loop? Also, where can I change the default fuel price? Thanl you very much! Kieran Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted February 21, 2010 Administrators Report Share Posted February 21, 2010 You'd do $route->fieldname Look in the docs, the configs section Quote Link to comment Share on other sites More sharing options...
Kieran Posted February 21, 2010 Author Report Share Posted February 21, 2010 Thanks a lot Nabeel you are a life saver! Just to reiterate my post above: Thanks, I worked it out... I was having a look at the 'only show routes that match the users last pirep position'... Uncommented the code, but it still seems to display all of the routes? 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.