SimplePortal
Support => English Support => Topic started by: letub on November 20, 2010, 08:28:55 PM
-
Is it possible to set the users online block to not show that there are any hidden users?
-
Yes
-
Please -- let us know how.
Happy New Year!
-
./Sources/PortalBlocks.php
Find and remove:
<li>', sp_embed_image('dot'), ' ', $txt['hidden'], ': ', $stats['num_users_hidden'], '</li>
And then to remove them from the actual block itself (the listing),
Find:
foreach ($stats['users_online'] as $user)
echo '
<li class="sp_list_indent">', sp_embed_image($user['name'] == 'H' ? 'tux' : 'user'), ' ', $user['hidden'] ? '<em>' . $user['link'] . '</em>' : $user['link'], '</li>';
Replace with:
foreach ($stats['users_online'] as $user)
{
if ($user['hidden'])
continue;
echo '
<li class="sp_list_indent">', sp_embed_image($user['name'] == 'H' ? 'tux' : 'user'), ' ', $user['hidden'] ? '<em>' . $user['link'] . '</em>' : $user['link'], '</li>';
}
-
Thanks, Chris. I hope this will help the original poster.