View Single Post
  #3  
Old 2nd February 2013, 03:40
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
Default
Quote:
Originally Posted by bestlap View Post
Please help.. how I can to disable automatic warning for low ratio in TBDev 08
Code:
        $uped = mksize($CURUSER['uploaded']);
        $downed = mksize($CURUSER['downloaded']);
        if($CURUSER["downloaded"] > 0) {
            $ratio = $CURUSER['uploaded'] / $CURUSER['downloaded'];
            $ratio = number_format($ratio, 3);
            $ratio_1 = $ratio;
            $color = get_ratio_color($ratio);
            if($color)
                $ratio = "<font color=$color>$ratio</font>";
        }
        else
            if($CURUSER["uploaded"] > 0)
                $ratio = "Inf.";
            else
                $ratio = "---";

        if($CURUSER['donor'] == "yes")
            $medaldon = "<img src=pic/star.gif alt=donor title=donor>";

        if($CURUSER['warned'] == "yes")
            $warn = "<img src=pic/warned.gif alt=warned title=warned>";
and

Code:
    <?php

        if($ratio_1 < 0.75) {
            print ("<table align=center border=0 cellspacing=0 width=95% cellpadding=5 bgcolor=red><tr><td align='center' style='padding: 5px; background: red'>\n");
            print ("<b><font color=white>Warning: You have a low ratio! (< 0.75)</font></b>");
            print ("</td></tr></table>\n");
        }
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


Due to free time I'm able to help interested member's with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.
I'm able to install any tracker and mods including themes.

Please PM me

Reply With Quote