Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Dec 2005
    Posts
    142
    Plugin Contributions
    0

    Default Re: Spiders - Filtering from Who's Online?

    Hmmm, just checked And it is set to true.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Spiders - Filtering from Who's Online?

    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!

  3. #3
    Join Date
    Dec 2005
    Posts
    142
    Plugin Contributions
    0

    Default Re: Spiders - Filtering from Who's Online?

    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?

  4. #4
    Join Date
    Dec 2005
    Posts
    142
    Plugin Contributions
    0

    Default Re: Spiders - Filtering from Who's Online?

    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?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Spiders - Filtering from Who's Online?

    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!

  6. #6
    Join Date
    Dec 2005
    Posts
    142
    Plugin Contributions
    0

    Default Re: Spiders - Filtering from Who's Online?

    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?

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Spiders - Filtering from Who's Online?

    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!

 

 

Similar Threads

  1. Enhanced Who's Online Module - how do I see spiders?
    By Bruce1952 in forum All Other Contributions/Addons
    Replies: 13
    Last Post: 30 Jul 2009, 01:08 AM
  2. Weird results from Who's online
    By 5869 in forum General Questions
    Replies: 3
    Last Post: 5 Feb 2008, 09:24 AM
  3. Removing pages from Who's Online
    By Flipside in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Jan 2007, 02:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg