Coder Social home page Coder Social logo

Comments (2)

Walter-Correa avatar Walter-Correa commented on June 21, 2024

Until this is corrected I will hide this information in forumdisplay_userbrowsing and showthread_userbrowsing!
<span class="smalltext">{$lang->users_browsing_forum} {$onlinemembers}<!--{$onlinesep}{$invisonline}-->{$onlinesep2}{$guestsonline}</span><br />

from mybb.

dvz avatar dvz commented on June 21, 2024

The canbeinvisible conditions added in #4065:

if($user['invisible'] == 1 && $mybb->usergroup['canbeinvisible'] == 1)

seem incorrect, as they only refer to the viewing user.

We can remove them to fix the count error for users with { invisible = 1 & canbeinvisible = 0 } that may result in -1 because of:

  • mybb/forumdisplay.php

    Lines 337 to 341 in 526feb9

    if($mybb->user['invisible'] == 1)
    {
    // the user was counted as invisible user --> correct the inviscount
    $inviscount -= 1;
    }
  • mybb/showthread.php

    Lines 1617 to 1621 in 526feb9

    if($mybb->user['invisible'] == 1)
    {
    // the user was counted as invisible user --> correct the inviscount
    $inviscount -= 1;
    }

This would still leave updating mybb_users.invisible after usergroup changes.

from mybb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.