Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Template Shares
Reply
Thread Tools
  #1  
Old 13th September 2008, 22:27
zenja7777 zenja7777 is offline
Senior Member
 
Join Date: Jul 2008
Posts: 47
Question to make for TS v 5 1 that was plugin showwhatsgoinon
This code is taken with TS v 4 3 please if who knows as this code to make for TS v 5 1 that was plugin showwhatsgoinon


PHP Code:
'; echo $showtrackerload; } if ((($CURUSER AND $showwhatsgoinon == 'yes') OR ($showwhatsgoinon == 'staffonly' AND $is_mod))) { include_once INC_PATH . '/functions_icons.php'; if ((!empty ($indexstats) AND !empty ($indexstats['latestuser']))) { $latestuser = $indexstats['latestuser']; } else { if (!defined ('CACHE_INCLUDED')) { include_once INC_PATH . '/ts_cache.php'; } update_cache ('indexstats'); include_once '' . $cache . '/indexstats.php'; } $cut = TIMENOW - TS_TIMEOUT; $qsquery = @sql_query ('' . 'SELECT COUNT(*) as totalguests FROM ts_sessions WHERE lastactivity ' . $cut); $guests = ts_nf (@mysql_result ($qsquery, 0, 'totalguests')); $last24 = get_date_time (gmtime () - 24 * 60 * 60); $activeusers24 = array (); $activeusers = array (); $hiddenmembers = 0; $res = @sql_query ('SELECT u.last_accessu.idu.usernameu.usergroupu.enabledu.invisibleu.donoru.donatedu.warnedu.leechwarnu.commentposu.sendpmposu.chatpostu.downloadposu.uploadposg.namestyle FROM users u LEFT JOIN usergroups g ON (u.usergroup=g.gidWHERE u.last_access >= ' . @sqlesc ($last24) . ' ORDER BY u.username'); while ($arr = @mysql_fetch_assoc ($res)) { if ((($arr['invisible'] == 'yes' AND !$is_mod) AND $arr['id'] != $CURUSER['id'])) { continue; } $arr['username'] = get_user_color ($arr['username'], $arr['namestyle']); $cusername = '' . $arr['username'] . ($arr['invisible'] == 'yes' ? '+' : '') . '' . get_user_icons ($arr); $activeusers24[] = $cusername; if (TIMENOW - sql_timestamp_to_unix_timestamp ($arr['last_access']) < TS_TIMEOUT) { if ($arr['invisible'] == 'yes') { ++$hiddenmembers; } $activeusers[] = $cusername; continue; } } if ($totalonline24 = @count ($activeusers24) == 0) { $activeusers24 = $lang->index['nolast24visits']; } else { $activeusers24 = @implode ('', $activeusers24); } if ($totalactive = @count ($activeusers) == 0) { $activeusers = $lang->index['noactiveusersonline']; } else { $activeusers = @implode ('', $activeusers); } $showwhatsgoinon = ' 

PHP Code:
<table border="0" cellspacing="0" cellpadding="5" width="100%">
        <
tr>
            <
td align="center" class="thead">
                
' . ts_collapse ('showwhatsgoinon') . '
                ' . $SITENAME . '
&nbsp;' . $lang->index['whatsgoinon'] . '
            
</td>
        </
tr>
        
' . ts_collapse ('showwhatsgoinon', 2) . '
        
<tr>
            <
td align="center">    
                
' . sprintf ($lang->index['last24visits'], ts_nf ($totalonline24)) . '
                
<a href="javascript: klappe_news(\'a0\')"><img border="0" src="' . $BASEURL . '/' . $pic_base_url . 'plus.gif" id="pica0" alt="' . $lang->global['imgshowhide'] . '" title="' . $lang->global['imgshowhide'] . '" /></a>
                <
div id="ka0" style="display: none;">
                    <
p align="justify">' . $activeusers24 . '</p>
                </
div>
                <
br />
                
' . sprintf ($lang->index['newestmember'], $latestuser) . '
                
<br />
                
' . $lang->index['activeusers'] . ' ' . ts_nf ($totalactive + $guests) . ' ' . sprintf ($lang->index['dactiveusers'], $guests, $totalactive - $hiddenmembers, $hiddenmembers) . '
                
<a href="javascript: klappe_news(\'a00\')"><img border="0" src="' . $BASEURL . '/' . $pic_base_url . 'plus.gif" id="pica00" alt="' . $lang->global['imgshowhide'] . '" title="' . $lang->global['imgshowhide'] . '" /></a>
                <
div id="ka00" style="display: none;">
                    <
p align="center">' . $activeusers . '</p>
                </
div>';
    $showwhatsgoinon .= '            
                
</td>
            </
tr>
        </
tbody>
    </
table

Last edited by zenja7777; 13th September 2008 at 22:35.
Reply With Quote
Reply

Tags
make , plugin


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
how we edit plugin torrentimm Template Shares 10 17th September 2008 10:07
RSS Grabber Plugin GaBoNtZ Mods & Themes 1 9th September 2008 14:21
plugin for TS v 5.1 please zenja7777 Template Shares 1 27th August 2008 22:21
hit of week plugin for TS v 5.1 zenja7777 Template Shares 2 26th August 2008 17:22
Shoutcast Plugin trilious Template Shares 0 9th August 2008 21:37



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