Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Owdy on March 21, 2008, 08:44:36 AM

Title: ssi_whosOnline and hidden users in userlist
Post by: Owdy on March 21, 2008, 08:44:36 AM
I use that in my index.template like this:
Code: [Select]
if ($context['user']['is_logged'])
{
require_once('/var/www/fs1/0/public_html/foorumi/SSI.php');
$array = ssi_whosOnline('array');

$newarray = array();
foreach ($array['users'] as $user)
  $newarray[] = $user['link'];

echo implode(', ', $newarray);
}
echo '

In 1.1 it worked fine. Now, hidden users doesnt show italicized. That works fine in ssi_examples.php page, but not in forum. Any ideas why?
Title: Re: ssi_whosOnline and hidden users in userlist
Post by: niko on March 21, 2008, 09:14:46 AM
Would this work?

Code: [Select]
$array = ssi_whosOnline('array');
echo implode(', ', $array['list_users_online']);
Title: Re: ssi_whosOnline and hidden users in userlist
Post by: Owdy on March 21, 2008, 09:16:45 AM
Yes, perfect, thanks!