By modul on
It's not so difficult to show a list of the current visitors. There are modules for that, and the code isn't too difficult to bake yourself.
But is it also possible to have a list of the current visitors PLUS the pages (oh well, the nodes) they are visiting??? If so, of course: how???
Comments
I wrote a module that does
I wrote a module that does something similar that involves tracking user's node visits.
Basically you need a module to stash away the last visited page for each user in a table. The crux of it is this:
If you only care about node
If you only care about node visits a simpler approach would be to use hook_nodeapi and the case where $op = 'view' since it gets rid of the path parsing.
The problem with this is that
The problem with this is that other nodes can be loaded on the same page load (through views, etc.), and you don't know if it's for the main content or not.
The last parameter tell you
The last parameter tell you if it's a page load. And if you don't trust it you can always compare $node->nid to arg(1).
Ah, indeed. You'll still
Ah, indeed.
You'll still need to check for page prefetching by the browser (only firefox as far as I know).