SimplePortal

SimplePortal => SimplePortal Feedback => Topic started by: tomeh on April 14, 2012, 04:02:50 PM

Title: Who is the idea of ​​a block on line
Post by: tomeh on April 14, 2012, 04:02:50 PM
Well if the block had the option of selecting not only show the summary
 
for example
Guests = 10
Registered = 8
Ukrci = 1

Without mentioning who it is
Title: Re: Who is the idea of ​​a block on line
Post by: tomeh on May 13, 2012, 05:42:45 AM
Does it make sense - as a registered 100 people to view them all in the post - which is very long and senseless block. You should see only numbers. Alternatively, spoiler or logged-in drop-down list
Title: Re: Who is the idea of ​​a block on line
Post by: phantomm on May 13, 2012, 06:52:06 AM
If you want to remove list then open ./Sources/PortalBlocks.php and :
Code: (Find) [Select]
if (!empty($stats['users_online']))
{
echo '
<li>', sp_embed_image('dot'), ' ', allowedTo('who_view') && !empty($modSettings['who_enabled']) ? '<a href="' . $scripturl . '?action=who">' : '', $txt['online_users'], allowedTo('who_view') && !empty($modSettings['who_enabled']) ? '</a>' : '', ':</li>
</ul>
<div class="sp_online_flow">
<ul class="sp_list">';

foreach ($stats['users_online'] as $user)
echo '
<li class="sp_list_indent">', sp_embed_image($user['name'] == 'H' ? 'tux' : 'user'), ($user['name'] == 'Blue' && ($user['link'] = str_replace('>Blue<', '>Purple<', $user['link'])) ? '' : ''), ' ', $user['hidden'] ? '<em>' . $user['link'] . '</em>' : $user['link'], '</li>';

echo '
</ul>
</div>';
}
else
{
echo '
</ul>
<br />
<div class="sp_fullwidth sp_center">', $txt['error_sp_no_online'], '</div>';
}
Code: (Replace with) [Select]
/*if (!empty($stats['users_online']))
{
echo '
<li>', sp_embed_image('dot'), ' ', allowedTo('who_view') && !empty($modSettings['who_enabled']) ? '<a href="' . $scripturl . '?action=who">' : '', $txt['online_users'], allowedTo('who_view') && !empty($modSettings['who_enabled']) ? '</a>' : '', ':</li>
</ul>
<div class="sp_online_flow">
<ul class="sp_list">';

foreach ($stats['users_online'] as $user)
echo '
<li class="sp_list_indent">', sp_embed_image($user['name'] == 'H' ? 'tux' : 'user'), ($user['name'] == 'Blue' && ($user['link'] = str_replace('>Blue<', '>Purple<', $user['link'])) ? '' : ''), ' ', $user['hidden'] ? '<em>' . $user['link'] . '</em>' : $user['link'], '</li>';

echo '
</ul>
</div>';
}
else
{
echo '
</ul>
<br />
<div class="sp_fullwidth sp_center">', $txt['error_sp_no_online'], '</div>';
}*/
SimplePortal 2.3.7 © 2008-2021, SimplePortal