![]() |
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 For the fix for fourmdisplay.php for versions 2.2.2 and 2.2.3. :) EDIT3: see Post #48 For the new install file for vB version 2.2.6 |
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! |
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. :) |
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.
|
Hey, you're right. Here's the code for 2.2.0:
Around line 647: find Code:
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) { Code:
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5) { |
Quote:
|
lol can someone speel out what this hack does I'm not getting it. Where can the mods etc etc see the invisible users?
|
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!
|
Mine don't know either. >=) Its good for keeping an eye on trolls and spammers though. :)
|
Great hack! thanks!
|
Nice hack :)
I'm going to install it very soon indeed. |
does this work for 2.2.1 ??
thanks |
Quote:
|
Dark Blaze thanks for the quick reply!
|
Quote:
|
I'm using it in 2.2.1. :)
|
Thank You SWFans.net!
|
i need this hack
but i am using 2.2.1 and i does't work!! :( i don't find the line PHP Code:
so what can i do ? please help me |
I'm using 2.2.1 also ... all lines referenced in the hack are there
look again |
Yup, it works for 2.2.1 alright. Thanks! My mods will be pleased... :)
|
:D
|
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? |
Find:
Code:
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) { Code:
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid']==7 or bbuserinfo['usergroupid']==5) and $bbuserinfo['userid'] != $forumuser['userid']) { 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.
|
When I make that change, I get a parse error on line 688.
|
Here is the code I had in mine, since my regular mod group has supermod abilities and I have no supermods persay:
Code:
if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid']==7) and $bbuserinfo['userid'] != $forumuser['userid']) { |
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
|
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']) { |
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: |
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.
|
Quote:
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. |
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.
|
Quote:
|
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 |
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.
|
Anyone know how I can do this on 2.2.5 ?
|
The same way as for 2.2.4
|
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.
|
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 PHP Code:
thanx for a nice hack :) dm |
All times are GMT. The time now is 04:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|