Shoutbox refresh keeping user(s) logged in?

AppleBag - February 15, 2009 - 11:31
Project:Shoutbox
Version:5.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

I have at least 1 user that I know of (who is on a dsl connection, I am not sure if that factors into it) who doesn't manually logout, and since I have my shoutbox set to refresh every 60 seconds, it is counting as an "action on the site", which keeps the user marked as online, forever.

I have the Who's Online avatar block installed, and I can watch the user moving around as if he were live on the site, and when I look at the tracker/page visits for the user, it shows, for every 60 seconds, this:

View Shouts
shoutbox/js/view

Is there:

a) a way to get this to stop happening, while still keeping my shoutbox set to refresh once per minute? And ..

b) a way to NOT have that logged in the tracker once per minute? It clogs up the tracker and I would also imagine the database.

TIA

#1

disterics - February 25, 2009 - 07:51

http://drupal.org/node/247889 tracks the problem with shoutbox cloggging the tracker because of refreshes.

Not sure about it keeping the user logged in. I can't promise a fix in the next release but I will look around to see if it will be an easy fix.

#2

AppleBag - February 26, 2009 - 05:53

Thanks,

Well, I'm pretty sure this hack won't address the keeping the user logged in since it just filters out the Shout Views from the tracker, but it's a nice start. For anyone interested here is the modification I did to the Statistics.module (D5):

Search for this code (which should be on or around line 239):

while ($log = db_fetch_object($result)) {

just below it, add:

    // Hack by Scott Elblein - Filters out the "View Shouts" addition to the tracker, which clutters up the log.
    if ($log->title != 'View Shouts') {

Then, below this line:

l(t('details'), "admin/logs/access/$log->aid"));

add the closing curly brace. }

The result is, it will show all other events, excluding the View Shouts event.

#3

random4t4x14 - April 30, 2009 - 10:36

will this hack work in d6?

 
 

Drupal is a registered trademark of Dries Buytaert.