Jump to content

Recommended Posts

Posted

Yes, they are enabled. Schedules are existant, but without dep/arr airport. They were delted in the database directly, so that you can book an aircraft, but not a specific route.

ajs_sched.jpg

and the fleet:

ajs_fleet.jpg

Posted

Hi,

yes around 80 Pireps are logged. The fleet module is working when I don't try to filter only the enabled aircraft. If I add the filter for the enabled aircraft, the script stops working.

  • 2 months later...
Posted

HI

How can I show Fleet by airlines ?

I am kind of curious too if this can be done. I have been working on a little project and bumped in to this issue. Since i have two airlines running off of the same website, it lists all of the aircraft as belonging to 1 airline instead of listing them seperate. This feature would be real handy. I may need to go back and read the posts again to see if it was solved or not. I apologize if it has been answered already.

  • 1 month later...
Guest lorathon
Posted

Should be able to add a size to the <table> tag

<table width="50%">

I am not using this so not sure how it is wet up but you code also use css to change width.

  • 1 month later...
Posted

I am trying to get the output for Total Routes that a certain aircraft is actually scheduled for by using this:

<td><?php echo $aircraft->totalschedules; ?></td>

I have also tried this:

<td><?php echo $aircraft->schedules; ?></td>

But neither seems to work. Can someone please show the correct function to show the count for scheduled flights for the particular aircraft?

Posted

I just need to know how many total flights that are available (scheduled) to a specific aircraft. (Ex. if you have scheduled 350 flights to and from EDDF using an Airbus A320 then I need to know how to pull the info to show Total Routes Available: 350) using the Aircraft's Registration ID.

  • 2 weeks later...
Posted

Hi,

since the "Table-View" for my fleet did not look as I expected, I wrote another template.

Maybe someone can get use of it.

fleet_table.jpg

If someone asks for aid, sorry guys. I'm also just an average programmer ;-)

I will help as much as I can.

Overwrite existing file in /core/templates

Regards and Happy landings.

I just noticed that no one said thanks to this person for uploading his template for us to use or modify. Thank you bud.

  • Like 1
  • 3 weeks later...
  • 1 month later...
Posted

I have used this on my site, and it is working great, but, if I make a certain aircraft INACTIVE, it still shows on the fleet. would it be possible to either hide the inactive ones, or split the list into two? so the active ones show in one table, and the inactive in another?

  • 2 weeks later...
Posted

For the ranks:

<img src="http://yourdomain.com/lib/images/ranks/<?php echo $aircraft->ranklevel; ?>.jpg"/>

You need to put the above into a table cell on the fleet table page.

Make sure the path to the image is correct for your server and also you have used the correct image format (png,jpg etc)

I named the rank images as numerical values, 1 to 9. Lowest rank is 1, highest is 9. The numerical ranklevel and image name need to match up for this to work.

  • Like 1
Posted

For the ranks:

<img src="http://yourdomain.com/lib/images/ranks/<?php echo $aircraft->ranklevel; ?>.jpg"/>

You need to put the above into a table cell on the fleet table page.

Make sure the path to the image is correct for your server and also you have used the correct image format (png,jpg etc)

I named the rank images as numerical values, 1 to 9. Lowest rank is 1, highest is 9. The numerical ranklevel and image name need to match up for this to work.

Thanks very much for this Stuart, works wonderfully :)

+1 rep for your great help :)

Posted

I have this working great. However, I would like to make an addition. would it be possible to add some code, so if i make the aircraft unavailable in the fleet admin, to show a 'under maintenance' label in the fleet page?

  • 2 weeks later...
  • 2 weeks later...
Posted

So here I sit messing around on my test site and I filed a pirep. I just noticed that I filed the pirep as an hour and twenty minutes ( 1.20 ) This info shows up according when I accepted the pirep, and in the profile main. However, when viewing the Fleet Table, it indicates that the aircraft that was used in the pirep has only been flown for 1.12 one hour and twelve minutes.

I have this on a live site since this mod came out and never noticed it before.

Posted

Maybe because that is how long the actual flight took, just from take off to landing, the rest was just taxi time.

I don't think that would be it as the time recorded is for off the blocks time (parking brake off at departure gate to parking brake on at arrival gate).

Posted

I forgot to add that it was a manual file. No acars. So it would have to take what I put in as flight time and the admin center as well as profile and the database did. But for one reason or the other it shows the plane 8 minutes short on flight time.

  • 3 months later...
  • 4 weeks later...
  • 2 weeks 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...