vStatsCenter

vStatsCenter_V1.0

This module allows you and your virtual pilots to veiw the VA’s monthly stats, and go back in time by month to see what stats happened in it’s month.

Created Under: http://creativecommo…s/by-nc-sa/3.0/

Completed By:

Screenshot of Module:

How To Install:

1) Download the file that is attached here…

2) Unzip the file…

3) Upload the files same as the structure as your phpvms files.

Enjoy the Module!

A simple URL Link to the module.

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

Version 1.0 - May 23, 2012

  • First Release

Version 1.1 - May 24, 2012

  • Removed two unused functions

Download From GitHub - Download

If you have any questions, please post in this topic!

Kyle could it be that the upload lacks the sql install file

great addon what I can see from the shots

best regards,

Thomas

No SQL file required.

hi kyle, thanks for the module but i have this error

Fatal error : Call to undefined method VAStatsData::monthly_promotions() in /var/www/virtual/xxxxxxmodules/vStatsCenter/vStatsCenter.php on line 47

getting the same error like Mattia

Sorry guys,

I’ll fix that. if you want to manually fix it. Take out line 47 & 48 and that error will go away.

I’ll update the file soon.

Module Updated -

Version 1.1 - May 24, 2012

  • Removed two unused functions

Download From GitHub - Download

found another problem if you want to choose month you get

An Error Was Encountered

The module “STATSCENTER” doesn’t exist!

1 Like

ok found the Problem I think

echo '<option value="'.url('/StatsCenter/index?month='.$startmonth.'&year='.$startyear.'').'">'.$month_name.' - '.$startyear.'</option>';

should be vStatsCenter instead of StatsCenter on line 35 in vStatsCenter.tpl

ok found the Problem I think

echo ‘’.$month_name.’ - ‘.$startyear.’';

should be vStatsCenter instead of StatsCenter on line 35 in vStatsCenter.tpl

Your right! Nice job. Will update right away.

Good Eyes!

Module Updated -

Version 1.2 - May 24, 2012

  • Corrected URL Link in dropdown - Thanks

Download From GitHub - Download

many thanks kyle :smiley:

No problem! Glad it works!

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

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

thanks for letting me know. will update tonight.

to who is wondering why the download won’t work,

I have pulled down the module for unseen reasons.

I’ll have it reuploaded later tonight.

get a 404 page can noth downlad

I’ll reupload the module tonight.

Sorry, I had been busy fixing many things at Patriot VA.

Re-Uploaded!

Download

ok you changed it that it only show current month right?

best regards,

Thomas