Print Page | Close Window

Mod: Allow custom group to view IP in Active_Users

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Modifications
Forum Description: Mod's and Add-on's for Web Wiz Forums.
URL: https://forums.webwiz.net/forum_posts.asp?TID=25686
Printed Date: 28 March 2026 at 5:59pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Mod: Allow custom group to view IP in Active_Users
Posted By: iSec
Subject: Mod: Allow custom group to view IP in Active_Users
Date Posted: 04 May 2008 at 11:28pm
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:
  • includes/global_variables_inc.asp
  • common.asp
  • active_users.asp
  1. Open the file includes/global_variables_inc.asp
  2. Add this code along with other variables under line 63: Dim blnAdministrator
  3. Open the file common.asp
  4. Add this code under line 160:
    If intGroupID = 15 Then blnAdministrator = True
    > See notes at the bottom of this post to determine group ID
  5. Open the file active_users.asp
  6. 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>")
  7. Modify the above value in red to: If blnAdmin OR blnAdministrator
  8. 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



Replies:
Posted By: StarDust
Date Posted: 05 May 2008 at 3:07am
This is a nice mod. Must come in handy.
Thanks iSec


-------------
http://board.ebizbd.net/">Tips, mods and skins for WWF v9.x



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net