View Single Post
  #3  
Old 23rd February 2009, 17:44
Lazarevics Lazarevics is offline
Senior Member
 
Join Date: Feb 2009
P2P
Posts: 15
Thumbs up last24online TSSE 5.1
They did not touch it, only together I did some DIY :shock: But works!

Click the image to open in full size.

Make a file with this content:

[php]<?php
/*
+--------------------------------------------------------------------------
| TS Special Edition v.5.1
| ========================================
| by xam
| (c) 2005 - 2008 Template Shares Services
| http://templateshares.net
| ========================================
| Web: http://templateshares.net
| Time: July 4, 2008, 7:41 pm
| Signature Key: TSSE23192008
| Email: contact@templateshares.net
| TS SE IS NOT FREE SOFTWARE!
+---------------------------------------------------------------------------
*/
// Dont change for future reference.
define('TS_P_VERSION', '1.0.1 by xam');
// Security Check.
if (!defined('IN_PLUGIN_SYSTEM'))
{
die("<font face='verdana' size='2' color='darkred'><b>Error!</b> Direct initialization of this file is not allowed.</font>");
}

// BEGIN Plugin: last24online
$_ido = TIMENOW - 86400;
$_wgo_query = sql_query('SELECT u.id, u.username, u.enabled, u.invisible, u.warned, u.leechwarn, u.donor, g.namestyle FROM users u LEFT JOIN

usergroups g ON (u.usergroup=g.gid) WHERE UNIX_TIMESTAMP(u.last_access) > '.$_ido.' ORDER by u.username, u.last_access DESC');
$_hidden_members=$_active_members=0;
$_usernames=array();
while($_active_users=mysql_fetch_assoc($_wgo_query ))
{
$_images=array();
$_u_images=false;
if($_active_users['invisible'] == 'yes' && $_active_users['id'] != $CURUSER['id'] && !$is_mod)
{
$_hidden_members++;
continue;
}
else
{
if ($_active_users['invisible'] == 'yes')
{
$_hidden_members++;
}
else
{
$_active_members++;
}
if ($_active_users['warned'] == 'yes' || $_active_users['leechwarn'] == 'yes')
{
$_images[] = '<img src="'.$pic_base_url.'warned.gif" border="0" width="11" height="11" alt="'.$lang->global['imgwarned'].'"

title="'.$lang->global['imgwarned'].'">';
}
if ($_active_users['donor'] == 'yes')
{
$_images[] = '<img src="'.$pic_base_url.'star.gif" border="0" width="11" height="11" alt="'.$lang->global['imgdonated'].'"

title="'.$lang->global['imgdonated'].'">';
}
if(sizeof($_images) > 0)
{
$_u_images = implode(' ', $_images);
}
$_usernames[] = '<span style="white-space: nowrap;"><a

href="./userdetails.php?id='.$_active_users['id'].'">'.get_user_color($_active_users['username'],

$_active_users['namestyle']).'</a>'.($_active_users['invisible'] == 'yes' ? '+' : '').($_u_images ? $_u_images : '').'</span>';
}
}

$last24online = '<div class="small">'.sprintf($lang->index['dactiveusers24'], ts_nf($_guests), ts_nf($_active_members),

ts_nf($_hidden_members)).'</div>';
$last24online .= '<fieldset class="fieldset"><legend><b>Itt voltak az elm

Last edited by Lazarevics; 24th February 2009 at 23:03.
Reply With Quote
The Following User Says Thank You to Lazarevics For This Useful Post:
Aragon (25th September 2009)