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
[FIX] Banning or Making Freeleech a torr
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-01-31 03:03:29
Hi there.

I don't know if the devs made these this way or just skipped them for now, but I found out that in TTv2.03 any torrent owner

can ban his own torrents from the tracker or make them freeleech any time via torrents-edit.php.

I made this little fix for those who want these actions to be available only to moderators and above.

So here we go:

In torrents-edit.php find:

echo "<tr><td align=right><B>Banned: </b></TD><TD><input type=\"checkbox\" name=\"banned\"" . (($row["banned"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" /> Banned?<br>";
and above add:


if ($CURUSER["edit_torrents"] == "yes")





Few lines later you'll find:



if ($row["external"] != "yes"){

echo "<tr><td align=right><B>Free Leech: </b></TD><TD><input type=\"checkbox\" name=\"freeleech\"" . (($row["freeleech"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />Leeching is free? (Only Uploading Counts)<br>";

}





and above add:



if ($CURUSER["edit_torrents"] == "yes")



And that should do it.

If you find any problem similar to this just let me know.

Bye...
Unknown User
2008-01-31 09:39:30
should use if ($CURUSER["edit_torrents"] == "yes") instead

- Added to SVN
Unknown User
2008-01-31 10:55:58
Thanks TorrentialStorm,

First post updated as well.
Unknown User
2008-02-04 19:47:05
Big Thanks :)
Unknown User
2008-08-20 23:35:31
Thank you for this change.
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