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] Anonymous uploads
Controls ·  Search New posts · Mark unread

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

Unknown User
2008-01-22 21:12:04
"Ezerbeth, post: 37854":
There is no Uploader name listed on torrents.php in standard 2.x, if you do you've applied a mod to do so and I'd need to see your torrenttable function to see how to adjust it correctly....

I'm working on that...

* Edit: See attached image for how far i've got.

torrenttable.PNG
torrenttable.PNG
Unknown User
2008-01-23 06:38:42
Nice work TS, I did this a while back on my site...

untitled.JPG
untitled.JPG
Unknown User
2008-02-29 11:27:08
hello, dsl for my english  :D

anonym ok when I edit torrent but in browse torrent not anonym evry time username?

to the last torrent upload idem????

please, help me :)
Unknown User
2008-05-28 22:41:47
The problem is in torrent details ""Added by" is not anonymous. Is it any fix for that?.

Thanks.
Unknown User
2008-12-07 12:41:08
how do stop the user name from being shown in the shoutbox here my query

mysql_query("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: [url="/torrents-details.php?id=".%24id.""]".$torrent."[/url] has been uploaded by [url="/account-details.php?id=".%24CURUSER%5B"]."]" .$CURUSER['username']. "[/url]', now(), '0')") or sqlerr(__FILE__,__LINE__);

thanks
Unknown User
2008-12-07 20:17:14
you could try this.

if ($anonyupload == "yes") {

mysql_query("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: ".$torrent." has been uploaded', now(), '0')") or sqlerr(__FILE__,__LINE__);



}else{



mysql_query("INSERT INTO shoutbox VALUES('', 'System', 'New Torrent: ".$torrent." has been uploaded by ."]" .$CURUSER['username']. "', now(), '0')") or sqlerr(__FILE__,__LINE__);

}
Unknown User
2009-03-12 14:21:43
k,but in peer list is stil  the name from the Uplader.

an one more problems,i can see the Torrent just in Index and not in Torrent search.
Unknown User
2009-03-12 16:19:43
"adaxx, post: 55055":
k,but in peer list is stil  the name from the Uplader.an one more problems,i can see the Torrent just in Index and not in Torrent search.

chances are as a staff member the uploader will show in the peer list. check it with a normal user account and see if the uploader is still showing.
Unknown User
2009-03-12 16:27:45
I check to whit normal user acount but stil the same.whit normal user acount i can see the Torrent just in Index page and not by browser torrents

and the name from Uploader is stil not anonym in the peer list Torrent details.
Unknown User
2009-03-17 09:23:47
Has this mod been included in TT 2.05?
Unknown User
2009-03-17 15:43:30
yeah
Unknown User
2010-09-01 08:26:18
if ($row["external"] != "yes"){<<<<<<<<<<<< that i can't find but i dont want. but all the other steps i did and did not succeed. is there something else i need or can do to make this mod work ?
Unknown User
2010-09-09 20:22:06
I have the problem that uploader is still showing in torrent-details and in viewsnatches.php

and super mod and Administrator is not anonymous in torrents.php

Is there a fix for this maybe mighty tt-gurus....

ps: I used the class change and checked as member.
Unknown User
2010-11-24 15:55:27
"Ezerbeth, post: 37775":
Ok due to growing amount of requests relating to, or limited by, anonymous uploads, I wrote a quick fix for it. The idea is to always insert an owner, but check for an anonymity flag for the torrent. That way mods will be easier to write, and stats and such would be easier to gather.
I'm hoping TS will add this into 2.04 if enough people want mods requiring this fix.

ALTER TABLE `torrents` ADD `anon` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no' AFTER `owner`;


torrents-upload.php

find:

		//anonymous upload

$anonyupload = unesc($_POST["anonycheck"]);

if ($anonyupload == "yes") {

$uploaderid = "0";

}else{

$uploaderid = $CURUSER["id"];

}
replace with:


		//anonymous upload

$anonyupload = unesc($_POST["anonycheck"]);

$uploaderid = $CURUSER["id"];



if ($anonyupload == "yes")  {

$anon = "yes";  

} else {

$anon = "no";

}





find:



		$ret = mysql_query("INSERT INTO torrents (filename, owner, name, descr, image1, image2, category, added, info_hash,		 

size, numfiles, save_as, announce, external, nfo, torrentlang) VALUES (".sqlesc($fname).", '".$uploaderid."',

".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$type."', '" . get_date_time() . "',

'".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."',

'".$langid."')");





replace with:



$ret = mysql_query("INSERT INTO torrents (filename, owner, anon, name, descr, image1, image2, category, added, info_hash,		 

size, numfiles, save_as, announce, external, nfo, torrentlang) VALUES (".sqlesc($fname).", '".$uploaderid."', '".$anon."',

".sqlesc($name).", ".sqlesc($descr).", '".$inames[0]."', '".$inames[1]."', '".$type."', '" . get_date_time() . "',

'".$infohash."', '".$torrentsize."', '".$filecount."', ".sqlesc($fname).", '".$announce."', '".$external."', '".$nfo."',

'".$langid."')");



(Or just add anon and '".$anon."' to the query if you're using a modified one...)





torrents-details.php



find:



//GET ALL MYSQL VALUES FOR THIS TORRENT

$res = mysql_query("SELECT torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id") or die(mysql_error());





replace with:



//GET ALL MYSQL VALUES FOR THIS TORRENT

$res = mysql_query("SELECT torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo, torrents.last_action, torrents.numratings, torrents.name, torrents.owner, torrents.anon,torrents.save_as, torrents.descr, torrents.visible, torrents.size, torrents.added, torrents.views, torrents.hits, torrents.times_completed, torrents.id, torrents.type, torrents.external, torrents.image1, torrents.image2, torrents.announce, torrents.numfiles, torrents.freeleech, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, torrents.numratings, categories.name AS cat_name, torrentlang.name AS lang_name, torrentlang.image AS lang_image, categories.parent_cat as cat_parent, users.username, users.privacy FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN torrentlang ON torrents.torrentlang = torrentlang.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id") or die(mysql_error());



(or add torrents.anon to the query if you're using a modified one)





find:



if ($row["username"])





replace with:



if ($row["anon"] == "no")







torrents-edit.php

find:



$updateset[] = "freeleech = '".$_POST["freeleech"]."'";





below, add:



$updateset[] = "anon = '" . ($_POST["anon"] ? "yes" : "no") . "'";







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>";  

}





below, add:



if (($site_config['ANONYMOUSUPLOAD']) && ($row['owner'])) {

echo "<tr><td align=right><B>Upload anonymous: </b></TD><TD><input type=\"checkbox\" name=\"anon\"" . (($row["anon"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" />(Your userid will not be associated to this upload)<br>";

}




That should be it. Tested on my test site, working fine. Now we can get to work on those mods requiring an owner  :)


Fehler

SQL-Befehl:

ALTER TABLE `torrents` ADD `imdb` LONGTEXT ` NOT NULL` default '0'

MySQL meldet:

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' NOT NULL` default '0'' at line 1

is this fault, please help :huh:
Unknown User
2012-01-11 13:53:34
in peer list and view snatched list the user is not anonymous. How to change it?
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