I don't know is there such Topic but here i will show you how to make In torrent-details.php Cover

Here we will use ErvD Topic from here [url="http://www.torrenttrader.org/index.php?showtopic=13120"]http://www.torrenttrader.org/index.php?showtopic=13120[/url]

So first we create a sql table like in that mod:

ALTER TABLE `torrents` ADD `timages` TEXT NOT NULL;


In [size=10px][font='Arial Black']torrent-details.php[/font][/size]

delete:

torrents.image2,
find:


torrents.freeleech,



add after:



torrents.timages,



find:



print("<tr><td align=left><b>" . HITS . ":</b></td><td>" . $row["hits"] . "</td></tr>\n");



add after:



print ("<table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"6\"><tr>

<td class=table_col2 colspan=\"2\">

<center>".format_comment($row['timages'])."</center>

</td>

</tr>");



find and cut:



if ($row["image1"] != "" OR $row["image2"] != "") {

 if ($row["image1"] != "")

$img1 = "<IMG src=".$site_config["SITEURL"]."/uploads/images/$row[image1] width=150 border=0>";

 if ($row["image2"] != "")

$img2 = "<IMG src=".$site_config["SITEURL"]."/uploads/images/$row[image2] width=150 border=0>";

 print("<CENTER>". $img1 . "&nbsp&nbsp" . $img2."</CENTER><BR>");

}



paste after:



echo "<FIELDSET class=search><LEGEND></a><B>Details</B></LEGEND>";

echo "<table cellpadding=3 border=0 width=95%>";











In torrents-upload.php find:





, anon and add timages

example: , anon, timages





Find:





, $anon and add $timages

example: , $anon, $timages





Find:





$category = "<select name=\"type\">\n<option value=\"0\">" . CHOOSE_ONE . "</option>\n";







Add above:





print ("<tr><td align=right>Images: </td><td align=left><textarea name=\"timages\" rows=\"4\" cols=\"80\">[img=image] [img=image]

[img=image] [img=image] </textarea><br></td></tr>");





In torrents-edit.php find:





$updateset[] = "category = " . (0 + $type);





After add





$updateset[] = "timages = " . sqlesc($timages);





Find





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

if (!empty($_POST['tube']))

$tube = unesc($_POST['tube']);

$updateset[] = "tube = " . sqlesc($tube);





After add:





$timages = $_POST["timages"];

if ($timages) {

if (!preg_match('(gif|jpg|jpeg|png|JPG|PNG|GIF)', $timages))

stderr("Bad format");

}







Find:





echo "<tr><td align=right width=60><B>Name: </b></TD><TD><input type=\"text\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" size=\"55\" /></td></tr>";





After add:





echo "<tr><td align=right><B>Images: </b></td><td><textarea name=\"timages\" rows=\"4\" cols=\"80\">".$row['timages']."</textarea></td></tr>";




If any one could update this thread that images would auto resize i would be gratefull

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4587"]untitled.bmp[/url]

untitled.gif
untitled.gif
untitled.GIF
untitled.GIF