MyBB Community Forums

Full Version: who was online today
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi i want to have 48 hours instead of 24 hours on online today.. Ill explain fully the first part is 15 minutes online there other is 24 hours i want to change the 24 to 48.
You're going to need either a plugin or manually edit online.php. If you do the manual edit, look for this:
	$threshold = TIME_NOW-(60*60*24);

Change that to
	$threshold = TIME_NOW-(60*60*24*2);

That should be around line 39.
(2015-01-26, 08:53 PM)dragonexpert Wrote: [ -> ]You're going to need either a plugin or manually edit online.php. If you do the manual edit, look for this:

	$threshold = TIME_NOW-(60*60*24);

Change that to
	$threshold = TIME_NOW-(60*60*24*2);

That should be around line 39.

I changed it but still shows 24 hours i even cleared cache

I have a plugin called online today but that doesnt work, and this maybe the reason this aint working either.

is there a better plugin for 1.8? or if i remove that plugin will the manual edit work
Remove the plugin you are using for it. The manual edit alone should work.