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
Warned Level
Controls ·  Search New posts · Mark unread

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

Unknown User
2010-08-19 19:13:52
Yes that would be nice.
Unknown User
2010-08-19 20:32:39
Read my post above, then follow on with this....

open account.php Find

<? print("<B>IP:</b> " . $CURUSER["ip"] . "\n"); ?><br>

Underneath Add

<? print("<B>Warnings:</b>" . get_user_warned_level($CURUSER["id"]) . "\n"); ?><br>

Unknown User
2010-08-20 07:20:28
Thanks djhowarth, your a champ, works perfect ;)
Unknown User
2010-09-04 07:41:42
missing condition of warning exemple

if $ratio<0.7

print "user warning 1"

else if $ratio<0.7 after gmt date 7days for warning 1

print"user warning 2"

else if .......

else $ratio>0.7

print warnin 0

Do you understand, sory for my bad english
Unknown User
2010-09-05 18:44:22
Have used your code DJHowarth and it
Unknown User
2010-09-29 16:00:15
sorry i didnt get back to you on this i must of read it and yep this is possible via cleanup however it may disturb the current warning system i havent had a look into it but at some stage i may do
Unknown User
2010-10-04 17:10:34
i would created reason for my diferent warning level look this and find where is my problem, thx.

account-detail.php

find

$enabled = $user["enabled"] == 'yes';
after add


$raison1 = format_comment($user["raison1"]);



find

  print("<tr><td>Compte:</td><td align=left><input name=enabled value=yes type=radio" . ($enabled ? " checked" : "") . ">Activ
Unknown User
2010-10-04 17:28:55
i will not create for this but i will create for my other mod i think...
Unknown User
2010-10-04 20:26:20
what mod?
Unknown User
2010-10-04 20:34:42
where it shows updatedby
Unknown User
2010-10-05 06:21:49
what's the rapport with updatedby?
Unknown User
2010-10-05 14:53:35
[url="http://www.torrenttrader.org/index.php?showtopic=12691"]http://www.torrenttrader.org/index.php?showtopic=12691[/url]
Unknown User
2010-10-07 15:32:54
Coming back to what freeinfo said this will autoban users who have more than 3 warnings and also will write a log

Add to cleanup.php in autoclean function

  $query = mysql_query("SELECT * FROM `users` WHERE `warned` = 'yes' AND `enabled` = 'yes' AND `status` = 'confirmed'");

 while ($row = mysql_fetch_array($query)){

 $warnings = mysql_fetch_row(mysql_query("SELECT COUNT(*) FROM `warnings` WHERE `userid` = " . $row["id"] . ""));

 if ($warnings[0] > 3){

 mysql_query("UPDATE `users` SET `enabled` = 'no' WHERE `id` = " . $row["id"] . " AND `warned` = 'yes'");

 write_log("<a href='account-details.php?id=" . $row["id"] . "'>" . $row["username"] . "</a> has been disabled for having " . $warnings[0] . " warnings.");

 }

 }


Untested So Please backup database and cleanup.php before trying...
Unknown User
2010-10-07 22:31:43
will try this at weekend Dj bud , but have cooly's H'nR mod added also , will see if it conflicts ......thanks
Unknown User
2010-10-12 18:39:16
[size=18px] i found my error, UPDATE 10/13/2010[/size]

i would created auto mod warned for 3 level

level 1 if ratio < 0.7

level2 if ratio <0.6

level3 if ratio <0.55

AFTER TABLE 'users' ADD 

warned   char(3) Non  no

warned2 char(3) Non  no  

warned3 char(3) Non  no  

raison1   text  Non  

raison2   text  Non

raison3   text  Non
in admin_modtask.php



shearch


	$invites = $_POST["invites"];







after add



   

$warned = $_POST["warned"];

$warned2 = $_POST["warned2"];

$warned3 = $_POST["warned3"];

$raison1 = $_POST["raison1"];

$raison2 = $_POST["raison2"];

$raison3 = $_POST["raison3"];





search





mysql_query("UPDATE users SET title='$title', downloaded='$downloaded',







add into line





, warned='$warned', warned2='$warned2', warned3='$warned3', raison1='$raison1', raison2='$raison2', raison3='$raison3',







open account_detail.php



find



		Country: <?=$country?><BR>





after add





<?  if ($user["warned3"]=="yes") print("<b>Niveau d'avertissement:</b> <BR><img src=$site_config[SITEURL]/images/warn_max.png>");

 else if ($user["warned2"]=="yes") print("<b>Niveau d'avertissement:</b> <BR> <img src=$site_config[SITEURL]/images/warn_2.png>");

 else if ($user["warned"]=="yes") print("<b>Niveau d'avertissement:</b> <BR> <img src=$site_config[SITEURL]/images/warn_1.png>");

 else print("<b>Niveau d'avertissement:</b> <BR> <img src=$site_config[SITEURL]/images/warn_0.png><BR><BR>");

?><BR><BR>





find



	$enabled = $user["enabled"] == 'yes';







add after



	$warned = $user["warned"] == 'yes';

$warned2 = $user["warned2"] == 'yes';

$warned3 = $user["warned3"] == 'yes';




find

	print("<tr><td>Compte:</td><td align=left><input name=enabled value=yes type=radio" . ($enabled ? " checked" : "") . ">Activ
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