Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 26th February 2013, 17:35
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default Total traffic
in details after

PHP Code:
tr("Snatched"$row["times_completed"] . " time(s)"); 
add this:

PHP Code:
// Totaltraffic mod
 
$data mysql_query("SELECT (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND p.torrent = '$id' AND times_completed > 0 GROUP BY t.id ORDER BY added ASC LIMIT 15") or sqlerr(__FILE____LINE__);
 
$a mysql_fetch_assoc($data);
 
$data mksize($a["data"]) . ""
 
tr("Totaltraffic"$data); 
Errors solved by me
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #2  
Old 5th March 2013, 02:02
Crazzy Crazzy is offline
Member
 
Join Date: May 2009
P2P
Posts: 14
Default
thanks Chez great job ;)
Reply With Quote
Reply

Tags
total , traffic

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



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