Royzzzz Posted January 2, 2017 Report Share Posted January 2, 2017 (edited) 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> Edited January 2, 2017 by Royzzzz Quote Link to comment Share on other sites More sharing options...
RuiMiguel Posted January 2, 2017 Report Share Posted January 2, 2017 (edited) check this Edited January 2, 2017 by RuiMiguel Quote Link to comment Share on other sites More sharing options...
Royzzzz Posted January 2, 2017 Author Report Share Posted January 2, 2017 2 hours ago, RuiMiguel said: check this 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... Quote Link to comment Share on other sites More sharing options...
RuiMiguel Posted January 2, 2017 Report Share Posted January 2, 2017 vérifie ça I do not know if it works but it tries to change userinfo to pilotinfo Quote Link to comment Share on other sites More sharing options...
Royzzzz Posted January 2, 2017 Author Report Share Posted January 2, 2017 2 hours ago, RuiMiguel said: vérifie ça I do not know if it works but it tries to change userinfo to pilotinfo Not working... Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted January 2, 2017 Members Report Share Posted January 2, 2017 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;?> 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.