View Full Version : vB3 Last activity in memberlist
Boofo
02-10-2004, 10:00 PM
vB3 Last activity in memberlist
Version 1.0
(By Boofo)
What does this hack do?
This hack will replace the Last Visit column in the memberlist with the Last Activity. Last Visit has always been confusing to me because it is really the time BEFORE the member's actual last visit. Last activity is the same thing the profile uses so, to me, it seems more accurate. You will still be able to turn this on/off via "User Listing & Profile Viewing > Member List Field Options > Last Online" in the vBulletin Settings in the Admin CP.
Version Information:
Version 1.0 --Initial release
Installation overview:
Files to edit: (1)
--memberlist.php
Templates to edit: (2)
--memberlist
--memberlist_resultsbit
Please click the install button if you find this hack useful.
FleaBag
02-11-2004, 01:19 PM
Another great hack Boofo, I was looking for something to spice up the memberlist - the extra accuracy will be cool. :D
AN-net
02-11-2004, 08:40 PM
very cool, ill install soon;)
Allan
02-11-2004, 09:19 PM
yep, very nice ;)
great job man! ill be sure to use this
/me clicks Install
MGM out
gmarik
02-12-2004, 07:49 PM
sounds nice ....
Boofo
02-12-2004, 08:35 PM
It is nice. ;)
Andreas
02-12-2004, 08:59 PM
> Last Visit has always been confusing to me because it is really the time BEFORE the member's actual last visit.
AFAIK Last Visit is (whatever is newer)
- The last time a session for this user was created
OR
- The last time the user clicked "Mark forums read"
OR
- The last time the user logged out
Boofo
02-12-2004, 09:09 PM
That's what I used to think. But I have a member that had been on 2 days earlier (in the profile it showed that for last activity) but his last visit said 4 days ago (last visit in the original memberlist). There has been kind of a debate on vb.com about this for a while. I'm not the only one who is confused about this, it seems. What it ends up turning out to be is the last time before the last activity. Last activity seems a lot more accurate to me. Thus, this hack. ;)
Andreas
02-12-2004, 09:15 PM
That could be right, if he's connected 24/7 and accesses the forum more often then every 15 minutes (default cookie timeout). Then the last visit can stay at it's value (set when the session was created) for ages ...
But that's OT anyway ;)
Boofo
02-12-2004, 09:41 PM
But he wasn't connected contuniously. His last visit was 4 days before that but his last activity was 2 days before that. He was logged off in between. The last visit has always been a confusing issue. Even on vB2. I never paid that much attention to it until I started using the detailed time. That's where it really shows itself. I have members that come on 2 or 3 times a day and there times are way off between the two. All I really wrote this hack for was to have the more accurate time in the memberlist instead of having to go to each profile of a member I wanted to know when they had been on last. It's quicker to go through the memberlist than to go through each profile. I think they ought to have an option for this in the memberlist like they do the last activity. Let the Admin choose which time to show. ;)
sabret00the
02-27-2004, 08:49 PM
screenie?
Boofo
02-27-2004, 11:28 PM
A screenshot wouldn't really mean anything. The best way to understand this is to make sure you have the Last Visit turned on in the memberlist and then compare the Last activity time in anyone's profile with their last visit time in the memberlist. You should see the difference then. The last activity time is more accurate. ;)
MickDoneDee
07-17-2004, 04:45 PM
I was just about to install this hack as I think it is a very good idea but I believe it is not necessary since Last Visit and Last Activity now appear to be identical when displaying the day the user was last online for vB3.0.3. Last Activity is still used in Who's Online and members public profiles with time included. Last Visit shows in the Members List and is a search option in the admin cp. Last Visit now only differs from Last Activity in that it doesn't display the time - just the day.
Does this fact make this hack redundant for users with vB 3.0.2 or later?
Boofo
07-17-2004, 05:10 PM
I was just about to install this hack as I think it is a very good idea but I believe it is not necessary since Last Visit and Last Activity now appear to be identical when displaying the day the user was last online for vB3.0.3. Last Activity is still used in Who's Online and members public profiles with time included. Last Visit shows in the Members List and is a search option in the admin cp. Last Visit now only differs from Last Activity in that it doesn't display the time - just the day.
Does this fact make this hack redundant for users with vB 3.0.2 or later?
Not all all since it displays the time, too.
MickDoneDee
07-17-2004, 09:37 PM
Not all all since it displays the time, too.
Boofo, I already noticed that memberlist.php is slightly different for 3.0.3. Could you do a hack version for 3.0.3 please? If you require a copy of the file or template code let me know. I'll install if you can do that.
Agent XY
10-10-2004, 04:12 PM
works nice, thx. !
*install*
Does this work the way it is posted here for 3.0.3?
weaver
01-30-2005, 01:16 AM
The memberlist code we're supposed to find doesn't seem to be there anymore for v3.06.
jackey666
04-18-2005, 01:40 AM
The line:
" . iif($sortfield=='lastvisit', " , IF((options & $_USEROPTIONS[invisible]), joindate, lastvisit) AS lastvisittime ") . "
doesn't exists in vBulletin 3.0.7. Did you have an update or does anyone have made it?
SnickersTK
06-19-2006, 10:03 AM
bump for port for 3.5
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.