iirc, 'last login' is the last time the user actually logged in by supplying their userid and password. "last access" would be last time the user was browsing the site while already logged in. Since users can stay logged in for a period of time, they won't necessary match unless you force users to log in everytime they access the site.
I'd like to be able to sort a views based on node author's last access - so that the most recently logged in and active authors' content will be first. Any idea how this might be accomplished?
1. Create a node view (just do everything except the sort part)
2. Add a relationship to the "node author"
3. Sort now has user fields available including "last access". Add the field to the sort. The relationship should automatically be selected but just in case make sure it's the "node author" relationship.
Comments
_
iirc, 'last login' is the last time the user actually logged in by supplying their userid and password. "last access" would be last time the user was browsing the site while already logged in. Since users can stay logged in for a period of time, they won't necessary match unless you force users to log in everytime they access the site.
Is there a way to call last
Is there a way to call last access on the user profile? I want admin to be able to view each user and see when they last accessed the website.
Thanks.
Print last access
<?php print format_date($account->access); ?>I'd like to be able to sort a
I'd like to be able to sort a views based on node author's last access - so that the most recently logged in and active authors' content will be first. Any idea how this might be accomplished?
better late than never
Late reploy but to create that type of display:
1. Create a node view (just do everything except the sort part)
2. Add a relationship to the "node author"
3. Sort now has user fields available including "last access". Add the field to the sort. The relationship should automatically be selected but just in case make sure it's the "node author" relationship.
List of people who flagged me since my last login
I've created a page view for people who like the currently logged in user. I want to show a list of people who've liked me since my last login.
Been messing with the user:last login and user:last access filters. Can't find to make it work. Can anyone please help me with this??
thanks.
thanks.