Jump to content
Message added by Kyle

WARNING: This module is no longer supported from the developer as the developer is shifting their focus on phpVMS v4 Addons.

Recommended Posts

  • Moderators
Posted

its working good now!

thanks for this nice addon Kyle!

Greets

michael Kraan

Whew! (sigh)!!!

Perfect! :lol:

Your welcome as well!

Posted

i have one little question,

i use more airliners on one site. but is it possible that i see under airliner stats the 4 airliners? and not one stats for the ailriner.

see screenshots,

questyl.jpg

Its a idea, let me know :)

Greets

Michael Kraan

  • Moderators
Posted

Kyle,

Great addition, just the one problem i can find is when you change the selected date the h3 does not change it stays on the current month, the year changes but the month does not,

<h3 align="center">Stats For <?php echo $month_name;?> - <?php echo $year;?></h3>

I think its getting confused with the defined parameters at the top of the page.

  • Moderators
Posted

Mark,

yeah I know it's been a issue. im going to rewrite the module one function for current month and another function for the past month or something else. maybe add a error messages.

cheers!

  • Moderators
Posted

Well, lol.

I'm rewritting this module to remove thoses ugly ?month=07&year=2012 urls and putting them into clean. So, I'm pushing the update here pretty soon. Why not wait for the update? ;)

  • Moderators
Posted

Build Released!

Download Here

View Changes Here

=================

Okay, I have redone the module and there is a exterme improvement here.

1) You do not need to put in the date and year in the URL for the current's month stats.

Example, today's is July 2012, you go to the module at www.va.com/index.php/vStatsCenter, the module will get all of the July 2012's stats. Simple. Be sure to update your URL links to the following code...

<a href="<?php echo url('/vStatsCenter/');?>">vStatsCenter</a>

2) If you want to look for past stats, you can use the drop down on the page, and select a month and hit View Month Stats, you'll notice the URL is now clean. Example www.va.com/index.php/vStatsCenter/past/04/2012

Cheers!

  • Moderators
Posted

Mark,

yeah I know it's been a issue. im going to rewrite the module one function for current month and another function for the past month or something else. maybe add a error messages.

cheers!

Not been about for a while so just catching up, that was the only issue i had with the addition.

Great work by the way Kyle.

Posted

Hi Mark,

I took the _name away from

<h3 align="center">Stats For <?php echo $month_name;?> - <?php echo $year;?></h3>

and it now changes but it gives a number ie instead of july its will say 7

I have settled for that until Kyle gets a fix

  • Moderators
Posted

Somehow, it's odd for the the dates going back to 1969. It should go away, but if it doesn't for the next few days, let me know.

I'm going to work on this to prevent this.

  • Moderators
Posted

Cor use a round function on the time in the index.tpl i had this and was an easy fix.

<?php echo round ($flighthours), (1);?>

the column you need to mod i think is this one.

<?php echo $ptime->time;?>

So would be this,

<?php echo round ($ptime->time), (1);?>

Not tested but should be good ;)

  • Moderators
Posted

hmm that`s strange... i just checked that on my site and there they are identical for simpilots module and vStatsCenter.

I have noticed some slight changed but that is because Kyles module excludes retired pilots.

Posted

Hm I'm also using round so this could be the reason but how comes that a round function would fix more than 10 flight hours difference for the same pilot between the Screenshot and simpilots Module then?

sent from my iphone

  • Moderators
Posted

Hey Mark,

My module does not count any rejected PIREPS because I think they aren't worh it for the stats since its rejected.

So that's why it may be slightly different than other stats type modules.

cgentil,

Yep you go into the Admin Panel, go to site settings, maintance, and click on clear cache. That should do the trick. ;)

  • Moderators
Posted

Hey Mark,

My module does not count any rejected PIREPS because I think they aren't worh it for the stats since its rejected.

So that's why it may be slightly different than other stats type modules.

Yeah i seen that in the query, thats why i said about the hours difference between top pilots data and yours.

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