SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: DollarSRV on October 26, 2010, 09:02:17 AM

Title: Who's Online block
Post by: DollarSRV on October 26, 2010, 09:02:17 AM
Why when you tick Users Online Today: nothing changes?
Title: Re: Who's Online block
Post by: AngelinaBelle on October 26, 2010, 09:51:48 AM
Please give more detail.
If the list of users currently online is the same as the list of user who have been online today, nothing should change when you tick/untick the box.
 
Are you observing something different than this?
 
 
Title: Re: Who's Online block
Post by: DollarSRV on October 26, 2010, 05:06:35 PM
Yes when members have gone offline and there is only me on even then it don't say who has been online nothing seems to change i'm assuming it should look something like this.

Guests: 0
Hidden: 0
Users: 1
Users online:
Trax

Users who have been online (or something like this) and it don't say this or anything else it just shows like it does on this site when it is or isn't ticked.

Hope you understand what i mean.
Title: Re: Who's Online block
Post by: AngelinaBelle on October 27, 2010, 07:49:50 AM
I had a look at the code for sp_whosOnline
Here's something interesting I saw:
Code: [Select]
if ($online_today && file_exists($sourcedir . '/Subs-MembersOnlineToday.php'))

This tells me the file is not expected to always be there.  So I did a little search at simplemachines.org, and found that there is a mod called Members Online Today.
 
So -- if you want members online today, you will need to install the mod.
Title: Re: Who's Online block
Post by: DollarSRV on October 27, 2010, 10:43:01 AM
Oh ok, any chance you could post link to that mod you  found please.
Title: Re: Who's Online block
Post by: AngelinaBelle on October 27, 2010, 11:12:22 AM
You can find this mod at simplemachines.org.  Search the mods for "Users Online Today"
Title: Re: Who's Online block
Post by: DollarSRV on October 27, 2010, 12:45:05 PM
Ok thanks.
Title: Re: Who's Online block
Post by: Divecall on June 27, 2011, 09:32:06 PM
Im using SMF RC5 and SP 2.3.3 and i have this mod installed.

unfortunately, the members online today are not displayed (Only in SP-Block, in my board all is looking well...)

What can i do?
Title: Re: Who's Online block
Post by: moal on May 31, 2014, 05:44:08 AM
I have the same problem.  :( White still no advice? :nervous-happy:
Title: Re: Who's Online block
Post by: phantomm on May 31, 2014, 09:34:21 AM
Open: ./Sources/PortalBlocks.php:
Code: (Find) [Select]
if ($online_today && file_exists($sourcedir . '/Subs-MembersOnlineToday.php'))
{
require_once($sourcedir . '/Subs-MembersOnlineToday.php');

$membersOnlineTodayOptions = array(
'sort' => 'login_time',
'reverse_sort' => true,
'period' => 'current_day',
'canview' => 'registered',
);

$stats += getMembersOnlineTodayStats($membersOnlineTodayOptions);
Code: (Replace with) [Select]

if ($online_today && file_exists($sourcedir . '/Subs-UsersOnlineToday.php'))
{
require_once($sourcedir . '/Subs-UsersOnlineToday.php');

$membersOnlineTodayOptions = array(
'sort' => 'login_time',
'reverse_sort' => true,
'period' => 'current_day',
'canview' => 'registered',
);

$stats += getUsersOnlineTodayStats($membersOnlineTodayOptions);
Title: Re: Who's Online block
Post by: moal on May 31, 2014, 12:00:56 PM
Perfect, thank you!  :applause:
Title: Re: Who's Online block
Post by: phantomm on May 31, 2014, 03:30:05 PM
You're welcome :)

There are few more blocks in SP 2.3.5 that need updates ::)
Title: Re: Who's Online block
Post by: phantomm on August 16, 2014, 11:53:19 AM
Block Who's online needs to be updated for new version of Users Online Today Mod. Fix in reply #9, but I would check it before adding to package :)
Title: Re: Who's Online block
Post by: [SiNaN] on August 16, 2014, 01:26:59 PM
Thanks for this!

Fixed for the upcoming version.
SimplePortal 2.3.8 © 2008-2024, SimplePortal