Jump to content

VA Fleet Mod. 09/07/2011


CVV001

Recommended Posts

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

  • Like 2
Link to comment
Share on other sites

  • 2 months later...

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?

Link to comment
Share on other sites

  • 5 months later...

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>

Link to comment
Share on other sites

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
}
?>

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 1 month later...
  • 5 months later...
  • 2 months later...
  • 4 weeks later...
  • 1 month later...
  • 1 year later...

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