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
message warning on low ratio
Controls ·  Search New posts · Mark unread

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

Unknown User
2009-02-24 16:59:38
hi nice mod here is my version it open a popup with thickbox

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3540"]lowratio.rar[/url]

don't pay attention to the lowratio.html i have coded this page in 30 seconds with notepad ++ and this page is non standard

put your own page but keep this

if (!$site_config["MEMBERSONLY"] || $CURUSER) {

//$ratio

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

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

}



if ($userratio < 1.0 ){

print( "<script type='text/javascript' src='/lowratio/jquery.js'></script>");

print( "<script type='text/javascript' src='/lowratio/thickbox.js'></script>");

print( "<link rel='stylesheet' href='/lowratio/thickbox.css' type='text/css' media='screen' />");

print( "<script type='text/javascript'> $(document).ready(function() {tb_show('', '/lowratio/lowratio.html?placeValuesBeforeTB_=savedValues&TB_iframe=true&height=250&width=275&modal=true', 'false');});</script>");
and add this folder to your root directory

<p style="text-align:center"><input type="submit" id="Login" value="&nbsp;&nbsp;Ok&nbsp;&nbsp;" onclick="self.parent.tb_remove();" />


(this is the code to close the iframe with a button)

enjoy

i have only 2 problems with this, the thickbox.css overwrite my tracker style ond my site is no more on center, but on the left

and a part on stdhead is over the page:



ps: sory for my bad english

edit: added the images to put in the images folder [url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3545"]images.rar[/url]
lowratio.rar
Download
Sans_titre.jpg
Sans_titre.jpg
images.rar
Download
Unknown User
2009-03-06 10:43:06
wooow nice mod m8.thx  :rolleyes:
Unknown User
2012-02-28 20:54:27
its working but problem is..whoever download free torrents for increase the ratio..its showing warning to them as well..like

uploaded-12gb and download-inf...

its showing to them as well..how to fix that..:o
2012-02-29 02:38:11
Cool!! thanks!  :o  :D
Unknown User
2012-02-29 09:20:42
"TheDarkDeadChoke, post: 80934":
its working but problem is..whoever download free torrents for increase the ratio..its showing warning to them as well..like

uploaded-12gb and download-inf...

its showing to them as well..how to fix that..  :o
+1 ...how to fix it?is easy to mix with AUTO RATIO WARNING?

//AUTO RATIO WARNING

$site_config["ratiowarn_enable"] = true; //Enable/Disable auto ratio warning

$site_config["ratiowarn_minratio"] = 0.4; //Min Ratio

$site_config["ratiowarn_mingigs"] = 5;  //Min GB Downloaded

$site_config["ratiowarn_daystowarn"] = 14; //Days to ban
Unknown User
2012-02-29 12:16:51
its already there on config.php..but i dont think so..it will work with this....
Unknown User
2012-03-03 18:33:20
stop bumping it only gets on my nerves now explain properly what you want it to do.
Unknown User
2012-03-04 00:47:52
i didt bump mate just answer @[url="../../user/48703-noname12/"]Noname12[/url]'s post,,i already posted

Quote:
Posted 28 February 2012 - 08:54 PM

its working but problem is..whoever download free torrents for increase the ratio..its showing warning to them as well..like

uploaded-12gb and download-inf...

its showing to them as well..how to fix that..
Unknown User
2012-03-04 01:23:54


if ( $CURUSER['downloaded'] > 0 )

{

$ratio = number_format($CURUSER['uploaded'] / $CURUSER['downloaded'], 2);



if ( $ratio < $site_config['ratiowarn_minratio'] )

{

show_error_msg('Warning', 'Enter Your message here!', 0);

}

}

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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728