MyBB Community Forums

Full Version: Who's online counter in portal.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

the same issue as described for index.php appears in portal.php also in MyBB 1.6.3. The last change of portal.php has been in MyBB 1.6.1.

I removed the same code-block as recommended for index.php in the related thread.

Removed code:
// If we can see invisible users add them to the count
    if($mybb->usergroup['canviewwolinvis'] == 1)
    {
        $onlinecount += $anoncount;
    }
    
    // If we can't see invisible users but the user is an invisible user incriment the count by one
    if($mybb->usergroup['canviewwolinvis'] != 1 && $mybb->user['invisible'] == 1)
    {
        ++$onlinecount;
    } 

Then it works fine Smile.