Imanol Posted May 28, 2013 Report Share Posted May 28, 2013 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. 1 Quote Link to comment Share on other sites More sharing options...
Imanol Posted May 30, 2013 Author Report Share Posted May 30, 2013 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. Quote Link to comment Share on other sites More sharing options...
mseiwald Posted May 30, 2013 Report Share Posted May 30, 2013 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; Quote Link to comment Share on other sites More sharing options...
Imanol Posted May 30, 2013 Author Report Share Posted May 30, 2013 It works perfectly! Thank you! 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.