torrents-upload.php
I would like to know how to add these boxes in torrents-upload.php
http://img687.imageshack.us/img687/535/imagen1fl.png |
there is alot more to it than just adding them to torrent-upload.php, you need sql and to edit torrent-edit.php and torrent-details.php etc... its more of a modification, the scripts are alread made for these if you search dude.
|
ok
thank you for answering most sought here found nothing more you can post the link or even speak the name of this mod that does that would be very grateful
|
all credit goes to walker1977
So this one has been in the premium section for about 2 years now so i decided it is time for the normal users to enjoy it and maybe build on it. Ok I got the idea from the IMDB mod. some torrents have screenshots so this lets your uppers up them with the torrent to display in the torrent details and to display in the torrent tables with the ballon mod. sql: Code:
ALTER TABLE `torrents` ADD `screens1` LONGTEXT NOT NULL; Code:
$descr = unesc($_POST["descr"]); Code:
///screenshot Code:
now find: Code:
$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."')"); directly after: Code:
name, Code:
screens1, screens2, screens3, screens4, Code:
".sqlesc($name).", Code:
".sqlesc($screens1).", ".sqlesc($screens2).", ".sqlesc($screens3).", ".sqlesc($screens4).", Code:
print (" Code:
// screenshots // Code:
$updateset[] = "name = " . sqlesc($name); Code:
///screenshot Code:
echo " Code:
///screenshots Code:
torrents.name, Code:
torrents.screens1, torrents.screens2, torrents.screens3, torrents.screens4, Code:
if ($row["image1"] != "" OR $row["image2"] != "") { Code:
echo " Code:
Code:
add after: Code:
$simg = @mysql_fetch_array(@mysql_query("SELECT screens1, screens2, screens3, screens4 FROM torrents WHERE id=$id")); Code:
and add the screens.php to your root folder I hope I did not forget anything enjoy :D http://i214.photobucket.com/albums/c...creenshot1.png http://i214.photobucket.com/albums/c...creenshot2.gif http://i214.photobucket.com/albums/c...creenshot3.gif |
where is the file??
|
All times are GMT +2. The time now is 16:18. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.