Advertisement:

Author Topic: ssi_whosOnline and hidden users in userlist  (Read 4933 times)

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
ssi_whosOnline and hidden users in userlist
« 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?
« Last Edit: March 21, 2008, 09:16:52 AM by Owdy »
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

Offline niko

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,003
  • Gender: Male
    • Madjoki
Re: ssi_whosOnline and hidden users in userlist
« Reply #1 on: March 21, 2008, 09:14:46 AM »
Would this work?

Code: [Select]
$array = ssi_whosOnline('array');
echo implode(', ', $array['list_users_online']);

Offline Owdy

  • SMF Fossil
  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 15,627
  • Gender: Male
  • W00t!
    • janoloferiksson on LinkedIn
    • @@jaoler on Twitter
Re: ssi_whosOnline and hidden users in userlist
« Reply #2 on: March 21, 2008, 09:16:45 AM »
Yes, perfect, thanks!
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0