MyBB Community Forums

Full Version: Can I display the usernames of those online in the last 15 minutes?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If you look on the index here,
http://VisualizeEdits.com/

You will see this,
http://gyazo.com/2362f340c6d64c26c3deda5dc67f9d39

How can I display usernames of those online in the past 15 minutes above those texts?

index_whosonline
<td class="trow1"><span class="smalltext">{$whosonline}<br />{$lang->online_note}</span></td>

It show "2 users active" but it doesn't display the usernames?

Can anyone help me with this?
you can add {$onlinemembers}
<tr>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>
Thank you very much! It work! And if I want to change the time (15 minutes), where do I go? I believe it has something to do with PHP although I could be wrong.
^ Who's Online settings available through configuration settings
admin panel >> configuration >> settings >> Who's Online --> Cut-off Time (mins)
I changed it to 1440 minutes and this happened. http://gyazo.com/a36dd129336b2bb5cc4bc21485f91de4
?
"Who's Online" contained {$onlinemembers}
"Who's Online Today" contained {$whosonline}

And it changed for both?

I don't want the "Who's Online" to display all of them today, just at that current time.
^ who's online cut-off time = 1440 minutes = 24 hours => past 24 hours
and it is suggested to not use high value for who's online cut-off time (in general it can be 15min / 30 min / 60 min / 180 min)
Thank you very much. I fixed it to 180 minutes and how can I fix the "Who's Online" to show who's online "right now" and the reason I made it 1440 minutes is so that I can display who was online the last 24 hours.