Jump to content

Landing Rate for Users


MrDalle

Recommended Posts

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

2gwyuVy.png

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 by MrDalle
Link to comment
Share on other sites

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>

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