Jump to content

Show routes no matter what day [SOLVED]


Imanol

Recommended Posts

Hello!

Does anyone know how I can set the results page to show all schedules no matter what day it flies?

My results page loyout shows with a tick when the flight is operated and with a cross what days is not operated, so pilots are allowed to see this but when I search an specific flight which is scheduled for mondays, wednesday and friday, for example, it's not shown on tuesdays and thursdays.

Kind regards.

  • Like 1
Link to comment
Share on other sites

I mean if there's a way to activate all the schedules instead of being shown acording to the actual day. For example: Today is thursday, I would like to see flights which are scheduled only for mondays and wednesdat too.

Link to comment
Share on other sites

open schedule_results.tpl and find the following lines:

   /*
    Skip over a route if it's not for this day of week
    Left this here, so it can be omitted if your VA
	 doesn't use this.

    Comment out these two lines if you don't want to.
    */

    /*	  Check if a 7 is being used for Sunday, since PHP
		    thinks 0 is Sunday */
   $route->daysofweek = str_replace('7', '0', $route->daysofweek);

    if(strpos($route->daysofweek, date('w')) === false)
		    continue;

    /* END DAY OF WEEK CHECK */

and comment out this part:

if(strpos($route->daysofweek, date('w')) === false)
		    continue;

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