News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SSI: display only part of ssi_whosOnline()

Started by nicor2k, January 11, 2011, 10:32:17 AM

Previous topic - Next topic

nicor2k

Hi everybody!

When using "SSI.php" and the function "ssi_whosOnline", I'll get a display of how many users, how many guests and which users are online right now. According to the documentation (http://support.simplemachines.org/function_db/index.php?action=view_function;id=523) I can also get only a part of it, like only the total_users online. I just do not understand, how to get this out of the function, can anybody help me out please? :)


thanks!

nicor2k

Ok, thanks to a post somewhere here it now works. If someone is interested, this is how it goes:

   $data = ssi_whosOnline('return');
   echo $data['total_users'].' Besucher online';

:)

Advertisement: