tdohrer Posted December 20, 2015 Report Share Posted December 20, 2015 Is there way to get rid of the depature and arrival time in the results from a flight search? BIKF ( 00:00:00 ) <--------- This here Keflavik International Airport Quote Link to comment Share on other sites More sharing options...
in2tech Posted December 21, 2015 Report Share Posted December 21, 2015 If you are using the default schedule_results.tpl file than just comment out the line on row 102 roughly. <strong>Departure: </strong><?php echo $route->deptime;?> <strong>Arrival: </strong><?php echo $route->arrtime;?><br /> That should work! Quote Link to comment Share on other sites More sharing options...
tdohrer Posted December 21, 2015 Author Report Share Posted December 21, 2015 Hmmmmm i tried that in that file and it was in the core/common/templates and it didnt not work. Is that the right location? and for me it was line 25. Quote Link to comment Share on other sites More sharing options...
in2tech Posted December 21, 2015 Report Share Posted December 21, 2015 Worked perfect for me using the default schedule_results.tpl file that comes with phpVMS. Make sure it is the default schedule template you are using and not another one. Also, make sure it is the actual code and not the headings your are commenting out. Use <!-- at the beginning and --> at the end to comment the line out! Mine is on line 102 roughly! It should not be near line 25 as far as I can see, if you are using the original template file that comes with phpVMS Should work fine. Add a copy of the default schedule_results.tpl into your skin folder so you are not messing with the original template file! Look for this area. See that I have it commented out? /* THIS BEGINS ONE TABLE ROW */ ?> <tr> <td> <a href="<?php echo url('/schedules/details/'.$route->id);?>"><?php echo $route->code . $route->flightnum?> <?php echo '('.$route->depicao.' - '.$route->arricao.')'?> </a> <br /> <!--<strong>Departure: </strong><?php echo $route->deptime;?> <strong>Arrival: </strong><?php echo $route->arrtime;?><br />--> <strong>Equipment: </strong><?php echo $route->aircraft; ?> (<?php echo $route->registration;?>) <strong>Distance: </strong><?php echo $route->distance . Config::Get('UNITS');?> <br /> <strong>Days Flown: </strong><?php echo Util::GetDaysCompact($route->daysofweek); ?><br /> <?php echo ($route->route=='') ? '' : '<strong>Route: </strong>'.$route->route.'<br />' ?> <?php echo ($route->notes=='') ? '' : '<strong>Notes: </strong>'.html_entity_decode($route->notes).'<br />' ?> <?php # Note: this will only show if the above code to # skip the schedule is commented out if($route->bidid != 0) { echo 'This route has been bid on'; } ?> </td> Quote Link to comment Share on other sites More sharing options...
tdohrer Posted December 21, 2015 Author Report Share Posted December 21, 2015 Yeah, and i did it again just like you showed and put in the skin folder. So something else is controlling my results page. I searched for that file only found the one location. I am using a route search add on, may have to check with the developer and see if that controls it and how to adjust it. Quote Link to comment Share on other sites More sharing options...
Moderators Parkho Posted December 26, 2015 Moderators Report Share Posted December 26, 2015 Yeah, and i did it again just like you showed and put in the skin folder. So something else is controlling my results page. I searched for that file only found the one location. I am using a route search add on, may have to check with the developer and see if that controls it and how to adjust it. If you're using a module other than the default then you'll have to modify the result's page for that module. 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.