Jump to content

Problems With Flights/Hours


flyalaska

Recommended Posts

I have a problem with one pilots flights.In his profile it shows him at 25 flights with the rank of First Officer. If you look at the log book he should have around 75 flights. He has 113.52 hours which should give him the rank of Rank_5.gif

I have my logbook paginated @ 25 per page. I took the paginate page down and upload the the default template and still the same problem. So I know the pagination is not the problem.

http://www.flyaka.com/index.php/profile/view/154

When I look in the admin under his PIREPS, it only shows 25 PIREPS.

Another thing, he is the only one with this problem. I looked at mine an other pilots, everything matches. He files his PIREPS manually. All my ranks are set correctly, and I have rested the hours in the settings.

logbook.png

Link to comment
Share on other sites

  • Administrators

Looks like they're all in the logbook. In the phpvms_pilots table, what's the number in the 'totalpireps' column?

And if you run:

SELECT COUNT(pirepid) FROM phpvms_pireps WHERE pilotid=HIS_PILOT_ID

Also something strange - the URL:

http://www.flyaka.com/index.php/profile/view/154

The ID is 154, but on the page it shows:

Pilot ID: AKA253

I guess you've entered an offset?

Link to comment
Share on other sites

  • Administrators

I will check that out. The reason for the offset numbers, because we start at AKA100. That's the format we we used before phpVMS, so instead of changing every ones ID, I just changed the config to start at 100.

No problem there, seems like your offset is 99? But check the count of those two, see how they are? I might need to add a maintenance option to do a recount, not sure how they were off.

Link to comment
Share on other sites

  • Moderators

No problem there, seems like your offset is 99? But check the count of those two, see how they are? I might need to add a maintenance option to do a recount, not sure how they were off.

Will that be in 2.1 Nabeel?

Link to comment
Share on other sites

No problem there, seems like your offset is 99? But check the count of those two, see how they are? I might need to add a maintenance option to do a recount, not sure how they were off.

That didn't work. In fact mostly everyone has been effected. I have 172 listed but only showing 20+ on my pirep view. I did have have the pirep_viewall.tpl paginated. Reverted just in-case that was the problem.

I ran this, and it exucuted correct, but had no effect.

SELECT COUNT(pirepid) FROM phpvms_pireps WHERE pilotid=1

mysql.png

Any ideas?

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