Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader > Mods & Themes
Reply
  #1  
Old 6th January 2011, 02:24
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default Pie Chart
Credits to r63 from TBDev

requirements: GD Graphics Library installed


torrent-details.php & find

Code:
print ("<B>" . LEECH . ": </b><img src=\"".$site_config["SITEURL"]."/images/leechers.gif\" border=\"0\"><font color=red>" . $row["leechers"] . "</font><BR>");


after add
Code:
if ($row["leechers"]+$row["seeders"] == 0) {
Code:
  $statistics = "Not available!";
  }
  else {
  $statistics = "<img src=stats.php?id=".$row["id"].">";
  }
find

Code:
print("<tr><td align=left><b>" . VIEWS . ":</b></td><td>" . $row["views"] . "</td></tr>\n");


add after

Code:
print("<tr><td align=left><b>Statistics:</b></td><td>$statistics</td></tr>\n");


or wherever you want to show. i have youtube added so mine is place below youtube

extract rar and place in backened
place stats.php into root
Attached Files
File Type: rar graph.rar (83.8 KB, 93 views)
File Type: php stats.php (1.1 KB, 58 views)
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
Reply

Tags
chart , pie

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:40. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.