Thank you!
I’ve installed it from the master.zip an hour ago and in the forum it works well.
But on the portal (Simple Portal) now the most blocks disappeared and this error message is shown:
Fatal error: Class 'OnlineToday' not found in /www/htdocs/w00f7be5/for-elchtest/sources/subs/PortalBlocks.subs.php on line 301
If I deactivate the "user online block" in the portal, this block is no longer visible, but all other are back again.
In the PortalBlocks.subs.php is this the part for the UsersOnlineToday addon:
// Does the online today addon exist
if ($online_today && !empty($modSettings['onlinetoday']) && file_exists(SUBSDIR . '/OnlineToday.class.php'))
{
require_once(SUBSDIR . '/OnlineToday.class.php');
$context['info_center_callbacks'] = array();
OnlineToday::get();
if (empty($context['num_onlinetoday']))
return;
echo '
<ul class="sp_list">
<li ', sp_embed_class('dot'), '> ', $txt['sp-online_today'], ': ', $context['num_onlinetoday'], '</li>
</ul>
<div class="sp_online_flow">
<ul class="sp_list">';
foreach ($context['onlinetoday'] as $user)
echo '
<li ', sp_embed_class('user', '', 'sp_list_indent'), '>', $user, '</li>';
echo '
</ul>
</div>';
}
Line 301 is that:
OnlineToday::get();
What’s wrong there? Can it be that "user online" and "users online today" impede each other?