vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Make invisible users visible to Super Moderators and Moderators. (https://vborg.vbsupport.ru/showthread.php?t=32386)

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 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

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
Code:

                if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) {
Replace with:
Code:

                if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6 or $bbuserinfo['usergroupid'] == 5) {

SWFans.net 11-14-2001 02:47 AM

Quote:

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. :)

LuBi 11-14-2001 04:12 AM

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.

LuBi 11-14-2001 04:31 AM

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. :)

LuBi 11-15-2001 06:58 AM

Great hack! thanks!

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

Quote:

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

Quote:

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
PHP Code:

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:

Code:

if ((!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) and $bbuserinfo['userid'] != $forumuser['userid']) {
replace with:
Code:

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.

LuBi 02-03-2002 06:53 PM

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:

Code:

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

Quote:

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

Quote:

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 don’t 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
PHP Code:

if ($bbuserinfo[usergroupid] == or $bbuserinfo[usergroupid] == 5) { 

but I changed the "or" to "OR" and bingo:D now it working fine :)

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
  • Page Generation 0.01906 seconds
  • Memory Usage 1,817KB
  • 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
  • (5)bbcode_code_printable
  • (2)bbcode_php_printable
  • (5)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
  • (40)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