Frontpage Pilot stats

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>

check this

 

//forum.phpvms.net/applications/core/interface/index.html//forum.phpvms.net/applications/core/interface/index.html

 

2 hours ago, RuiMiguel said:

https://forum.phpvms.net/t/topic/6881

HI,

Thanks for the replay! but unfortunately is that for hours and total flight etc… But what i wanna know is Hub:, Rank:, Current location:, etc on the front page…

vérifie ça

//forum.phpvms.net/applications/core/interface/index.html

I do not know if it works but it tries to change userinfo to pilotinfo

2 hours ago, RuiMiguel said:

https://forum.phpvms.net/t/topic/4185

Not working…

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;?\>