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-01-05 00:42:03
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

05_01_2009_00_59_29.png
05_01_2009_00_59_29.png
Unknown User
2009-01-05 06:09:58
thank u daffy!! it is a usefull mod but i think u have some were a mistake.

and if any one can please finish it:p :)
Unknown User
2009-01-05 12:54:20
yeh it shows when ure not logged in thats all that is a matter i think
Unknown User
2009-01-05 12:54:30
yeh it shows when ure not logged in thats all that is a matter i think
Unknown User
2009-01-05 12:58:27
no m8! it warning users that have low ratio.
Unknown User
2009-01-05 13:01:36
Try Changing This $userratio

to $CURUSER['ratio']
Unknown User
2009-01-05 13:33:12
"djhowarth, post: 51123":
yeh it shows when ure not logged in thats all that is a matter i think


first post updated.
Unknown User
2009-01-22 16:36:11
hello I can not log

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=3413"]index.php[/url]
index.php
Download
Unknown User
2009-01-22 16:45:19
try this m8!
Unknown User
2009-01-22 18:14:54
its me this :D
Unknown User
2009-01-22 18:49:48
m8? did works that php ho i gave u?
Unknown User
2009-02-08 00:21:40
Hi daffy,

Thanks for this mod.

Work fine !!

I have just modified the code if you want VIP members don't see this message.

Tested and working 100%.

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

//$ratio

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

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

}



if ((!$CURUSER) || (get_user_class($CURUSER) < "1,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>");

}

}

}


You can add ID class you want "1,2,3" etc...

;)

Also, because i'm french user, i put the code in my language.

thanks.

Pour les fran
Unknown User
2009-02-08 01:25:41
cool i didnt think about that actually, my vips are immuned to warnings but obviouslt with this they wernt lol, cheers jeb
Unknown User
2009-02-08 01:54:08
Hi,

Yes, your VIP members haven't warning messages but if they have low ratio, the message still appear !

With this modif', bye bye message  ;)
Unknown User
2009-02-08 02:59:14
i might make this appear also when they have HnR so that will stare in there eyes when they have HnR.. if they give me pennies and donate they will be ok  ;)  lol
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: 3
  • Members: 0
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728