Jump to content

List Users Identities Online


Recommended Posts

Posted

I understand StatsData users online feature, but is there a way to list the identities of those users for those that are logged into the webstie? Thanks!

Posted

<?php 
$usersonline = StatsData::UsersOnline();
foreach($usersonline as $pilot) { ?>
<img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" width="16" height="11" /> <a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid). ' ' .$pilot->firstname . ' ' . $pilot->lastname?></a><br />
<?php } ?>

That shows [Flag] Firstname Surname for each person :)

  • Like 1
  • 1 year later...

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