Jump to content

Routes section showing all airlines.


Kieran

Recommended Posts

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!

Link to comment
Share on other sites

  • Administrators

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)

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

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