MrDalle Posted November 8, 2016 Report Share Posted November 8, 2016 (edited) Hey folks, im trying to display the average landing rate per user in our dashboard.. but i cant find a way to do this.. As you see in the screenshot below i got managed to display Hours Flown, Total Flights and the Pilot Wallet correctly with $userinfo ->totalhours etc.. for example: <section class="col-lg-2 connected"> <div class="small-box bg-yellow"> <div class="inner"> <h3><?php echo $userinfo->totalhours; ?></h3> <p>Hours flown</p> </div> <div class="icon"> <i class="ion-earth"></i> </div> </div> </section> So whats the right code for doing this for the landing rate? Thanks for your Help! Edited November 8, 2016 by MrDalle Quote Link to comment Share on other sites More sharing options...
MrDalle Posted November 8, 2016 Author Report Share Posted November 8, 2016 Solved it by myself.. i used the Touchdownstats Module and messed around with the code.. wokring expample here: <section class="col-lg-2 connected"> <div class="small-box bg-red"> <div class="inner"> <h3><?php echo TouchdownStatsData::pilot_average($userinfo->pilotid); ?> </h3> <p>Landing Rate</p> </div> <div class="icon"> <i class="ion-ios-analytics"></i> </div> </div> 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.