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
Change Torrent Description On Upload..
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2012-11-30 18:18:31
This was written by a very good friend of mine for our site im sharing for anyone who wants it..

1st take a backup of your files..

open torrents-uploads.php

find:



rename("$torrent_dir/$fname", "$torrent_dir/$id.torrent");

underneath add:




// EDIT TORRENT COMMENT ////////////////////////////

require_once("backend/BDecode.php");

require_once("backend/BEncode.php");

$dict = BDecode(file_get_contents($site_config["torrent_dir"] . "/$id.torrent"));

$dict['comment'] = "Downloaded & Seeded By ".$site_config['SITENAME'];

$dict['creation date'] = gmtime();

file_put_contents($site_config["torrent_dir"] . "/$id.torrent", BEncode($dict));

// EDIT TORRENT COMMENT ////////////////////////////





Regards
2012-12-01 07:10:09
Thanks for sharing :)
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Unknown User
2012-12-01 15:19:16
Your welcome micromonkey
Unknown User
2012-12-01 16:17:42
nice but tech if you changed

$dict['comment'] = "Downloaded & Seeded By Movie-Torrentz.tv";



to



$dict['comment'] = "Downloaded & Seeded By ".$site_config['SITENAME'];



be 1 less edit hehe.





other ones you can add





 $dict['publisher'] = $site_config['SITEURL'];

 $dict['created by'] = "Torrent created by a ".$site_config['SITENAME']." uploader";

Unknown User
2012-12-01 19:00:24
what is it? any images?
Unknown User
2012-12-01 19:15:45
When a user downloads a torrent, it shows the description in the torrent with the message shown above, try clicking show torrent info on utorrent to see message..
Unknown User
2012-12-01 20:08:31
"ArcticWolf, post: 87105":
nice but tech if you changed

$dict['comment'] = "Downloaded & Seeded By Movie-Torrentz.tv";
to


$dict['comment'] = "Downloaded & Seeded By ".$site_config['SITENAME'];



be 1 less edit hehe.





other ones you can add





$dict['publisher'] = $site_config['SITEURL'];

$dict['created by'] = "Torrent created by a ".$site_config['SITENAME']." uploader";




1st post updated m8
2012-12-02 08:09:43
Thank you!
Unknown User
2012-12-02 12:23:29
"Movie-Torrentz, post: 87111":
When a user downloads a torrent, it shows the description in the torrent with the message shown above, try clicking show torrent info on utorrent to see message..
thanks for the reply
Unknown User
2013-02-20 10:51:14
Can we use special chars in the message (like é...) ?
Unknown User
2013-02-20 19:55:53
not really sure they might show if UTF-8 db and files saved in UTF-8 too

You could try changing it temp and then dling from your site a new torrent to see.
Unknown User
2019-11-20 17:44:43
how do i add more annouce trackers
"announce-list" :
222.png
222.png
Unknown User
2019-11-20 19:13:41
CODE

$dict = BDecode(BEncode($dict)); // double up on the becoding solves the occassional misgenerated infohash
$dict['comment'] = "Òîððåíò ñîçäàí äëÿ '$SITENAME'"; // change torrent comment
$dict['created by'] = "$CURUSER[username]"; // change created by
$dict['publisher'] = "$CURUSER[username]"; // change publisher
$dict['publisher.utf-8'] = "$CURUSER[username]"; // change publisher.utf-8
$dict['publisher-url'] = "$DEFAULTBASEURL/userdetails.php?id=$CURUSER[id]"; // change publisher-url
$dict['publisher-url.utf-8'] = "$DEFAULTBASEURL/userdetails.php?id=$CURUSER[id]"; // change publisher-url.utf-8
$infohash = sha1(BEncode($dict['info']));
if ($multi_torrent == 'yes') {
   if (empty($dict['announce-list']) && !empty($dict['announce']))
       $dict['announce-list'][] = array($dict['announce']);
   if (!empty($dict['announce-list'])) {
       $parsed_urls = array();
       foreach ($dict['announce-list'] as $al_url) {
           $al_url[0] = trim($al_url[0]); // Trim url for match below and prevent "Invalid tracker url." error message if URL contains " " before proto://
           if ($al_url[0] == 'http://retracker.local/announce')
               continue;
           if (!preg_match('#^(udp|http)://#si', $al_url[0]))
               continue; // Skip not http:// or udp:// urls
           if (in_array($al_url[0], $parsed_urls))
               continue; // To skip doubled announce urls
           $url_array = parse_url($al_url[0]);
           if (substr($url_array['host'], -6) == '.local')
               continue; // Skip any .local domains
           $parsed_urls[] = $al_url[0];
           // À âäðóã â òîððåíòå äâà îäèíàêîâûõ àííîíñåðà? Ïîòîìó REPLACE INTO
           sql_query('REPLACE INTO torrents_scrape (tid, info_hash, url) VALUES ('.implode(', ', array_map('sqlesc', array($next_id, $infohash, $al_url[0]))).')') or sqlerr(__FILE__,__LINE__);
       }
   } else
       stderr($tracker_lang['error'], "Â òîððåíò ôàéëå íåò announce-list è íå óêàçàí announce. Òàêîé ìóëüòèòðåêåðíûé òîððåíò èñïîëüçîâàòü íåëüçÿ.");
}
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728