Jump to content

Download: Hide Admin Ip at Online List


Recommended Posts

File Name: Hide Admin Ip at Online List
File Submitter: NenaDice
File Submitted: 15 Dec 2010
File Updated: 15 Dec 2010
File Category: Hooks and Plugins

The way it is now the IP of the admins are hidden in posts but they are visible at the online list. This hook will hide the Ip of the Admin Group there as well.

After you install the hook.xml file go to System Settings->Security and Privacy and all the way to the bottom you will
see a new setting called: Hide Admin Ip at Online List. Set it to Yes if you would like to hide the IP of the admins at the online list.

Click here to download this file

Link to comment

I would strongly recommend against the method you're using to make this hook work. You're hard-coding group 4 as the Admin group, and that is not always the case. You're also using the query() function when you should be using the $this->DB->update() function. But I wouldn't even be doing that querying either. Instead, I'd recommend doing a data hook on the 'onlineUsersListData' option to loop through the sessions it's pulling and replacing just the values in the array the data hook gets access to, rather than updating the sessions table on every page load.

Link to comment


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...