Screenshot for Torrents
This is the Screenshot Hack Updated for TorrentTrader Classic Beta 4
Open torrents-upload.php Search for: Code:
move_uploaded_file($tmpname, "$torrent_dir/$id.torrent"); Insert below: Code:
$foldername = "uploads/"; Search for : Code:
tr("" . NFO . "", " Insert below: Code:
tr("Screenshot", " Open take-edit.php Search for: Code:
preg_match('/^(.+)\.torrent$/si', $fname, $matches); Insert below: Code:
$foldername = "uploads/"; Open torrents-edit.php Search for: Code:
tr("" . NFO . ": ", "" . KEEP. "" . KEEPCURRENT . ": Code:
tr("Image: ", "" . KEEP. "" . KEEPCURRENT . ": Open torrents-details.php Search for: Code:
print(" Insert below: Search for: Code:
$res = mysql_query("SELECT torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.nfo AS nfo, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(torrents.last_action) AS lastseed, torrents.numratings, torrents.name, IF(torrents.numratings < $minvotes, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, 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.numfiles, categories.name AS cat_name, users.username FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id") Code:
$res = mysql_query("SELECT torrents.seeders, torrents.banned, torrents.leechers, torrents.info_hash, torrents.filename, torrents.img, torrents.nfo AS nfo, UNIX_TIMESTAMP() - UNIX_TIMESTAMP(torrents.last_action) AS lastseed, torrents.numratings, torrents.name, IF(torrents.numratings < $minvotes, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating, 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.numfiles, categories.name AS cat_name, users.username FROM torrents LEFT JOIN categories ON torrents.category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE torrents.id = $id") Insert into your DB: Code:
alter table torrents add( img varchar(255) NOT NULL default 'default.jpg') |
All times are GMT +2. The time now is 17:30. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.