Version: 1.00, by Makc666
Developer Last Online: Sep 2019
Category: Show Thread Enhancements -
Version: 3.6.5
Rating:
Released: 10-31-2006
Last Update: Never
Installs: 7
Code Changes
No support by the author.
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
// check moderator permissions for getting ip
if (!can_moderate($threadinfo['forumid'], 'canviewips'))
{
print_no_permission();
}
#
#-----[ REPLACE WITH ]---------------------------------
#
Code:
// check moderator permissions for getting ip
$arr_membergroupids = array("14" => 0,"26" => 0);
if ((!can_moderate($threadinfo['forumid'], 'canviewips')) AND (!array_key_exists($vbulletin->userinfo['membergroupids'], $arr_membergroupids)))
{
print_no_permission();
}
// check moderator permissions for getting ip
//if (!can_moderate($threadinfo['forumid'], 'canviewips'))
//{
// print_no_permission();
//}
#
#-----[ 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
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
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.
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?