Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mod: Allow custom group to view IP in Active_Users
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mod: Allow custom group to view IP in Active_Users

 Post Reply Post Reply
Author
iSec View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 February 2005
Status: Offline
Points: 1140
Post Options Post Options   Thanks (0) Thanks(0)   Quote iSec Quote  Post ReplyReply Direct Link To This Post Topic: Mod: Allow custom group to view IP in Active_Users
    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
Back to Top
StarDust View Drop Down
Senior Member
Senior Member


Joined: 14 May 2007
Location: Bangladesh
Status: Offline
Points: 310
Post Options Post Options   Thanks (0) Thanks(0)   Quote StarDust Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2008 at 3:07am
This is a nice mod. Must come in handy.
Thanks iSec
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.