vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=130538

IP Viewing in posts for particular Second Group
by Makc666
01 Nov 2006 17:17

What this modification for?
As you now in VB 3.6.2 only these types of users can see users' IPs in posts:
1. Admins
2. Super Moderators
3. Moderator of particular Forum

But imagine that you have a Second Group of users called Workers
This Group has about 50 people.
And you want them to see IPs of other Registered Users.
What you can do?
- Add them to Admins? - Of course NO!
- Add them to Super Moderators? - Of course NO, as you don't want them all to delete any post they like.
- Add them all to Moderator one by one? - I think you will become nervious after 10 addition. Also it will not be cool to have 50 Moderator for some Forum.

And VB 3.6.2 doesn't have Usergroups as Moderators!

So here comes this modification!

* You just add two parts of code.
* Set during modification IDs of Second Groups you want to see IPs in posts

And you go :)

Original post here:
http://www.vbulletin.com/forum/showthread.php?t=207007

Here I post only modification for Second Groups!

My main idea is to allow to see IPs to Second Groups you set.

#
#-----[ OPEN ]------------------------------------------
#about line 836
includes/class_postbit.php
#
#-----[ FIND ]---------------------------------
#

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

#
#-----[ AFTER, ADD ]---------------------------------
#

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

#
#-----[ FIND ]---------------------------------
#

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

#
#-----[ AFTER, ADD ]---------------------------------
#

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

This is for Secondary Group IDs #14 and #26
$arr_membergroupids = array("14" => 0,"26" => 0);
You have other? Change "14" and "26" to one you need!

So, this one will only show an icon https://www.vbulletin.org/forum/external/2011/05/14.gif and display IP on mouse hover in posts...

But when you click on icon https://www.vbulletin.org/forum/external/2011/05/14.gif you will get a warning message that access is denied.

Lets "fix" this one!

#
#-----[ OPEN ]------------------------------------------
#
postings.php
#
#-----[ FIND ]---------------------------------
#

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

#
#-----[ REPLACE WITH ]---------------------------------
#

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#

This is for Secondary Group IDs #14 and #26
$arr_membergroupids = array("14" => 0,"26" => 0);
You have other? Change "14" and "26" to one you need!

P.S. As you understand (I hope) "14" and "26" must watch the same as in first part of modification :)

Makc666 01 Nov 2006 17:19

Reserved =)

Hornstar 01 Nov 2006 23:51

Why doesnt vb have this in 3.6.2? This should be default by the sounds of it.
[
Well another option (not as good) is giving that usergroup permission to view the whos online and then give them permission "Can View IP Addresses" But I think you should let vb know this, as it should be a default option.

Thanks.

Makc666 02 Nov 2006 11:29

Quote:

Originally Posted by hornstar1337
Why doesnt vb have this in 3.6.2? This should be default by the sounds of it.

I fully agree with you!

Quote:

Originally Posted by hornstar1337
Well another option (not as good) is giving that usergroup permission to view the whos online and then give them permission "Can View IP Addresses" But I think you should let vb know this, as it should be a default option.
Thanks.

You want to unify/join my modification with "Can View IP Addresses" option?


All times are GMT. The time now is 03:41.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.