Why don't you use the sort options ...
Click on Asc or Desc and it sorts spiders, guests and members for you ...
There are a bazillion other ways to sort as well ...
Why don't you use the sort options ...
Click on Asc or Desc and it sorts spiders, guests and members for you ...
There are a bazillion other ways to sort as well ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
The sort optiosn are ok for a temporary fix and I have been using them, but I would prefer some sort of code option, preferably an admin switch to just not show them at all on the whos online display.
Would it be a smple matter of a chunk of code If User=spider then ignore kind thing?
Ok, looking at the code, the first thing we do code wise when whos online is called is check for bots:
// highlight bots
function zen_check_bot($checking) {
// googlebot.com and google.com
if (empty($checking)) {
return true;
} else {
return false;
}
}
Since we know at the outset who a bot is, wouldn't it be doable to filter out those bots, to not show at all in the list?
Or in my n00bieness, I can't see why it would be undesirable or untenable to code?
It can be done ... by adding an exclusion to the select table first ...
Bots do not have session_id so if you don't pull the blanks you don't see them ...
I have not looked to see what this would do beyond change the display ...
If I were coding for this I would set an option for bots or no bots that can be switched on/off ...
NOTE: there are no overrides for the admin files so backup your files before making changes ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
What do you think about adding another line to this code:
// remove entries that have expired
$db->Execute("delete from " . TABLE_WHOS_ONLINE . "
where time_last_click < '" . $xx_mins_ago . "'
or (time_entry=time_last_click
and time_last_click < '" . $xx_mins_ago_dead . "')");
That stripped spiders out Linda?
It would be easier to just add an exclusion to the select statement for what is going to be listed I think ...
Why mess up the logic of the tables?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I agree Linda, I will look into getting someone to make the tweak for me, as I am dangerously close to be over my head as it is.