Jump to content

Recommended Posts

Posted

I have searched through the forums and I can't find anything related to Last 30 days pireps, specifically the Pilot Roster page pointing to one profile link and the Live Map pointing to another.

Here is the scenario:

If I look at the pilot roster and select a pilot, it shows the PIREPS for the past 30 days and the web address points to /phpvms/index.php/profile/view/2 This displays correctly.

If I select the Live Map and click on the same pilot, the PIREP chart flatlines and the web address points to /phpvms/index.php/profile/view/CPA0002

I don't know why in the live map that the profile view would point to a different variation of the pilot number. Has anyone else come across this before?

Regards

  • 2 weeks later...
Posted

Can anyone please help me in figuring this out. I have gone to other sites and they have the same issue with the web address, however, the chart in the live map does not flatline.

i can send my website links via PM.

I am trying to figure it out but I am just stuck.

Regards,

Todd

Posted

Here you go. Thank you very much :)

<?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?>
<?php
if(!$pilot) {
echo '<h3>This pilot does not exist!</h3>';
return;
}
?>
<h3>Profile For <?php echo $pilot->firstname . ' ' . $pilot->lastname?></h3>
<table>
<tr>
<td align="center" valign="top">
<?php
if(!file_exists(SITE_ROOT.AVATAR_PATH.'/'.$pilotcode.'.png')) {
echo 'No avatar';
} else {
echo '<img src="'.SITE_URL.AVATAR_PATH.'/'.$pilotcode.'.png'.'" alt="No Avatar" /> ';
}
?>
<br /><br />
<img src="<?php echo $pilot->rankimage?>" alt="" />
</td>
<td valign="top">
<ul>
<li><strong>Pilot ID: </strong><?php echo $pilotcode ?></li>
<li><strong>Rank: </strong><?php echo $pilot->rank;?></li>
<li><strong>Total Flights: </strong><?php echo $pilot->totalflights?></li>
<li><strong>Total Hours: </strong><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></li>
<li><strong>Location: </strong>
 <img src="<?php echo Countries::getCountryImage($pilot->location);?>"
 alt="<?php echo Countries::getCountryName($pilot->location);?>" />
 <?php echo Countries::getCountryName($pilot->location);?>
</li>
<?php
// Show the public fields
if($allfields) {
 foreach($allfields as $field) {
 echo "<li><strong>$field->title: </strong>$field->value</li>";
 }
}
?>
</ul>
<p>
<strong>Awards</strong>
<?php
if(is_array($allawards)) {
?>
<ul>
<?php
		 foreach($allawards as $award) {
 /* To show the image:
 <img src="<?php echo $award->image?>" alt="<?php echo $award->descrip?>" />
 */
?>
 <li><?php echo $award->name ?></li>
<?php } ?>
</ul>
<?php
}
?>
</p>
</td>
</tr>
</table>
<!-- Google Chart Implementation - OFC Replacement - simpilot -->
<img src="<?php echo $chart_url ?>" alt="Pirep Chart" />

  • Administrators
Posted

I think you are talking about the difference between;

http://flymirageva.org/phpvms/index.php/profile/view/MEC0002

and

http://flymirageva.org/phpvms/index.php/profile/view/2

It is a mis-step in my coding when I implemented google charts for that page and the way the pilot_id gets parsed. I just pushed the fix for it to github -> https://github.com/DavidJClark/phpvms_5.5.x/commit/094fd85d7378ad154f4c4c83b978baff789f449f

I have not been able to test it in a live environment yet but I think this will correct the issue.

Posted

Did a check and it works perfectly. I guess the PilotID item is inheirent to the phpvms programming itself as it is prevalent throughout the different websites I visited that are using phpvms when I was trying to troubleshoot.

Thank you so much again!

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