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

  • 2 weeks later...
Posted
  On 12/10/2012 at 3:06 PM, servetas said:

ΚaλησπέÏa,

Check this.

In this link, we just have old versions, Kyle made ​​many updates that are not present. :unsure:

  • 1 month later...
  • Moderators
Posted
  On 2/6/2013 at 10:24 AM, HighFlyerPL185 said:

Any chance for a reupload? The link is missing :(

Something is up with the nameservers again, however. I'm going to upload my modules in Github in the next few days.

  • Like 1
  • 3 weeks later...
  • 1 month later...
  • Moderators
Posted
  On 4/13/2013 at 5:35 PM, Steve Bartlett said:

For us newbies, LOL, where to put the

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

Is not clearly stated. What file would I put this code at?

You can put it in your Navigation bar or a link on any of the pages you wish. ;)

  • Moderators
  • 2 weeks later...
Posted

Today i found a Little problem. In the dropdown menu appears two times "March". January - March (show february information) - March again (show march information) - April.... any idea?

  • Like 1
  • 2 months later...
Posted
  On 5/1/2013 at 2:52 AM, imnemina said:

Today i found a Little problem. In the dropdown menu appears two times "March". January - March (show february information) - March again (show march information) - April.... any idea?

I just noticed the same issue, any ideas?

Posted
  On 5/28/2012 at 11:54 AM, caalair said:

Hi Kyle,

I think i have found an error. On line 59 in the template folder it says

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

The problem being when you select a month on the screen it stays at May. I took out the _name and it update ok but it only gives the month number.

Great module by the way :)

Resolve?

Posted
  On 7/17/2012 at 10:02 AM, mark1million said:

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.

I too have the same problem, how to solve it? thanks

  • 6 months later...
  • 1 month later...
Posted

Kyle,

Thanks for making this module and distributing it. For those that are not getting a table to enclose their data, use <table width="100%" border="1px" align="center"> in your index.tpl where <table align="center" is.

  • 1 month later...
Posted
  On 7/18/2012 at 7:29 AM, mark1million said:

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

Hi

Before I had total flight hours like: 7.818234

I've changed to:

<?php echo round($flighthours);?></td>

and now I have 8.

How can I obtain something like that: 7.81 ?

  • Moderators
Posted

Yes, you can use:

<?php echo substr($flighthours, 0, X); ?>

Where X replace with the number of characters you want to get (in that case 4).

  • 7 months later...
Posted
  On 5/18/2014 at 5:40 PM, servetas said:

Yes, you can use:

<?php echo substr($flighthours, 0, X); ?>

Where X replace with the number of characters you want to get (in that case 4).

I know this is very old, but having issues. I got this to work once before and now I can't. Can someone show me some code that is working to round off to 2 decimal places only? I have tried sound, substr and all that good stuff and nothing is working for me.

Would love some pointers.

Thanks!

Ray

  • Moderators
Posted
  On 12/21/2014 at 8:27 PM, TAV1702 said:

I know this is very old, but having issues. I got this to work once before and now I can't. Can someone show me some code that is working to round off to 2 decimal places only? I have tried sound, substr and all that good stuff and nothing is working for me.

Would love some pointers.

Thanks!

Ray

You can do this way...

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

Cheers!

  • 3 weeks later...
Posted
  On 12/21/2014 at 11:17 PM, Kyle (Vansers) said:

You can do this way...

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

Cheers!

Ill give that a try.

Thanks!

**EDIT**

Tried it. Still getting like 9 or more decimal places. This is flor flight hours (176.09999999999997)as well as the Top Flight Time (53.599999999999994).

  • Moderators
Posted
  On 1/6/2015 at 12:33 AM, TAV1702 said:

Ill give that a try.

Thanks!

**EDIT**

Tried it. Still getting like 9 or more decimal places. This is flor flight hours (176.09999999999997)as well as the Top Flight Time (53.599999999999994).

Would you paste the code where you are getting those decimal places? Something is still messed up, and it should be rounding. ;)

Posted
  On 1/6/2015 at 12:32 PM, Kyle (Vansers) said:

Would you paste the code where you are getting those decimal places? Something is still messed up, and it should be rounding. ;)

<tr>
<td align="center"><?php echo $flightcount;?></td>
<td align="center"><?php echo round($flighthours, 2); ?></td>
   <td align="center"><?php echo $passengers;?></td>
   <td align="center"><?php echo round($avglanding);?>(FT/MIN)</td>
</tr>

Notice the flight hours? I have cleared cookies and cache in my browser, cleared cache on site and all.

Here is the pilot time:

<tr>
<td align="center"><?php echo $ranktime;?></td>
<td align="center"><a href="<?php echo url('/profile/view/'.$ptime->pilotid);?>"><?php echo PilotData::GetPilotCode($ptime->code, $ptime->pilotid);?></a></td>
<td align="center"><?php echo $ptime->firstname . ' ' . $ptime->lastname; ?></td>
<td align="center"><?php echo round ($ptime->time), (2);?></td>
</tr>

  • Moderators
Posted

You may be editing the template file in the templates folder when you already have the templates for the module in the skins folder.

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.

×
×
  • Create New...