Closed (outdated)
Project:
User Visits
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
10 Jul 2008 at 01:50 UTC
Updated:
16 Mar 2022 at 10:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
michelleUser visits would need to be adapted to work when the user profile page is overridden by panels. Moving this to that queue.
Michelle
Comment #2
sanduhrsSo, how would you determine that a panel overrides a user profile?
Comment #3
dropchew commentedRight, I have the same problem. Hope this can be enhanced to work with APK. Subscribe
Comment #4
michelleChanging the title to be more accurate. This isn't an issue with APK; it's an issue with the panels override. I'll point sdboyer here and maybe he'll have an idea.
Michelle
Comment #5
ibexy commentedgot same problem subscribing...
Comment #6
mariusooms commentedActually...it is even broader than that. Visits are only recorded on profile visits, whenever you use content as profile solutions, the module does not count the visits. For example also by using the content profile module in Drupal 6.
Any clue as how to make the module support a wider range of visit situations would be very appreciated.
Regards,
Marius
Comment #7
minesota commentedCan 'statistics' be enabled then for this ? I have not used that module though.
If this is 'content' stats can count the views, which should be equivalent to views ?
If it can be, next thing will be how or where to show the count on the profile page?
This will however not enlist the latest visitors and/or their icons in a block.
Comment #8
rsvelko commentedI am using Advanced Profile Kit (which uses Panels2 (which takes over the profile page and it is no longer a node nor caught by hook_user ... ) )
I figured out that if I make a block like this it would count visits and log them to the user_visits table:
So once again - I am using this in a block in my site - which block I embed in a panel ... It uses the table of user_visits module.
Later I will submit a patch - either embeding this code in a hook or just in a block provided from user_visits - speciffically for those who use Panels2.....
PS For now you will have to change the theme() part at the end to customize the look of the recent visits list ... Just look at what it emits as html and then copy it to the block removing the theme() call. Will be made more flexible later.
Comment #9
michelleJust thought I'd mention for people using APK that the lastest version will display recent visitors to the profile using the logs right out of Drupal core rather than this module. Doesn't do people not using APK any good so that's not a fix for this, but there's a couple APK users on this thread.
Michelle
Comment #10
dawehnerwhy not execute user_visits_latest() on hook_exit and check for the current path
pro:
- less code
- its executed for panels too
cons:
- impossible to use it on alternatives paths
Comment #11
sanduhrsAttached is a patch, that adds an advanced section to the settings page, where one may define a custom path to record.
hook_exit is probably the best to put it.
Please have a look and report back, if its working for you.
Thanks.
Comment #12
dawehnerhere is the same patch for the drupal6 version
Comment #13
sanduhrsMoving version up.
Comment #14
sanduhrs