View Single Post
  #7  
Old 30th March 2013, 16:27
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
Here is what I'm using.

upload.php
Code:
tr($tracker_lang['img_poster'], $tracker_lang['avialable_formats'].": .gif .jpg .png<br /><b><u>Paraugs:</u></b> http://www.filebitz.org/pic/smilies/yes.gif<br /><br /><input type=\"text\" name=\"poster\" size=\"80\">\n", 1);
takeupload.php
Code:
$poster = $_POST["poster"];
		         if ($poster) {
                if (!preg_match('(gif|jpg|jpeg|png|JPG|PNG|GIF|JFIF|Exif|TIFF|RAW|BMP|PM|PGM|PBM|PNM)', $poster))
                        stderr("Wrong picture format!");
				 }
details.php
Code:
$poster = "<img width=\"212\" border='0' src='".$row['poster']."' />";
	if (!empty($row["poster"])) {
	tr($tracker_lang['img_poster'], $poster, 1);
	}
Of course, you still need to add it in database and in queries in takeupload.php and details.php but I think you'll know how to do that. And since this is code for YSE you might need to modify it to work for Torrent Trader.
Reply With Quote