The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
i want to reduce the counter "registered users" in the footer if the admin (hidden) is online. Is it possible with the Hook "forumhome_loggedinuser" ? Can someone give me a tip how I can implement this? Thanks peterherman |
#2
|
||||
|
||||
![]()
Have a look here on how to hide the admin at the online list
https://vborg.vbsupport.ru/showthread.php?t=230238 |
#3
|
|||
|
|||
![]()
I think this should work (using forumhome_loggedinuser):
Code:
if (!fetch_online_status($loggedin)) { $numberregistered--; } |
#4
|
|||
|
|||
![]()
@borbole
thanks for the tip! @kh99, The Code works perfect! Thank you very very much. Regards peterherman |
#5
|
|||
|
|||
![]()
Hello,
sorry, but i have one more question. The counter on the forumhomepage is correct now. But the page "who is online" counts one more registered member as the forum homepage. See also the attached pictures. Is the problem to solve? Thanks |
#6
|
|||
|
|||
![]()
Try creating a new plugin using hook online_complete and this code:
Code:
$numbermembers -= $numberinvisible; |
#7
|
|||
|
|||
![]()
Sorry kh99, but the Code doesent work.
With this code the counter in "who is online" is two numerator to large. (from the perspective of an registered user) Example: One registered Member is online and the (hidden) Administrator is online. Then the counter says "3 registered members online" From the perspective of the admin is all ok. |
#8
|
|||
|
|||
![]()
Seems to work for me - are you sure you got the code right? I don't see how it could increase the member count.
|
#9
|
|||
|
|||
![]()
I have test it again, but it does not work.
I create a new plugin with th hook online_complete, then i put the code in and activate it and save it. Then i see, that the counter increase the member count. After, i deactivate the plugin, then the counter decrease. |
#10
|
|||
|
|||
![]()
Hmm...what version of vb do you have?
As a test, try temporarily changing the code to this: Code:
$numbermembers = "$numbermembers, $numberguests, $numberinvisible, $numbervisible"; |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|