vBulletin Mods

The Official vBulletin Modifications Site

Members who have visited today.
by Paul M
23 Aug 2009 18:22

16 Attachment(s)

This modification has been withdrawn.
vBulletin 4.0.x and 4.1.x are no longer supported.

The feature is already built into the core vBulletin 4.2.x code.

This adds a simple display of all members who have visited the forum - either today (i.e. since the users midnight) or in the last 24 hours.

This modification cannot count guests, it is members only.

Note that installing this will automatically remove the "Member Tracking" modification.

The main features of the vB4 version are as follows ;

1. It displays the list on the Forum Home.
2. Invisible users are only displayed to those allowed to see them (with a "*")
3. Users who should display as coloured or bold etc will be displayed correctly (based on the display usergroup).
4. If you 'hover' over a username it will show the time they were last active.
5. The list is in member name order.
6. The ability to turn it on/off is in the ACP Options.
7. The ability to allow only certain usergroups to view the list is an ACP option (include or exclude groups).
8. An option to record and display the Most Ever Members can be enabled.
9. The switch between Visited Today and Rolling 24 Hours is an ACP option.
10. The listing of members can be suppressed (a simple message is displayed instead).
11. The list view is collapsable, so you just see the number .
12. The display can be set as always collapsed on initial page load.

(Options are in vBulletin Options > Who has visited today)

To install just download the XML and import into vB using the ACP Product Manager.


v4.0.1 : 21-Dec-2009 : Initial release for vb 4.0.0 Gold.
v4.0.2 : 22-Dec-2009 : Minor display changes (Icon).
v4.0.3 : 24-Dec-2009 : Install code updates.
v4.0.4 : 16-Jan-2010 : Added always collapsed option.
v4.0.5 : 26-Jan-2010 : Various updates.
v4.0.6 : 18-Feb-2010 : Installer update.
v4.0.7 : 29-May-2010 : Fix error in upgrade section of install code.
v4.0.8 : 22-Oct-2010 : Fixed for WGO style changes in vB 4.0.8.
v4.0.9 : 06-Nov-2010 : Install code updated.

v4.1.0 : 04-Dec-2010 : Updated for vBulletin 4.1.

v4.1.7.0 : 16-Oct-2011 : Updated for vBulletin 4.1.7.
v4.1.8.0 : 18-Nov-2011 : Updated for vBulletin 4.1.8 onwards (only).
v4.1.11.0 : 03-Mar-2012 : Updated for vBulletin 4.1.11 image changes.

Ohiosweetheart 23 Aug 2009 22:59

Fantastic! Going to install and test it now.

Paul M 23 Aug 2009 23:25

JFYI, you may want to note the bug in the Forumhome template that affects the display of this atm.


cellarius 23 Aug 2009 23:32

Installed and fixed the bug, works like a charm :)

Razasharp 24 Aug 2009 01:01

Glad this one's done already Paul! :)

Andreas 24 Aug 2009 07:50

Does not work with Memcache as Datastore Cache.

Paul M 24 Aug 2009 09:23

I have no way of testing that since I dont use memcache, but could you be a little more specific than "does not work" :)

JFYI, I use xcache for the datastore normally, but xcache support appears completely broken in vb4 atm so I cant even test that.

veenuisthebest 24 Aug 2009 09:29


Originally Posted by Andreas (Post 1873179)
Does not work with Memcache as Datastore Cache.

May I know please, how do we determine/test that a mod is working with various cache systems?

Paul M 24 Aug 2009 09:37

You cant, unless you have them installed.

BTW, Just to be clear about something, the only part that uses the datastore is the "Most ever" display, not the main display.

veenuisthebest 24 Aug 2009 11:10


Originally Posted by Paul M (Post 1873229)
You cant, unless you have them installed.

Obviously, so like I have XCache installed. How do I test now?

Andreas 24 Aug 2009 11:33


Originally Posted by Paul M (Post 1873223)
I have no way of testing that since I dont use memcache, but could you be a little more specific than "does not work" :)

Hehe, sure ;)
(In fact I didn't test it, I just looked at the code):
You are calling do_fetch(), which does work just fine for connectionless caches like APC, XCache, eAccelerator.

Memcache however does need a connection, and do_fetch() does not check if there is one - so you end up with an error (or a segfault in worst case).

Paul M 24 Aug 2009 12:23

So this is a bug in vbulletin, the memcache class should check/create a connection when do_fetch() is used. :)

As it happens, that code only runs if maxloggedin does not exist, which should never be the case on the forumhome, it was a backup in case the code was run on other pages (which used to be an option, but got removed in the 3.8 version). So even if you run memcache, this should actually always work.

In fact, I think I can take out the datastore fetch, as the reason for it being there no longer exists.

Paul M 24 Aug 2009 12:24


Originally Posted by veenuisthebest (Post 1873268)
Obviously, so like I have XCache installed. How do I test now?

Sorry, I dont really understand what you are asking.

Andreas 24 Aug 2009 12:41

Nope, as do_fetch() is a "private" method that really only gets called from within the class - you are abusing it by calling it from the outside ;)

Marco van Herwaarden 24 Aug 2009 13:08

Then it should be set as private so it can't be used from outside the class.

All times are GMT. The time now is 02:06.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.