natcret Posted December 29, 2015 Report Share Posted December 29, 2015 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 Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted December 29, 2015 Moderators Report Share Posted December 29, 2015 What is your website url? Quote Link to comment Share on other sites More sharing options...
natcret Posted December 29, 2015 Author Report Share Posted December 29, 2015 Sent you a PM with the URL. Quote Link to comment Share on other sites More sharing options...
natcret Posted December 30, 2015 Author Report Share Posted December 30, 2015 Were you able to take a look at the site? Quote Link to comment Share on other sites More sharing options...
natcret Posted January 8, 2016 Author Report Share Posted January 8, 2016 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 Quote Link to comment Share on other sites More sharing options...
Moderators servetas Posted January 8, 2016 Moderators Report Share Posted January 8, 2016 Can you please paste here your pilot_public_profile.tpl or .php file of your template? Quote Link to comment Share on other sites More sharing options...
natcret Posted January 8, 2016 Author Report Share Posted January 8, 2016 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" /> Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 9, 2016 Administrators Report Share Posted January 9, 2016 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. Quote Link to comment Share on other sites More sharing options...
natcret Posted January 9, 2016 Author Report Share Posted January 9, 2016 Thank you very much! I will check on my end and let you know. Quote Link to comment Share on other sites More sharing options...
natcret Posted January 9, 2016 Author Report Share Posted January 9, 2016 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.