View Full Version : Make invisible users visible to Super Moderators and Moderators.
SWFans.net
11-12-2001, 10:00 PM
Very simple, but seeing there was a request for it, I figured I would go ahead and release how I was able to accomplish this in vB 2.0.3. Not sure if it is the same in 2.2 or not, but it probably isn't too much different regardless.
EDIT: Updated instruction attachment for inclusion of complete 2.2.0 modifications.
EDIT2: See Post #29 (https://vborg.vbsupport.ru/showthread.php?s=&postid=226179#post226179) For the fix for fourmdisplay.php for versions 2.2.2 and 2.2.3. :)
EDIT3: see Post #48 (https://vborg.vbsupport.ru/showthread.php?postid=260544#post260544) For the new install file for vB version 2.2.6
dirgotronix
11-13-2001, 09:06 PM
Awesome, just what I needed.
Might make a few adjustments though:
dunno what usergroupid 7 is, but it's not anything on mine.
On my forum, admin is 6, supermod is 5, and mod is 9. I chose not to allow mods to see, so all I had to add was 'or $bbuserinfo[usergroupid] == 5' 'and $bbuserinfo[usergroupid] != 5' etc.
Worked like a charm though, on 2.2.0.
Thanks!
SWFans.net
11-13-2001, 09:38 PM
My group ID designations as per the instructions.
Super Mods - 5
Admins - 6
Mods - 7
I wasn't aware that they would be different from board to board. I'll modify the instructions to reflect the group number designations and how to find your own for those who don't know. Great news hearing that it works in 2.2 as well. :)
SWFans.net
11-14-2001, 01:00 AM
A little time to think about it, makes me wonder if making this hack complete for vB version 2.2 wouldn't require a change to forumdisplay.php, so that the "Currently browsing this forum" display would show invisibles to Mods and super Admins as well. I'm not sure since I don't use 2.2. The modification would probably be very similar to the one in index.php though I'm guessing.
dirgotronix
11-14-2001, 02:23 AM
Hey, you're right. Here's the code for 2.2.0:
Around line 647:
find
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) {
Replace with:
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5) {
SWFans.net
11-14-2001, 02:47 AM
Originally posted by dirgotronix
Hey, you're right. Here's the code for 2.2.0:
Thanks. I'll add the code to the attachment. :)
lol can someone speel out what this hack does I'm not getting it. Where can the mods etc etc see the invisible users?
SWFans.net
11-14-2001, 04:25 AM
It is only effective if "Who's Online" is turned on. If it is, they will be able to see the invisible users within both the display on the index and within the display in the Who's Online Activity window. And also in the "Users Browsing this Forum" display in version 2.2.0, normally located at the top of the forums.
lol thanks, great hack... I just won't tell my members about it!
SWFans.net
11-14-2001, 04:59 AM
Mine don't know either. >=) Its good for keeping an eye on trolls and spammers though. :)
Dark Blaze
11-30-2001, 11:30 AM
Nice hack :)
I'm going to install it very soon indeed.
trainer
12-07-2001, 05:30 PM
does this work for 2.2.1 ??
thanks
Dark Blaze
12-07-2001, 06:06 PM
Originally posted by trainer
does this work for 2.2.1 ??
thanks
Yes, I think it does work, since it works for 2.2.0
trainer
12-07-2001, 06:08 PM
Dark Blaze thanks for the quick reply!
Dark Blaze
12-07-2001, 06:17 PM
Originally posted by trainer
Dark Blaze thanks for the quick reply!
no problem, anytime :)
SWFans.net
12-07-2001, 11:59 PM
I'm using it in 2.2.1. :)
Destee
12-29-2001, 04:12 AM
Thank You SWFans.net!
mas404
12-29-2001, 06:17 AM
i need this hack
but i am using 2.2.1 and i does't work!! :(
i don't find the line
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) {
in my forumdisplay.php file
so what can i do ?
please help me
Destee
12-29-2001, 06:21 AM
I'm using 2.2.1 also ... all lines referenced in the hack are there
look again
Erwin
01-13-2002, 02:23 AM
Yup, it works for 2.2.1 alright. Thanks! My mods will be pleased... :)
SWFans.net
01-16-2002, 05:25 AM
:D
Pilot
02-03-2002, 10:47 AM
This hack is essential (and should be standard in VB),
However it's not hard to apply BUT in 2.2.2 the ForumDisplay code
has changed and the hack instructions don't fit.
Can someone update it for 2.2.2 please?
SWFans.net
02-03-2002, 05:45 PM
Find:
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {replace with:if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid']==7 or bbuserinfo['usergroupid']==5) and $bbuserinfo['userid'] != $forumuser['userid']) {
usergroup 7 being the mod group on my board and usergroup 5 being supermods.
I myself had some problems with the forumdisplay.php file from 2.2.2 not showing older sticky threads and just went back to using the forumdisplay.php file from 2.2.1.
There was a fix for that check around on here. Also there is an optimized version of the showthread 2.2.2 on here also. You need the optimized showthread then apply the stickey fix.
Joshua Clinard
02-05-2002, 06:26 PM
When I make that change, I get a parse error on line 688.
SWFans.net
02-05-2002, 07:37 PM
Here is the code I had in mine, since my regular mod group has supermod abilities and I have no supermods persay:
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid']==7) and $bbuserinfo['userid'] != $forumuser['userid']) {
Hellburn
03-03-2002, 03:34 PM
When I make that change, I get a parse error on line 688 in the forumdisplay.php. Can everybody fix that problem. I have vBB 2.2.2
melondog
03-05-2002, 10:16 PM
here is the fixed code. I think it should work....
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7) and $bbuserinfo['userid'] != $forumuser['userid']) {
admiralapril
03-09-2002, 09:45 PM
I am having a very hard time getting this hack to work in v2.2.3b. Has anyone been successful at installing it on this newest version?
I had it running fine on v2.2.1, no problems.
I'm pretty sure that I followed all of the instructions but my moderators still aren't seeing those invisible. :confused: :frus:
Joshua Clinard
03-09-2002, 10:32 PM
Did you try that code by melondog. I haven't verified if a mod can see them, but it did get the error message to go away.
admiralapril
03-09-2002, 10:40 PM
Originally posted by Joshua Clinard
Did you try that code by melondog. I haven't verified if a mod can see them, but it did get the error message to go away.
I haven't gotten any kind of error message. I've put in the modifications for the hack, uploaded in ASCII, but my moderators still cannot see invisible members. I did a test myself, created a moderator, logged in, and didn't see the invisible members even though I knew they were there. No invis on the Who's Online page, no invis on the index at the bottom, where I have my online members listed. When I log back into my admin account, they show fine (which they should). It's like I hadn't modified the .php pages at all.
What am I doing wrong? Does this work in 2.2.3b?
BTW, my admin and moderator user group numbers are the same as the original poster's.
Joshua Clinard
03-09-2002, 10:43 PM
Well melondog is my tech admin, and I just verified that his code does indeed work. I don't know what else to tell you.
SWFans.net
03-10-2002, 03:54 AM
Originally posted by melondog
here is the fixed code. I think it should work....
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7) and $bbuserinfo['userid'] != $forumuser['userid']) { Thanks melondog. That code works for me. :)
machiavelli33
03-30-2002, 02:18 AM
I'm still getting error:
Call to undefined function: phperror_reporting()
after following the instructions and updates. I guess it just doenst work with 2.2.4
SWFans.net
03-30-2002, 07:02 PM
It is functioning in 2.2.4 for me with the modification that melondog posted in post #29. I dont know what the error you are getting may mean, but I would suggest starting with a clean online.php and forumdisplay.php, and giving it another shot.
dotagious
04-04-2002, 05:51 AM
Anyone know how I can do this on 2.2.5 ?
SWFans.net
04-05-2002, 06:21 AM
The same way as for 2.2.4
gvelazquez
04-08-2002, 10:25 PM
Thanks, I just used that hack on 2.2.5, works great. I added Super Moderators (usergroup 5) to the code and they can see invis now.
-=dm=-
04-17-2002, 11:31 PM
working fine in 2.2.4 just removed the moderators group.
only admin and Super mod. can view invisible members.
I got one error in online.php
if ($bbuserinfo[usergroupid] == 6 or $bbuserinfo[usergroupid] == 5) {
but I changed the "or" to "OR" and bingo:D now it working fine :)
thanx for a nice hack :)
dm
Chris M
04-18-2002, 06:13 PM
"OR" should always be in capitals...
However, "and" should always be in lower case...Weird...
Satan
Joshua Clinard
05-01-2002, 08:00 PM
The following code is not found in forumdisplay.php
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) {
SWFans.net
05-02-2002, 07:23 PM
Originally posted by Joshua Clinard
The following code is not found in forumdisplay.php
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) { See post #24
pentium
05-31-2002, 09:20 PM
could someone post the entire right hack code for 2.2.5 please?
Sorry, I don't understand English very well, too difficult to follow all the posts about.
Thanks.
Or maybe sende it to me by mail:
layout@fastwebnet.it
Joshua Clinard
06-01-2002, 04:52 AM
Originally posted by SWFans.net
See post #24
So , your saying that I have to use forumdisplay.php that came with 2.2.2?
I cannot do that. I don't have it anymore. If you mean something else, please advise. Also, can you please update the hack instructions to fix any problems....Especially the one in Post 29.
James Cridland
06-09-2002, 04:16 PM
A purely selfish post... I was trying to find this and failed.
Adding the word "hidden" will help people looking for "make hidden users visible to moderators" or something.
Which I've now done.
SWFans.net
06-12-2002, 03:08 AM
I'll look into updating the instriction file for vB 2.2.6 here in the next day or two. :)
SWFans.net
06-12-2002, 03:28 AM
It was easier than I thought it would be, so its done.
Here is the new file for the changes required in 2.2.6
inetd
06-12-2002, 04:48 PM
How i need make changes if i installed "Users browsing this thread"?
inetd
06-12-2002, 04:49 PM
Good hack!
/me click 'install' button
SWFans.net
08-06-2002, 10:33 AM
Originally posted by inetd
How i need make changes if i installed "Users browsing this thread"? I'm not certain as I don't have that hack installed myself. Sorry.
The hack should be able to be installed as is, but it won?t function in the "Users Browsing this thread"?at least that?s my thought.
Learner29
10-13-2002, 03:02 AM
Originally posted by SWFans.net
It was easier than I thought it would be, so its done.
Here is the new file for the changes required in 2.2.6
well thank you, that was great, but I could not find the text to replace in the forumdisplay.php
SWFans.net
10-13-2002, 04:24 AM
Here it is for 2.2.8 in the forumdisplay.php file. The usergroupIDs are those used in the text file attached in the first and 48th post:
Find (line # 698 in the original source file)
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
Replace with
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 7) and $bbuserinfo['userid'] != $forumuser['userid']) {
Learner29
10-13-2002, 10:37 AM
Originally posted by SWFans.net
Here it is for 2.2.8 in the forumdisplay.php file. The usergroupIDs are those used in the text file attached in the first and 48th post:
Find (line # 698 in the original source file)
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
Replace with
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 7) and $bbuserinfo['userid'] != $forumuser['userid']) {
that is VERY kind of you SWFans.net
thank you so much ....
Sweet Cheeks
11-27-2002, 03:09 AM
Thanks a bunch for such an awesome hack :cool:
Quick question, is there a way that admin can still be invisible to anyone below them (but still be visible to other admins?)
Thanks in advance for your help :classic:
SWFans.net
11-27-2002, 04:05 AM
Originally posted by ~*Julie*~
Thanks a bunch for such an awesome hack :cool:
Quick question, is there a way that admin can still be invisible to anyone below them (but still be visible to other admins?)
Thanks in advance for your help :classic: The closest thing to that I know of is this mod by Firefly, which hides a user of your choice's location.
https://vborg.vbsupport.ru/showthread.php?s=&threadid=31938
mhardin
12-08-2002, 09:24 PM
It doesn't seem to work in 2.2.9. :disappointed:
Does anyone have fix for 2.2.9?
Thanks in advance........
SemperFidelis
01-25-2003, 02:23 PM
Can anyone out there confirm that this hack does indeed work for 2.2.9 ?
An possible provide a new install.txt ?
Thanks
:)
raynett
02-05-2003, 11:20 AM
I just installed it on 2.2.9 with no problems (following instructions on post #48 attachment).
Btw, thanks SWFans.net! This was my first added hack. :)
Quikdeth
03-04-2003, 02:51 AM
I'm trying to find out the groupid's for mine. I used the status bar and hovered over the edit... but my status bar isn't long enough to see the end of the url. What can I do?
wolfgang2
04-16-2003, 07:38 PM
it is not working on 2.3.0:(
Who can help? thanx a lot!
Bison
04-17-2003, 01:25 PM
Installed, and works on 2.2.9!
wolfgang2
04-17-2003, 06:11 PM
could somebody help me PLLEEEAAASSSEEEEEE...
I really would like to have this feature for my mods...
wolfgang2
04-21-2003, 09:20 AM
it is not working on my version 2.3.0
there are no errormessages and the forum is going well.
so i can not explain to myself why it is not working:(
shoppingtelly
05-17-2003, 11:07 AM
This would be a really usefull feature but can't get it to work on 2.2.0
midnightz
05-22-2003, 05:11 AM
I guess there is no way to change the code lightly where supers and mods see invvisibles, but not the admin. I choose to reamin fully hidden for protection of my board.
I would think it would be just a edit in the hack, can anybody help? If not I must uninstall this wonderful hack.
Thanks,
midz
extremeskins24
06-27-2003, 04:30 PM
Hey. I've been attempting to install this hack for 2 hours and I cannot figure out why it is not working. I'm sure it's something simple, and I'm just missing it...
Here's a code snippet..
if ($loggedin['invisible']==0 or $bbuserinfo['usergroupid']==6 or $bbuserinfo['usergroupid']==5 or $bbuserinfo['usergroupid']==7) {
$numbervisible++;
$userid = $loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers = \"".gettemplate('forumhome_loggedinuser')."\";");
}
while ($loggedin=$DB_site->fetch_array($loggedins)) {
$numberregistered++;
$invisibleuser = '';
if ($loggedin['invisible']==1 and $bbuserinfo['usergroupid']!=6 and $bbuserinfo['usergroupid']!=5 and $bbuserinfo['usergroupid']!=7) {
continue;
}
$numbervisible++;
$userid=$loggedin['userid'];
if ($loggedin['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
}
if ($loggedin['usergroupid'] == 6 and $highlightadmin) {
$username = "<b><i>$loggedin[username]</i></b>";
} else if (($mod["$userid"] or $loggedin['usergroupid'] == 5) and $highlightadmin) {
$username = "<b>$loggedin[username]</b>";
} else {
$username = $loggedin['username'];
}
eval("\$activeusers .= \", ".gettemplate('forumhome_loggedinuser')."\";");
}
My usergroupid's are correct.
Thanks for the help!
muzicmax
07-10-2003, 03:13 AM
Does this hack work with vBulletin Version 2.3.0 ?
ssabmud
08-16-2003, 07:03 PM
This isn't working for me in 2.3.0. Anyone know what needs to be done?
Quikdeth
10-11-2003, 03:08 PM
bump. I have 2.3.2 I had it before the update, but would like to re-install on this new version.
NeveAddict
10-25-2003, 09:49 PM
Anyone got a working version for 2.3.2 already?
Alas-Digitales
12-03-2003, 08:12 PM
Does this hack work with version 2.3.3?, If not, is there any hack with the same features, that could work with this version?
Thanks
rowanthemanfish
01-12-2004, 12:31 PM
Has anyone managed to get this working?
I could really do with it being on 2.2.3
muse.mu
01-14-2004, 05:27 PM
Will this be updated for vB2.3.4 anytime soon, or are you laying off to work on vB3 stuff?
Cheers.
stark427
02-05-2004, 02:00 AM
I seems that it works ok at my 2.3.3 forum (It is the 2.3.3 with the 2.3.4 Calendar.php file - that security fix).
I used this version of the hack
https://vborg.vbsupport.ru/showpost.php?p=260544&postcount=48
EDITED :
Except one small bug (?).
A moderator can see other invisible users at the "Users Browsing this Forum" line, but not himself.
Overall great hack
If I encounter any probs I will report them.
Surprising this sorta thing didn't come with the original VB. *Clicks Install*
say-what
08-04-2004, 12:22 AM
I just installed this on a 2.3.0 board only for the super mods - they love it. But, for 2.3.0 (and maybe some of the other 2.2.x versions) there are 3 more changes that need to be made.
To make the moderator visible to himself when browsing a forum, you need to do the following in forumdisplay.php
FIND:
if ((!$bbuserinfo['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] <> 0) {
REPLACE WITH:
if ((!$bbuserinfo['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7) and $bbuserinfo['userid'] <> 0) {
To make invisible members visible when viewing a thread, open showthread.php
FIND:
if ((!$threaduser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $threaduser['userid']) {
REPLACE WITH:
if ((!$threaduser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 7) and $bbuserinfo['userid'] != $threaduser['userid']) {
FIND:
if ((!$bbuserinfo['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] <> 0) {
REPLACE WITH:
if ((!$bbuserinfo['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5 or $bbuserinfo['usergroupid'] == 7) and $bbuserinfo['userid'] <> 0) {
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.