CVV001 Posted November 19, 2010 Report Posted November 19, 2010 I have made a very simple list of all aircraft configured for my VA that show all information stored in the table phpvms_aircraft with links to images and to download the aircraft. If links are not configured in your aircraft table the interested row show "image not present" or "download not present". The last column show the status (enabled/disabled) of the aircraft. Just copy Fleet.php in /core/modules/Fleet (directory Fleet must be created) then copy fleet.tpl in /core/templates You can see a preview here I have made a link to show this list to all the pilots of the VA ciao - Gianni Fleet.zip 2 Quote
polirom Posted February 6, 2011 Report Posted February 6, 2011 I have made a very simple list of all aircraft configured for my VA that show all information stored in the table phpvms_aircraft with links to images and to download the aircraft. If links are not configured in your aircraft table the interested row show "image not present" or "download not present". The last column show the status (enabled/disabled) of the aircraft. Just copy Fleet.php in /core/modules/Fleet (directory Fleet must be created) then copy fleet.tpl in /core/templates You can see a preview here I have made a link to show this list to all the pilots of the VA ciao - Gianni What would be the route to see the page on our website? Quote
Lamb Posted July 26, 2011 Report Posted July 26, 2011 Please could someone provide a pointer to the pest way to link this into a standard phpVMS install. I am new to this and can see that this will display the information but not how to integrate it into a site. Thanks. Quote
stuartpb Posted July 26, 2011 Report Posted July 26, 2011 Please could someone provide a pointer to the pest way to link this into a standard phpVMS install. I am new to this and can see that this will display the information but not how to integrate it into a site. Thanks. Just copy Fleet.php in /core/modules/Fleet (directory Fleet must be created) then copy fleet.tpl in /core/templates Then add a link in your /core/templates/core_navigation.tpl file: <li><a href="http://your website address.com/index.php/fleet">Fleet</a></li> Quote
Lamb Posted July 27, 2011 Report Posted July 27, 2011 Then add a link in your /core/templates/core_navigation.tpl file: <li><a href="http://your website address.com/index.php/fleet">Fleet</a></li> Thanks for the above. I have added it to my core_navigation.tpl file but on refreshing the page still see nothing. Something else is missing, the code is correct as when I c&p the href into a browser, up pops the table. Is the contents cached somewhere, or is there a local version of this file somewhere? I just cant work out why the line of code is being ignored. As the file is small I have added it below: <li><a href="<?php echo url('/'); ?>">home</a></li> <?php if(!Auth::LoggedIn()) { // Show these if they haven't logged in yet ?> <li><a href="<?php echo url('/login'); ?>">Login</a></li> <li><a href="<?php echo url('/registration'); ?>">Register</a></li> <?php } else { // Show these items only if they are logged in ?> <li><a href="<?php echo url('/profile'); ?>">Pilot Center</a></li> <?php } ?> <li><a href="<?php echo url('/fleet'); ?>">Fleet</a></li> <li><a href="<?php echo url('/pilots'); ?>">Pilots</a></li> <li><a href="<?php echo url('/acars'); ?>">Live Map</a></li> <?php echo $MODULE_NAV_INC;?> <?php if(Auth::LoggedIn()) { if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { echo '<li><a href="'.fileurl('/admin').'">Admin Center</a></li>'; } ?> <li><a href="<?php echo url('/logout'); ?>">Log Out</a></li> <?php } ?> Quote
Strider Posted July 27, 2011 Report Posted July 27, 2011 Try deleting the cache in the admin area, under settings>Maintanance, If that doesn't work, try: <li><a href="<?php echo url('/Fleet');?>">Fleet</a></li> Quote
Lamb Posted July 28, 2011 Report Posted July 28, 2011 Thanks, But it is now sorted. This is not quite correct: Then add a link in your /core/templates/core_navigation.tpl file: <li><a href="http://your website address.com/index.php/fleet">Fleet</a></li> What you have to do is it change the core_navigation.tpl file in the skin that you are using as this overrides the one in core/templates. Thanks to all that helped! Quote
stuartpb Posted July 28, 2011 Report Posted July 28, 2011 As default, the core_navigation file isn't located in the skin folder, it is in the templates folder. If I had known you had made a copy into the skins folder, then the advice would have reflected that. Good to hear you sorted it out though. Quote
Txmmy83 Posted September 13, 2011 Report Posted September 13, 2011 one thing there are links especially to get some pictures of this fleetable that head directly to IVP these pictures would not be shown since their source is outside your PhpVMS installation Best Regards Thomas Quote
vPLF Posted February 21, 2012 Report Posted February 21, 2012 Hello, How do the current location of the aircraft in this table? I removed it now and download status column, now I want to add to point to the current location. That is deprived of ACARAS where the flight was performed. Quote
Wajx11 Posted April 25, 2012 Report Posted April 25, 2012 Hey guys i am having a slight problem with this mod, its seems its conflicting with something www.jetredvirtual.co.cc/index.php/fleet the link Quote
JustinRomaine Posted May 22, 2012 Report Posted May 22, 2012 were did you get the images from. I like that and how would you set it up to show the green and the red etc thanks Quote
STALKER Posted July 21, 2012 Report Posted July 21, 2012 Installed and working, thank you very much! Quote
DanL Posted December 30, 2013 Report Posted December 30, 2013 I know this is a bit of a thread revival but is there a way for the table to only show active aircraft? Thanks Quote
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.