[TSSE 5.x] Last 24H online
Hello
I have a code for last24online from TSSE v.5.3 but not worked on 5.1 Can anyone remake for 5.1 last24online Code:
/* |
You are missing function_icon.php file.
|
last24online TSSE 5.1
They did not touch it, only together I did some DIY :shock::lol: But works!
http://coolbit.ath.cx/ablak.jpg Make a file with this content: [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("Error! Direct initialization of this file is not allowed."); } // 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[] = ' title="'.$lang->global['imgwarned'].'">'; } if ($_active_users['donor'] == 'yes') { $_images[] = ' title="'.$lang->global['imgdonated'].'">'; } if(sizeof($_images) > 0) { $_u_images = implode(' ', $_images); } $_usernames[] = ' href="./userdetails.php?id='.$_active_users['id'].'">'.get_user_color($_active_users['username'], $_active_users['namestyle']).''.($_active_users['invisible'] == 'yes' ? '+' : '').($_u_images ? $_u_images : '').''; } } $last24online = ' '.sprintf($lang->index['dactiveusers24'], ts_nf($_guests), ts_nf($_active_members), ';ts_nf($_hidden_members)).' $last24online .= ' |
All times are GMT +2. The time now is 05:23. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.