Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[HACK] stats/ratio/donate on top of shou
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2008-03-08 03:29:42
this hack is for show ratio /stats/donate in shoutbox on the top of shoutbox like that:

screen



for this, in shoutbox.php find :

$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;
}else{

$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';

}

and after add:

$donated = ($CURUSER["donated"]);
$userdownloaded = mksize($CURUSER["downloaded"]);

$useruploaded = mksize($CURUSER["uploaded"]);

$privacylevel = $CURUSER["privacy"];

if ($CURUSER["downloaded"] > 0) {

$userratio = number_format($CURUSER["uploaded"] / $CURUSER["downloaded"], 2);

}else{

$userratio = "---";

}

print ("<center><font size=1 color=limegreen>" . Telecharger . ": $userdownloaded<-vos-statistiques->" . Partager . ": $useruploaded<br>". Ratio .": $userratio  -   " . Dons . ":</font><font size=1 color=yellow> $donated $<img src=images/star.gif alt=dons></font></center>");

its all!
Unknown User
2008-03-08 07:08:33
looks nice wtg
Unknown User
2008-03-08 20:44:30
thank you :)
Unknown User
2008-03-09 20:04:59
Litle modification

find:

print ("<center><font size=1 color=limegreen>" . Telecharger . ": $userdownloaded<-vos-statistiques->" . Partager . ": $useruploaded<br>". Ratio .": $userratio - " . Dons . ":</font><font size=1 color=yellow> $donated $<img src=images/star.gif alt=dons></font></center>");
replace with:




print ("<center><img src='images/down.gif' title='Downloaded'> : $userdownloaded<-your statistics-><img src='images/up.gif' title='Uploaded'> : $useruploaded<br>". Ratio .": $userratio <img src='images/d.jpg' title='Donated'>:</font><font size=1 color=red> $donated $<img src=images/star.gif alt=dons></font></center>");



demo:

upload this pic in your /image folder







shoutbox.JPG
shoutbox.JPG
down.gif
down.gif
up.gif
up.gif
d.jpg
d.jpg
Unknown User
2008-03-15 12:32:23
to center in IE7 please

remplace <center></center>

to

<div align='center'></div>







down.gif
down.gif
up.gif
up.gif
star.gif
star.gif
d.gif
d.gif
Unknown User
2012-03-17 14:53:56
how do you get it to english ???
Unknown User
2012-03-17 14:56:20
nevermind B)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728