Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > TBDev > Mods & Themes
Reply
  #1  
Old 17th January 2013, 18:06
bestlap's Avatar
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default How to add statistics in index.php ?
Hi everyone :) how to add statistics in index.php ?

Users:
Torrents:
seed
leech........
Reply With Quote
  #2  
Old 17th January 2013, 18:47
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
What source do you have?
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
  #3  
Old 17th January 2013, 22:44
bestlap's Avatar
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Quote:
Originally Posted by Chez View Post
What source do you have?
Where can I see which version is ?Because it is modded and don't writes a version .

See one screenshot >>

http://www2.picturepush.com/photo/a/...ymous/test.png

and files
http://www1.picturepush.com/photo/a/...s/Untitled.png

I copy this from one torrent traker >>>
Quote:
<h2>Статистика</h2> <table width=100% border=1 cellspacing=0 cellpadding=10><tr><td align=center> <table class=main border=1 cellspacing=0 cellpadding=5> <tr><td class=rowhead>Регистрирани потребители</td><td align=right>151,602</td></tr> <!-- <tr><td class=rowhead>Торенти</td><td align=right></td></tr> --> <tr><td class=rowhead>Торенти</td><td align=right>28,941</td></tr> <tr><td class=rowhead>Пиъри</td><td align=right>5,901</td></tr> <tr><td class=rowhead>Сийдъри</td><td align=right>5,020</td></tr> <tr><td class=rowhead>Лийчъри</td><td align=right>881</td></tr> <tr><td class=rowhead>Съотношение Сийдъри/Лийчъри(%)</td><td align=right>570</td></tr> </table> </td></tr></table>
and put in index php and >>>
http://www5.picturepush.com/photo/a/...ntitled111.png
but is don't work. the number's is not a real.It is real in other torrent traker but not for main...


and how I can add in index.php Who is on-line stats ??

Last edited by bestlap; 18th January 2013 at 00:03.
Reply With Quote
  #4  
Old 20th January 2013, 04:00
fireknight's Avatar
fireknight fireknight is offline
Moderator
 
Join Date: Aug 2010
Australia
Posts: 168
Default
Somewhere in the include folder.
Find
something like

bittorrent.php
functions.php
etc

It should say what version somewhere in there.
Unless the person who recoded this source - was an self centered egotistical Pratt who thinks he created the code.
( why does that remind me of someone ?? )

Anyway hope you find the version, or at least what source you are using.
Reply With Quote
  #5  
Old 21st January 2013, 12:38
Chez's Avatar
Chez Chez is offline
Senior Member
 
Join Date: Sep 2011
P2P
Posts: 278
Default
For statistics add this in index.php

PHP Code:
<h2>Tracker Statistics</h2>
<table width=100% border=1 cellspacing=0 cellpadding=10><tr><td align=center>
<table class=main border=1 cellspacing=0 cellpadding=5>
<tr><td class=rowhead>Max Users</td><td align=right><?=$maxusers?></td></tr>
<tr><td class=rowhead>Registered users <img src=pic/buddylist.gif></td><td align=right><?=$registered?></td></tr>
<tr><td class=rowhead>Unconfirmed users</td><td align=right><?=$unverified?></td></tr>
<tr><td class=rowhead>Warned Users <img src=pic/warned8.gif></td><td align=right><?=$warnedu?></td></tr>
<tr><td class=rowhead>Banned Users <img src=pic/warned1.gif></td><td align=right><?=$disabled?></td></tr>
<tr><td class=rowhead>Torrents</td><td align=right><?=$torrents?></td></tr>
<? if (isset($peers)) { ?>
<tr><td class=rowhead>Peers</td><td align=right><?=$peers?></td></tr>
<tr><td class=rowhead>Seeders</td><td align=right><?=$seeders?></td></tr>
<tr><td class=rowhead>Leechers</td><td align=right><?=$leechers?></td></tr>


<? } ?>
</table>
</td></tr></table>
and for online users add this

PHP Code:
<div id=container><div align=left  id=content><b>Active users - <?=$totalonline?></b>
__________________
http://www.bvlist.com/images/avatars/signaturepics/sigpic16443_2.gif
Reply With Quote
The Following User Says Thank You to Chez For This Useful Post:
nicukent (8th February 2013)
  #6  
Old 21st January 2013, 23:26
bestlap's Avatar
bestlap bestlap is offline
Senior Member
 
Join Date: Nov 2012
P2P
Posts: 51
Default
Thank you very mach! It works

Last edited by Krypto; 22nd January 2013 at 08:10. Reason: No need to Quote the post above
Reply With Quote
Reply

Tags
add , indexphp , statistics

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