How to add the who is online for the entire site?
Using Jamroom
Woww Douglas!!!! You are a genius. Thanks a lot. That's what I have been talking about.
Now there are just few issues that need to be fixed:
1) I am still showing online after logging out. Even after refreshing the page from time to time, it takes something like 15 or 20 minutes (i guess so) before JR removes a logged out user from the Who is online. I have noticed the same here in the JR forum. Is it possible to reduce that delay?
2) There seems to be a duplication. I have been shown as myself then as a guest. (Admin profile icon) + 1 Guest. I doubt that it was a really guest. I think that, that guest was still me. I am more than sure that there wasn't anybody else on the site apart from me. I am the only one using it right now because it is under reconstruction. When JR removed me from the Who is online, the guess was gone too. I realized that I was probably that Guest. (I am not quite sure).
I have even noticed it here in the JR forum. There is a moment I was the only one logged in, the Who is online, displays my profile + 1 Guest.
By the way:
- Do Profiles with privacy set to "Shared - Profile Owners and Followers only" show on the Who is online?
- What about if a site has let's say 200 members and 120 of them are online simultaneously, Will all the 120 profiles (profile picture by profile picture) be displayed and an horizontal scrollbar be created in the Who i online? How will JR handle this scenario?
- I created a language string for the phrase: "user(s) currently active on this site" and it displays fine on the site but the language string for "Guest" doesn't display the text, it displays the code because "Guest" is hardcoded:
{if $visitor_count == 1}
{$gs = 'Guest'}
{else}
{$gs = 'Guests'}
{/if}
We probably need two language strings for "Guest": "Guest" in singular (when guest == 1) and "Guests" in plural. How to do that in the code you posted? (I am building a multilingual site)
Thanks
updated by @pch: 06/18/16 02:51:49AM