SimplePortal

Customization => Blocks and Modifications => Block Requests => Topic started by: MF Tlaxcala on November 17, 2010, 07:57:52 AM

Title: Last active users block
Post by: MF Tlaxcala on November 17, 2010, 07:57:52 AM
Last active users block

I have searched around and couldn't find any blocks or codes about to show a certain of users that where last active.
If it doesn't exist yet, them i will request it.

Thank you.
Title: Re: Last active users block
Post by: 130860 on November 17, 2010, 12:57:51 PM
I use this on my site,  it could be used on a php block:

Code: [Select]

 $array = ssi_whosOnline('array');
echo '<a href="', $scripturl, '?action=who">', $array['guests'], ' Invitado', ($array['guests'] != 1 ? 's' : ''), ', ', $array['num_users'], ' Usuario', ($array['num_users'] != 1 ? 's' : ''), '</a><br />
<div style="font-size:100%;">Usuarios activos en los ultimos 15 minutos:<br />';

foreach($array['users'] as $user)
  $users[] = $user['link'];

echo implode(', ', $users), '</div>';

echo '<p />';



just change all the spanish words like Invitado to Guest, Usuario for User  and   Usuarios activos en los ultimos 15 minutos:  for Users active in the last 15 minutes:

this will put somthing like this:

10 Guest, 1 User  <=  this is a link to the who page, index.php?action=who

Users active in the last 15 minutes:
user, user2, Yahoo!, Google, Baidu (2), etc


Title: Re: Last active users block
Post by: MF Tlaxcala on November 17, 2010, 02:03:25 PM
Thank you, but actually my request is a block for the users that where last active.. Like here in the SMF Profile:
(http://img801.imageshack.us/img801/5363/profileoftqx.png)

Also, i can't do php blocks because my host has disabled that.. :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal