Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hello
I have turn off the 'Track IP addresses' in the user states setting page. but still there is a 'IP addresses' tab showing in the user account page. how can I remove this tab please ?
Thanks
Comments
Comment #1
Liam McDermott CreditAttribution: Liam McDermott commentedIt's a View, so you should go to Administer -> Site building -> Views then disable user_stats_ips_by_user and user_stats_users_by_ip. If the menu item still appears try clearing the site cache before commenting here again.
Am changing this to a bug, since the View should be disabled when you switch off IP address tracking.
Comment #2
Liam McDermott CreditAttribution: Liam McDermott commentedComment #3
igorik CreditAttribution: igorik commentedHi
This tab would be shown only to people with appropriate mermissions, when I turn off all permissions for this module, still ALL my users, and anonymous can see this tab and what is worse they have access to data inside this tab.
This module looks promising, but I bcause this bug had to replace with Troll module. It works similar, with tab "Troll track" but it is shown correctly only roles with appropriate permissons.
thanks
igor
Comment #4
Liam McDermott CreditAttribution: Liam McDermott commentedThis is not an issue relating to permissions, the problem here is the admin unchecks the 'Track IP Addresses' checkbox on the module configuration page but this tab is still visible.
I can't reproduce your problem either, with the last stable version of User Stats (1.0-RC1). The permissions check is definitely there and working, you can see for yourself in the Views file:
views/user_stats.views_default.inc
.Since User Stats is working correctly by default, something must have gone screwy on your installation, my suggestion is to disable, uninstall then delete the User Stats files. Then go to Administer > Site building > Views and delete user_stats_ips_by_user and user_stats_users_by_ip (plus any other user_stats views you can find). If there aren't any Views to delete, then that should be fine.
Once you've deleted User Stats and any Views, get a fresh copy and install it. Hopefully that will have fixed the issue. If not, please open a new support request as we're both hijacking this unrelated bug report at the moment. :)
Comment #5
marko3 CreditAttribution: marko3 commented@Liam McDermott
Deleting the views and flushing cache solved my problem. Withouth needing to reinstall the module. Cheers man