Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 26-02-13, 17:35
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 272
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 05-03-13, 02:02
Crazzy's Avatar
Crazzy Crazzy is offline
Member
 
Join Date: May 2009
P2P
Posts: 13
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 08:12. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.