Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 23 Jul 2012, 02:40
djbaxter djbaxter is offline
Join Date: Aug 2006
Location: Ottawa, Canada
Arrow [How to] Change the time period for Visiting Members

Now that the "Total members that have visited the forum" listing on the forum home has become part of the core vBulletin files, what do I need to change to customize the time period for visiting members?

Currently, the only options are Today (since midnight) or Last 24 Hours.

I need a custom time period for a niche forum.
Reply With Quote
Old 23 Jul 2012, 08:35
kh99 kh99 is offline
Join Date: Aug 2009
Real name: Kevin
You could do it with plugins. If you look in forum.php around line 660 you can see where it sets $cutoff and $description based on the "last 24 hours/today" setting. For example you could set $cutoff to TIMENOW - (3600 * X) to get the last X hours.
Reply With Quote
Old 12 May 2013, 15:49
djbaxter djbaxter is offline
Join Date: Aug 2006
Location: Ottawa, Canada
Previously edited the core file. Now after the upgrade to 4.2.1 had to redo those edits of course.

I'm not sure how to construct a plugin that modifies the calculated value from the core file without having the core file calculation override mine.

What would it look like? What hook would I use?
Reply With Quote
Old 12 May 2013, 17:59
Lynne's Avatar
Lynne Lynne is offline
Join Date: Sep 2004
Real name: Lynne
You could try the hook location forumhome_whovisited_prelist
Former Staff Member

Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 22:42.

Layout Options | Width: Wide Color: