December 15, 2010 in Marketplace
File Name: Hide Admin Ip at Online ListFile Submitter: NenaDiceFile Submitted: 15 Dec 2010File Updated: 15 Dec 2010File 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
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.
This topic is now archived and is closed to further replies.
Started Thursday at 01:08 PM
Started 24 minutes ago
Started 4 hours ago