Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
  #1  
Old 28th December 2008, 15:55
Joshua Joshua is offline
Senior Member
 
Join Date: Oct 2008
Posts: 23
Talking [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:
<?php
/*
+--------------------------------------------------------------------------
|   TS Special Edition v.5.3
|   ========================================
|   by xam
|   (c) 2005 - 2008 Template Shares Services
|   http://templateshares.net
|   ========================================
|   Web: http://templateshares.net
|   Time: May 5, 2008, 2:44 am
|   Signature Key: TSSE9012008
|   Email: contact@templateshares.net
|   TS SE IS NOT FREE SOFTWARE!
+---------------------------------------------------------------------------
*/
// Dont change for future reference.
define('TS_P_VERSION', '1.2 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>");
}

include_once(INC_PATH.'/functions_icons.php');
$is_mod = is_mod($usergroups);

# BEGIN Plugin last24online

$last24 = TIMENOW - 86400;
$activeusers24 = array();
$res=@sql_query('SELECT u.id, u.username, u.enabled, u.options, 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) > '.$last24.' ORDER by u.username, u.last_access DESC');
$_hidden_members=$_active_members=0;
$_usernames=array();
while($_active_users=mysql_fetch_assoc($res))
{
    $_images=array();
    $_u_images=false;
    if(preg_match('#B1#is', $_active_users['options']) && $_active_users['id'] != $CURUSER['id'] && !$is_mod)
    {
        $_hidden_members++;
        continue;
    }
    else
    {
        $_active_members++;

        if ($_active_users['warned'] == 'yes' || $_active_users['leechwarn'] == 'yes')
        {
            $_images[] = '<img src="'.$BASEURL.'/'.$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="'.$BASEURL.'/'.$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>'.(preg_match('#B1#is', $_active_users['options']) ? '+' : '').($_u_images ? $_u_images : '').'</span>';
    }
}

$last24online = '<div class="small">Last 24hrs. Active Users:  '.ts_nf($_active_members).' Last 24hrs. Hidden Members: '.ts_nf($_hidden_members).'</div>';
$last24online .= '<fieldset class="fieldset"><legend><b>Last 24 hrs. Online</b></legend><center><div class="small" style="padding-top: 6px;">'.implode(', ', $_usernames).'</div></center></fieldset>';

# END Plugin last24online

?>
Reply With Quote
The Following 2 Users Say Thank You to Joshua For This Useful Post:
Metalmania (18th December 2012), peiratikos (11th November 2011)
  #2  
Old 31st December 2008, 09:26
Dragan3591's Avatar
Dragan3591 Dragan3591 is offline
Senior Member
 
Join Date: Oct 2008
United States
Posts: 168
Default
You are missing function_icon.php file.
__________________
CLICK HERE FOR IMPORTANT NEWS FROM BVLIST!!

"Always do sober what you said you'd do drunk. That will teach you to keep your mouth shut."
Ernest Hemingway.

"A positive attitude will not solve all your problems, but it will annoy enough people to make it worth the effort."
Herm Albright.
Reply With Quote
  #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)
Reply

Tags
24h , 5x , online , tsse

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Online Decoding Fynnon Community Cafe 3 10th February 2010 11:29
Online users problem mat22 Yuna Scatari Edition (YSE) 2 1st February 2010 20:50
Site online problem. pee4a Yuna Scatari Edition (YSE) 2 11th October 2009 16:12
Users Online!!! Nilsons Yuna Scatari Edition (YSE) 2 28th December 2008 14:26



All times are GMT +2. The time now is 17:36. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.