Dirty Butter Posted March 30, 2012 Share Posted March 30, 2012 Is there any way to leave bot access out of the users online stats page in Admin? Quote Link to comment Share on other sites More sharing options...
harrisorganic Posted December 16, 2013 Share Posted December 16, 2013 Yep, Dirty Butter, I agree, looking at the user Online stats to see that the bots have been surveying your site with all listed with time of 0.0 seconds. Suggest a time gate be inserted so that the zero seconds are removed/ not displayed. Duncan Quote Link to comment Share on other sites More sharing options...
bsmither Posted December 16, 2013 Share Posted December 16, 2013 I understand that you wish to simply suppress the listing of any user online where the Session Length is zero? If that is the case, please try this: In the admin skin template file statistics.index.php, about 20 lines up from the bottom, find:{foreach from=$USERS_ONLINE item=user} Make that line look like:{foreach from=$USERS_ONLINE item=user}{if empty($user.session_length)}{continue} PHP considers 0.0 to be 'empty'. As such, the {continue} will skip processing this record of the recordset and go to the next. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.