ok this is taken from tbdev. this will display a message when the users ratio drops below 1:1
i placed this above site notice in index.php but you may want to put it in the header.php in themes to show on ALL pages..
open index.php
ADD
if (!$site_config["MEMBERSONLY"] || $CURUSER) {
//$ratio
if ($CURUSER["downloaded"] > 0) {
$userratio = number_format($CURUSER["uploaded"] / $CURUSER["downloaded"], 2);
}
if ($userratio < 1.0 ){
print("<p><center><table border=0 cellspacing=0 cellpadding=10 bgcolor=red><tr><td style='padding: 10px; background: red'><b><font color=white></center>");
print("Your ratio is too low! To view your ratio, click <a href=account-details.php?id=".$CURUSER["id"].">here</a>. For advice on how to improve your ratio, search the forums <a href=forums.php>here</a>.");
print("</font></b></td></tr></table></p>");
}
}
above
//Site Notice
if ($site_config['SITENOTICEON']){
begin_frame("" . NOTICE . "");
echo stripslashes($site_config['SITENOTICE']);
end_frame();
if you want this to show in all pages just add the code to you themes header.. i havnt done so as iv toooo many fkin themes to go thru. 1 day when i have about an ounce of weed to smoke i may start that lol...
CREDIT GOES TOO Laeborg