Timetable 1.0

Hi David, first of all thank you very much for the phenomenal add on and all the help and input you’re giving to the community. I’ve been reading almost all your post and starting to get some clues about PHP in general. I have a problem with this one and was wondering if you can please point me in the right direction.

I already know you’re gonna say: Hey Will check your folders to see if the structure is correct and that the files are actually there. That error is telling you that the system can not find the file that is supposed to be there.

And it makes sense because it’s true. Now, although I don’t know anything about PHP, I’m pretty familiar with the FTP and I swear I did check 100 times if all the files are where they are supposed to be and they are. That being said what also can cause the issue. If it makes any difference I’m using Brilliance V1 as a skin and this is the error:

Notice : The template file “/home/content/w/i/m/wimatteo/html//core/templates/timetable/timetable_index.tpl” doesn’t exist in /home/content/w/i/m/wimatteo/html/core/classes/TemplateSet.class.php on line 248

Thanks in advance for all your help.

Will

put your timetable file in your templates folder. core/templates/ put that in that folder dicertory.

Hi Vansers and thank you very much for your response. I figured that one out last night late and now that module is working as well as all the other ones. By the way, we can never say thank you enough to SimPilot to provide us with all these goodies. I have only one problem left and it’s always due to mu lack of knowledge when it comes down to php. Please look at the screen shot below:

How do I get rid of the overlay ??

Thank you very much.

Will

Hi Vansers and thank you very much for your response. I figured that one out last night late and now that module is working as well as all the other ones. By the way, we can never say thank you enough to SimPilot to provide us with all these goodies. I have only one problem left and it’s always due to mu lack of knowledge when it comes down to php. Please look at the screen shot below:

How do I get rid of the overlay ??

Thank you very much.

Will

Nevermind !! I made it smaller to fit the template and solved it. SORRY !! Although I still don’t know how to make it bigger but staying on top of the sidebar…

Thanks again SimPilot, your link is on the bottom of my site.

I know this is not the right place to post this, but I’m just gonna write a comment about it. All the dynamic content is in place, now I need to find somebody to help me skin it (even paying) because I have no clue where to start with CSS and all that stuff.

Cheers

Will

1 Like

Thanks again SimPilot, your link is on the bottom of my site.

THANK YOU!!! - You are one of the few that has done that for me, although I have not ever pressed the issue the license has certain requirements, including not removing links to the author included in the distibution. I have only included items like this in two addons, AIRMail and POPUPNews but most folks have removed the links without permission, I have only had one person ever ask for permission. I DO LOOK FOR THESE LINKS when I am asked to support an addon. So… I say THANK YOU to you!

1 Like

Hi Dave,

I really appreciated your words but for me it’s normal. I know the kind of effort needed and the time involved in this line of work. I have a lot respect for the guys that, after all the effort, decide to share their work for free. I think that most users of this kind of forums are very young and they don’t realize or know the value of this, or perhaps they just take it for granted. Either way it’s not fair. It’s not a matter of money but instead of respect and consideration. Also I really liked your presentation at the beginning of the dedicated forum: Very clear, effective and so true.

I really love your modules and, although I’m not a pilot of Virtual ACA, I admire the work done there. I think it’s one of the most clean and well designed website I’ve seen when it comes to Virtual Airlines. So you can rest assured that your link is not going anywhere and I was actually thinking about putting another one, a little more visible, on the Fly Star Alliance main site.

Thanks again for the kind words and keep up the excellent work, if nothing else for people like us that appreciate it a lot.

Cheers

Will

Hi

I am just wondering if it is possible to add pagination to this plugin as on the virtual airline that I help and assist with, it makes the page extra long and shows all 400 scheduled flights in the system on one page.

I did find this code, but I do not know what file to place it in:

<div id=“pager” class=“pager”>

<form>

<img src=“<?php echo fileurl(‘lib/images/first.png’);?>” class=“first”/>

<img src=“<?php echo fileurl(‘lib/images/prev.png’);?>” class=“prev”/>

<input type=“text” class=“pagedisplay”/>

<img src=“<?php echo fileurl(‘lib/images/next.png’);?>” class=“next”/>

<img src=“<?php echo fileurl(‘lib/images/last.png’);?>” class=“last”/>

<select class=“pagesize”>

<option value=“10”>10 per page</option>

<option value=“20”>20 per page</option>

<option value=“50”>50 per page</option>

<option value=“100”>100 per page</option>

</select>

</form>

</div>

Thanks

Nick

You will need to add paginaton functions into the data class, controller and the template but it can be done. Look for a thread on pagination in the support forum, there is a good one that many have used to paginate schedules and other list type pages.

I like this one very good, I think I will use this one for our site as well.

Virtual Norwegian Timetable

I have one problem though It also displays routes that are set to inactive in the timetable. How can I get it to only display active routes?

(Routes from/to EKRN for example is not enabled so should not be visible)

You should be able to add

if($schedule->enabled <> '1'){continue;}

on line 45 of the original timetable_index.tpl file and it should skip any schedule that is not enabled.

Hi Dave,

2 questions after I have said, another great addon

  1. I have put in the line so it does not show the inactive route, but it still shows the airportname if there are no further routes.

  2. I would like within the airport the flight sorted on departure time.

Hope somebody cab help me,

Regards,

Cor

You should be able to add

if($schedule->enabled <> ‘1’){continue;}

on line 45 of the original timetable_index.tpl file and it should skip any schedule that is not enabled.

Sweet, worked out great! Added to our site. Thank you for making so many great things for VMS

Hi Dave,

2 questions after I have said, another great addon

  1. I have put in the line so it does not show the inactive route, but it still shows the airportname if there are no further routes.

  2. I would like within the airport the flight sorted on departure time.

Hope somebody cab help me,

Regards,

Cor

The module really isnt capable of sorting the schedules that way. It can be done but it would have to be approached from a different direction than getting all the airfields forst then the flights as it si structured now. You could write it to collect all the enabled routes and group them by airfield then create a display from that.

2 Likes

Nr 1 is good now, just had to put

if($schedule->enabled <> ‘1’){continue;}

on line 41 and not on line 45

Nr2 not fixed yet as I have no idea how to do that. I have noticed that it makes the list in order of route entry in the databse.

Regards,

Cor

Hi Dave. Great module. I just now got around to checking this one out. Wonderful! +1 for sure.

Thanks for all the hard work you do. This is a great add on.

I was messing around on a test site of mine that I have this time table on and where it shows the aircraft that is used for the flight, I also made it show the registration for that flight.

As always, please create a backup of the file before editing.

Line 51 timetable_index.tpl

FIND

echo '<td>'.$aircraft->icao.'</td>';

REPLACE WITH

echo '<td>'.$aircraft->icao.' - '.$aircraft->registration.'</td>';

SAVE FILE AND UPLOAD TO SERVER

Not sure if this is of use to anyone but if so, have at it.

Fantastic module. Thanx for it, Dave. I’ve modified it a little bit, so now it is sorted by departure or arrival times, shows airport full names, flight types (pax, cargo) and arrival times. And for this great work I’ve added a link to simpilotgroup.com at the bottom of the page. Example: Colonia VA.

@Colonia

Very nice work!

one thing I discovered is that schedule count is always one higher like it should be!

means if you have 150 schedules it says 151 for example

that solve that problem

Total Flights: <?php echo $total-1; ?>

best regards

Thomas Schedl

Awesome addon!

On my site (flyalaskavirtual.com) I have more than one airline, is there anyway to code each line by airline code (ex. ASA110, QXE419, etc.)?

Nevermind, I screwed around a little and got it: http://flyalaskavirtual.com/vacms/index.php/Timetable