vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Remove Admin from who's online counter (https://vborg.vbsupport.ru/showthread.php?t=284083)

peterherman 06-07-2012 05:36 PM

My vb version is 4.1.10

I have test it with the new code.
The result is the same as with the first code.

kh99 06-07-2012 05:40 PM

Quote:

Originally Posted by peterherman (Post 2337528)
My vb version is 4.1.10

Oh, that's the trouble. Try this:

Code:

$numbervisible -= $numberinvisible;

In fact it should be OK to leave both lines in there, and then it should still work if you upgrade some day.

peterherman 06-07-2012 05:51 PM

Thank you for your big patience with me, but it does not work yet.
The counter increase the member count now with one point not with two.

kh99 06-07-2012 05:58 PM

What does it say if you disable that plugin? I think there was a bug in online user counts but I'm not sure when it got fixed. I also don't have vb4.1.10 installed (I'm trying to install it now) so I haven't been able to try it myself.

peterherman 06-07-2012 06:12 PM

If i disable this plugin then the counter increase the member count two numerator.

kh99 06-07-2012 06:15 PM

Yeah, I think that was a bug in vb4.1.10. I have a completely fresh install with only 2 users, and the Who's Online page shows 3 Members (but only when one of them is invisible).

Try this code:

Code:

$numbervisible -= (2 * $numberinvisible);

peterherman 06-07-2012 06:50 PM

Yeaaar, it works now perfect.
Thank you very much and thanks for your patience.
I think i make an update in a few weeks, then i try the first Code.

Thank you an regards
peterherman


All times are GMT. The time now is 02:13 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01090 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete