Jump to content

Frontpage Pilot stats


Royzzzz

Recommended Posts

Hi guys,

 

I was trying tho put pilot stats like: Hub:, Rank:, Current location:, etc on the frontpage.

But it is not working! look at s screenshot for the problem!

And here is the code:

 

<li class="list-group-item">
                            <b>HUB:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $userinfo->hub;?></p>
                        </li>
                        <li class="list-group-item">
                        <b>Rank:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $userinfo->rank;?></p>
                        </li>
                        <li class="list-group-item">
                            <b>Hours till next rank:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo ($nextrank->minhours - $pilot_hours)?></p>
                        </li>
                        <li class="list-group-item">
                            <b>Current location:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $report->arricao; ?></p>
                        </li>
                        <li class="list-group-item">
                            <b>Average Touchdown Rate:</b> <p class="pull-right" style="color: #3C8DBC"></p>
                        </li>
                        <li class="list-group-item">
                    
                            <b>Days Until Inactive:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo Config::Get('PILOT_INACTIVE_TIME');?></p>
                        </li>

Screenshot_2.png

Edited by Royzzzz
Link to comment
Share on other sites

  • Members

you need to get the variables from somewhere 

 

example for

<?php echo $userinfo->hub;?>

most propably you will be able to get it with 

$userinfo = PilotData::getPilotData(Auth::$pilot->pilotid);

final result should be 

$userinfo = PilotData::getPilotData(Auth::$pilot->pilotid);
<?php echo $userinfo->hub;?>
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...