Hello I wonder if you can have the information of total miles flown by a pilot to put in the Pilot Center.
Help!!
[bump]
I’m trying to place the code to have it show in the profile_main.tpl with the rest of the pilot information about the member. I am trying to figure out which call to use for it.
This isn’t working:
<li><strong>Miles Flown: </strong><?php echo $userinfo->totalmiles; ?></li>
I’m sure the code you just gave, goes in the PilotData.php, but trying to figure the pull code.
Actually you did a great job on it. It works perfectly now. Thanks a lot on the help.
Other interested parties wondering how to do it, follow Jeffrey’s examples then in the profile_main.tpl place this in the lineup:
<li><?php
$custom_info = CUSTOMData::getPilotInfoWithTotalDistance($userinfo->pilotid);
echo '<strong>Total Flown Miles: </strong>'.$custom_info->totalmiles;
?></li>
The same exact code above will also work in the pilot_public_profile.tpl without any modifications.
Sorry to bump this, but you did a great job with this, Jeffery. Really helps me out a lot, too.
Thanks.