0
I need to run a statistic for user logins but don't want the administrator logins to show in the results. Therefore I would like to exclude (!) certain user ids from the statistics. How can I do this?
Thanks,
Uwe
Thanks,
Uwe
Responses (4)
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Yes I see what you mean but it's not that easy...
are you a PHP coder?
if you are: basically you need to go to the /plugins/contentstats/com_user.php and in line 64 approx you have to retrieve the user like this:
$user =& JFactory::getUser();
you will have the user id in $user->id, and you basically need to check if the ID is from an admin, and if it is, set
$data['register'] = false ;
do you know what I mean?
if you're not a coder you won't know what I'm talking about...! -
Accepted Answer
0Hi there,
We're trying to do something similar. I have some basic PHP experience but I'm not quite sure what the registerStatistic function does or how your suggestion works.
We have a list of user IDs to exclude. Would I need to create a foreach loop and then loop through the list of IDs and running a snippet of code that removes them from the users that are registered?
Any help would be great!
Thanks,
Tim
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »