Jump to content

PID's Changed in Pireps


llju1

Recommended Posts

Ok I just noticed something really weird. We gave 6 airlines(wings). Our pilots can fly any flights even from other wings. when a pilot flies a flight another airline(wing) it tacks on the airline(wing)Id to the pilots pirep. I.E. my pilot Id is VMC0001, If I fly flight 56V1001 it will show the pirep with the pilot ID as 56V0001. It still gives me the hours under my VMC0001 id. and it shows in my list of pireps on my pilot center. Any Ideas?

Link to comment
Share on other sites

Guest lorathon

If you are talking about in the admin pirep_processed.tpl it is just in the template. It can be easily changed.

I changed the reference to

<?php 
$pilotinfo = PilotData::GetPilotData($pirep->pilotid);
?>

I then changed the Pilot# firstname lastname reference to the following

<?php echo PilotData::GetPilotCode($pilotinfo->code, $pirep->pilotid) . ' - ' .$pirep->firstname .' ' . $pirep->lastname;?>

I think it was originally like this

<?php echo $pirep->code.$pilotid?>

Link to comment
Share on other sites

Oh it's showing it in the wrong column you mean?

no what it does is when I look at all pireps in admin, it has given the wrong PID. It also show the wrong PID on my front page under recent Pireps.It is assigning the airline id to the beginning of the PID. In Other words. IF I fly another airlines(wing) schedule it will show the Wing Id in front of my id number. exp. my pilot id is VMC0001, but if I fly a scheduel that is listed with the 1956thVMAW (56V) it will put the put my PID as 56V0001 not VMC0001. It still give me credit for the flight though.

Link to comment
Share on other sites

Guest lorathon

Please see my post above. This is the way to change that. It is pulling the code from the pirep. The code lookup needs to come from the pilot information.

We had the same problem. Changing this is the templates solved the issue. You can not use the code reference from the PIREP.

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