Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Mods & Themes (http://www.bvlist.com/forumdisplay.php?f=109)
-   -   How to add statistics in index.php ? (http://www.bvlist.com/showthread.php?t=8783)

bestlap 17th January 2013 18:06

How to add statistics in index.php ?
 
Hi everyone :) how to add statistics in index.php ?

Users:
Torrents:
seed
leech........

Chez 17th January 2013 18:47

What source do you have?

bestlap 17th January 2013 22:44

Quote:

Originally Posted by Chez (Post 38954)
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:

Статистика

Регистрирани потребители151,602
Торенти28,941
Пиъри5,901
Сийдъри5,020
Лийчъри881
Съотношение Сийдъри/Лийчъри(%)570

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 ??

fireknight 20th January 2013 04:00

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.

Chez 21st January 2013 12:38

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>


bestlap 21st January 2013 23:26

Thank you very mach! It works


All times are GMT +2. The time now is 14:49.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.