|
Mod: Allow a custom group to view users' IP addresses within the Active Users page
Author: isec
Description: The following modification was done to allow a specific forum group to view users IP addresses within the Active Users page.
Please Note:
* In this Mod we will also disallow the default moderator group from viewing IP addresses
* By default, Admin and moderator groups are able to view IP addresses within the Active Users page. There is no need to apply this mod if you do not want a different group to see users IP addresses within Active Users.
* The group for which you want to grant this permission has to be an existing group.
* The example name of a custom group used in this mod is: administrator
To apply this mod, the following files will be modified:
- Open the file includes/global_variables_inc.asp
- Add this code along with other variables under line 63: Dim blnAdministrator
- Open the file common.asp
- Add this code under line 160:
If intGroupID = 15 Then blnAdministrator = True > See notes at the bottom of this post to determine group ID
- Open the file active_users.asp
- Around line 295 find the following code:
If blnAdmin OR blnModerator Then Response.Write(vbCrLf & " <td nowrap><a href=""javascript:winOpener('pop_up_IP_blocking.asp?IP=" & strActiveUserIP & strQsSID2 & "','ip',1,1,425,350)"">" & strActiveUserIP & "</a></td>")
- Modify the above value in red to: If blnAdmin OR blnAdministrator
- Save and close all 3 files
* Note: The values in blue are all dependant on your environment. The value Administrator can be replaced with the name of the group you want to grant IP viewing permission to.
Determining group ID:
The value 15 MUST be replaced with the number corresponding to the group in question. To determine a group ID number, login to your forum admin area, click on the "Group Admin" link, and click the group name in question, i.e. Administrator in this example, and get the value from the page url within the address bar: 
------------- "When it gets dark enough, you can see the stars"
-Charles A. Beard
|