Posted by tourguide on May 22, 2007 at 10:32pm
So I looked for a module to handle this and no luck.
My question is if I can set up a who's-looking-at-this-node-page ... not who's online for entire website. For example: similar to when you view a forum and it shows what Topic the user is currently reading.
Here is some research I've done but not sure how to manipulate for what Im trying to figure out.
1. The History table stores when a user last visited a node. Something like: SELECT uid from HISTORY where timestamp <= something blah blah
2. The Who's-Online.module that is a Block... (I know that it has a configure setting for user activity after someone leaves the website and still counted as online.)
Comments
Node_Load (services)
Need the UID online status for NID to be passed for services integration. Also because of bots and things of that nature there should be a toggle setup to track registered users only, or both registered users and guests.
-
Kyle
-
Kyle
administer > block>> Enable who's online
Steps
administer > block>> Enable who's online
that will do
Who's Online - or UID with "real-time" NID Display/View
No, this does not solve the issue - Im wanting to display what "node" the "userID" is currently viewing. The Who's Online Block steps you mention enables database queries to gather online user lists (ie: server count) - it does not show what node each UID is viewing.
Something like print "timestamp" when "nid" IS ACTIVE/LIVE from "uid" - then print "timestamp" when "nid" is NOT ACTIVE/NOT LIVE from "uid" -
Also, some more research from my original post:
3. http://drupal.org/project/quickstats is a simple and efficient (from a database point of view) way to count pageviews of nodes. This adds a new table to the Database but not sure if it has different attributes (CURRENT_TIMESTAMP) than the History table? Is current_timestamp different than timestamp?
Please any comments welcome~! (ie: things to look out for, possible solution ideas, etc...)
-
Kyle
-
Kyle
please share when you are done
sorry tourguide,
I don't know how to do that....please share the trick it will be useful for newbies like me
Thank you