Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares > Mods & Themes
Reply
Thread Tools
  #1  
Old 30th January 2012, 17:20
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Red face whats going on plugin
Does some1 know how to update whatsgoinon plugin, may be in about every minute or every 2 minutes.

am using tsse 5.6 nulled by nightcrawler.

i am looking for long time for a solution for this.

unfortunately nothing till today.

greetz eckeO5
Reply With Quote
  #2  
Old 30th January 2012, 20:34
mmisu120000's Avatar
mmisu120000 mmisu120000 is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 202
Default
Quote:
Originally Posted by eckeO5 View Post
Does some1 know how to update whatsgoinon plugin, may be in about every minute or every 2 minutes.

am using tsse 5.6 nulled by nightcrawler.

i am looking for long time for a solution for this.

unfortunately nothing till today.

greetz eckeO5

In include/init.php ... at about line 27 find this:

PHP Code:
define ('TS_TIMEOUT'
there you must modify ...

Be aware that a very little interval will automaticly logout most users very quickly ...
__________________
"How terrible is wisdom when it holds no benefit for the wise?" - Louis Cypher
WDW Tracker - Using heavy modified TSSE
Reply With Quote
  #3  
Old 2nd February 2012, 23:28
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Default
what i mean is a update during user is logged in, so that irritating reload is over…

my request is not about the timeout when users loggin out themselfes

but thx for attempt to help.
Reply With Quote
  #4  
Old 3rd February 2012, 10:08
mmisu120000's Avatar
mmisu120000 mmisu120000 is offline
Senior Member
 
Join Date: Jun 2009
P2P
Posts: 202
Default
I know what you mean, what I told earlier applies not only to the logout time, but to Who's online also .... if you put "1800" the value it will show you who is online and who was online in the last 1800 seconds ... if you put there "60" than it will show you the users online in the last minute, but it will also logout any user after 60 seconds of inactivity ... that's what I meant ...
__________________
"How terrible is wisdom when it holds no benefit for the wise?" - Louis Cypher
WDW Tracker - Using heavy modified TSSE
Reply With Quote
  #5  
Old 3rd February 2012, 13:40
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Wink
ok for sure i understand what you mean.

but what i search for, is to find a way to show only if a user is already logged in, not to check he/she is active.

well it can be that there are users who only look what happens in shoutbox or something else.

what i mean is what happens f.e. with shoutbox.
shoutbox updates every 30 sec for example.

automatically all users can see if there hapens someting new or not.

better... i look for a way to show who´s online, not who´s active.

may be that explains better what i look for.
Reply With Quote
  #6  
Old 3rd February 2012, 16:37
z3ro z3ro is offline
Senior Member
 
Join Date: Oct 2010
P2P
Posts: 121
Smile
Quote:
Originally Posted by eckeO5 View Post
Does some1 know how to update whatsgoinon plugin, may be in about every minute or every 2 minutes.

am using tsse 5.6 nulled by nightcrawler.

i am looking for long time for a solution for this.

unfortunately nothing till today.

greetz eckeO5

PHP Code:
<?php
/*
************************************************
*==========[WDW Tracker v.5.6]==========*
************************************************
*              Special Thanks To               *
*        DrNet - wWw.SpecialCoders.CoM         *
*          Vinson - wWw.Decode4u.CoM           *
*    MrDecoder - wWw.Fearless-Releases.CoM     *
*           Fynnon - wWw.BvList.CoM            *
*==============================================*
*   Note: Don't Modify Or Delete This Credit   *
*     Next Target: WDW Tracker v5.7     *
*     TS SE WILL BE ALWAYS FREE SOFTWARE !     *
************************************************
*/
// Dont change for future reference.
if (!defined('TS_P_VERSION'))
{
    
define('TS_P_VERSION''1.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: whatsgoinon
require_once(INC_PATH.'/functions_icons.php');












$is_mod=is_mod($usergroups);
$_dt TIMENOW TS_TIMEOUT;
$_qsquery = @sql_query('SELECT * FROM ts_sessions WHERE userid = \'0\' AND lastactivity > \''.$_dt.'\'');
$_guests ts_nf(@mysql_num_rows($_qsquery));
$_wgo_query sql_query('SELECT distinct s.userid as id, u.username, u.options, u.enabled, u.donor, u.leechwarn, u.warned, p.canupload, p.candownload, p.cancomment, p.canmessage, p.canshout, g.namestyle FROM ts_sessions s LEFT JOIN users u ON (s.userid=u.id) LEFT JOIN ts_u_perm p ON (u.id=p.userid) LEFT JOIN usergroups g ON (u.usergroup=g.gid) WHERE s.userid != \'0\' AND s.lastactivity > \''.$_dt.'\' ORDER by u.username, u.last_access');
$_most_ever mysql_num_rows($_wgo_query)+$_guests;









if (
file_exists(TSDIR.'/'.$cache.'/onlinestats.php'))
{
    include(
TSDIR.'/'.$cache.'/onlinestats.php');
}

if(!
$onlinestats['most_ever'])
{
    
$onlinestats['most_ever'] = 0;
}

if (
$onlinestats['most_ever'] < $_most_ever)
{
    
$_cache_array $onlinestats = array('most_ever' => $_most_ever'most_ever_time' => TIMENOW);
    
$_name 'onlinestats';
    
$_filename TSDIR.'/'.$cache.'/onlinestats.php';
    
$_cachefile = @fopen("$_filename""w");
    
$_cachecontents "<?php\n/** TS Generated Cache#2 - Do Not Alter\n * Cache Name: $_name\n * Generated: ".gmdate("r")."\n*/\n\n";
    
$_cachecontents .= "\$$_name = ".@var_export($_cache_arraytrue).";\n?>";
    @
fwrite($_cachefile$_cachecontents);
    @
fclose($_cachefile);
}

$_hidden_members=$_active_members=0;
$_usernames=array();
while(
$_active_users=mysql_fetch_assoc($_wgo_query))
{
    if(
preg_match('#B1#is'$_active_users['options']) && $_active_users['id'] != $CURUSER['id'] && !$is_mod)
    {
        
$_hidden_members++;
        continue;
    }
    else
    {        
        if (
preg_match('#B1#is'$_active_users['options']))
        {
            
$_hidden_members++;
        }
        else
        {
            
$_active_members++;
        }

        
$_usernames[] = '<span style="white-space: nowrap;"><a href="'.ts_seo($_active_users['id'], $_active_users['username']).'">'.get_user_color($_active_users['username'], $_active_users['namestyle']).'</a>'.(preg_match('#B1#is'$_active_users['options']) ? '+' '').get_user_icons($_active_users).'</span>';
    }
}



$whatsgoinon '
<table width="100%" cellpadding="3" cellspacing="0" border="0" align="center">
    <tr>
        <td class="subheader" colspan="2">
            '
.($is_mod '<span style="float: right;">[<a href="'.$BASEURL.'/admin/index.php?act=whoisonline"><b>'.$lang->index['show'].'</b></a>]</span>' '').$lang->index['activeusers'].' '.ts_nf($_most_ever).sprintf($lang->index['dactiveusers'], ts_nf($_guests), ts_nf($_active_members), ts_nf($_hidden_members)).'
        </td>
    <tr>
        <td colspan="2">
            <div style="float: right;">'
.$Legends.'</div>
            <div>'
.sprintf($lang->index['online']). '</div>
            '
.implode(', '$_usernames).'    
            <div style="float: right;" id="WaitingToShow" name="WaitingToShow"></div>
        </td>
    </tr>
    <tr>
    <center>
    <font color=#A6C626><b>User</b></font>&nbsp;&nbsp;
    <font color=#608060><b>PowerUser</b></font>&nbsp;&nbsp;
    <font color=green><b>Veterán</b></font>&nbsp;&nbsp;
    <font color=#ff8040><b>VIP</b></font>&nbsp;&nbsp;
    <font color=#6464FF><b>Uploader</b></font>&nbsp;&nbsp;
    <font color=blue><b>Moderátor</b></font>&nbsp;&nbsp;
    <font color=darkred><b>Adminisztrátor</b></font>&nbsp;&nbsp;
     <font color=#2587A7><b>Sysop</b></font>&nbsp;&nbsp;
    <font color=red><b>Tulajdonos</b></font>&nbsp;&nbsp;
    </center>
    </tr>
</table>'
;
// END Plugin: whatsgoinon
?>
add/include/plugins good
Click the image to open in full size.

Last edited by z3ro; 3rd February 2012 at 16:51.
Reply With Quote
The Following User Says Thank You to z3ro For This Useful Post:
FENIX (28th May 2013)
  #7  
Old 4th February 2012, 00:48
eckeO5 eckeO5 is offline
Senior Member
 
Join Date: Jan 2011
P2P
Posts: 117
Default
Hello Próba12,

testet out, but doesn´t update users automatically…
Reply With Quote
Reply

Tags
plugin , whatsgoinon


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



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