Jump to content

vStatsCenter


Kyle
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

I have it installed, but it is not showing the greased landings, and it is not showing all the pilots who have flown this month. Click here to see.

Mr. Bean, what day is it? July 1st! :D that's why it's based on by month, and you probably didn't have any PIREPS sent yet for July.

Link to comment
Share on other sites

The greased landings is still not working. The SQL Query is still not looking for it.

$query = "SELECT p.*, UNIX_TIMESTAMP(p.submitdate) as submitdate,
			  UNIX_TIMESTAMP(p.modifieddate) as modifieddate,
      		   u.pilotid, u.firstname, u.lastname, u.email, u.rank,
                 a.id AS aircraftid, a.name as aircraft, a.registration,
                 dep.name as depname, dep.lat AS deplat, dep.lng AS deplng,
                 arr.name as arrname, arr.lat AS arrlat, arr.lng AS arrlng                        
                 FROM " . TABLE_PREFIX . "pireps p
                 LEFT JOIN " . TABLE_PREFIX . "aircraft a ON a.id = p.aircraft
                 LEFT JOIN " . TABLE_PREFIX . "airports AS dep ON dep.icao = p.depicao
                 LEFT JOIN " . TABLE_PREFIX . "airports AS arr ON arr.icao = p.arricao
                 LEFT JOIN " . TABLE_PREFIX . "pilots u ON u.pilotid = p.pilotid
                 WHERE MONTH(submitdate) = {$month} AND YEAR(submitdate) = {$year} AND p.landingrate != 0 AND p.accepted = 1 AND u.retired = 0
                 ORDER BY p.landingrate DESC
                 LIMIT 5";

See the p.landingrate, it is only in the order by and where, it has not been instructed to look for it anywhere else.

Link to comment
Share on other sites

  • Moderators

Grrr... :lol:

I'll have to have a look at it again, and yes, it's being instructed to look at the landing rate, maybe not..., but I'll take a look. Maybe I have to rewritte it...

thanks for letting me know guys, also while I'm looking for the problem, can you go back to different previous months and see if something is showing up.

Thanks.

Link to comment
Share on other sites

  • Moderators

Okay,

I still can't find the issue... I downloaded the module from my Github, and I installed on my VA, I do get the greased landing rates.

I'm not sure what's the issue on your end guys. My suggestion is to try reinstalling the module and let me know if it not works.

Link to comment
Share on other sites

Hi Kyle,

the landing rate is not working for now. i see nothing.

Greets

michael Kraan

----------------------------------------------------------------------------------------------------------------------

And i see a other problem,

when you refresh the page than is the date, first month of your airliner. and not a month from now.

is it possible? the current month is on top? (select month)

Edited by michael Kraan
Link to comment
Share on other sites

  • Moderators

MMm thats what I use. I will try to have a look at it this weekend. I have some time because girlfriend has to

work :D

Regards,

Cor

Not a problem! But I think it might be the Stable and Beta issue, I'll have to have a look.

Link to comment
Share on other sites

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