Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader
Reply
  #1  
Old 29th March 2013, 18:26
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Post Poster link in Upload?
hello, i need a poster link in upload:D

Source: TT V2.7

Last edited by joeroberts; 10th March 2015 at 03:59.
Reply With Quote
  #2  
Old 29th March 2013, 18:41
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
What I do when I need things like this - just take field where you enter torrent name (which shows up in browse.php) and remake it for poster. For example, if you have name=\"title\" just make it name=\"poster\". Do it in upload.php and takeupload.php and then just add in database field called "poster" which is text, default is empty and it's not longer for 255 or 300 or whatever. That's all for most part.
Reply With Quote
  #3  
Old 29th March 2013, 21:41
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
poster link in upload lol will need alot more than that in there mat22 to get that working.

i have this for 2.08, it combines with imdb mod. if no poster added BUT imdb link added, it will pull poster in. so will need some workto take parts out OR if you have imdb installed it wont be so hard
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #4  
Old 30th March 2013, 00:37
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Default
ok daffy thx for advice

Last edited by Krypto; 30th March 2013 at 07:58. Reason: No need to Quote the post above
Reply With Quote
  #5  
Old 30th March 2013, 14:13
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
Quote:
Originally Posted by daffy View Post
poster link in upload lol will need alot more than that in there mat22 to get that working.

i have this for 2.08, it combines with imdb mod. if no poster added BUT imdb link added, it will pull poster in. so will need some workto take parts out OR if you have imdb installed it wont be so hard
I'm just saying what I'm using in my tracker (it's YSE though) and it works without any problems. Why build another Great Wall of China when you can modify something you already have? It's not rocket science we are talking about. In details of course you will need to make bigger modifications to show it but for putting link to poster in upload there is no big magic needed. And in details <img src=\"".$row['poster']."\"/> works like a charm for me (of course with all modifications for how it looks but this is it). With IMDB it's different, of course, but you don't need to make is complicated.
Reply With Quote
  #6  
Old 30th March 2013, 16:03
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
ok
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #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
  #8  
Old 30th March 2013, 18:47
daffy's Avatar
daffy daffy is offline
Senior Member
 
Join Date: Mar 2009
United Kingdom
Posts: 550
Default
ok let me smoke my spliff and il post the mod up for this.
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?"
"I Kill You!" simples


http://i.imgur.com/DtcRfH5.gif

I also Setup And Modify Trackers PM For Details
Reply With Quote
  #9  
Old 30th March 2013, 19:34
Extremlym's Avatar
Extremlym Extremlym is offline
Senior Member
 
Join Date: Oct 2012
P2P
Posts: 102
Red face
Quote:
Originally Posted by daffy View Post
ok let me smoke my spliff and il post the mod up for this.

THX :>
Reply With Quote
  #10  
Old 10th March 2015, 02:03
WhyMe WhyMe is offline
Banned
 
Join Date: Apr 2014
P2P
Posts: 160
Thumbs down
Quote:
Originally Posted by mat22 View Post
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.
for a start your using axam code will not work look at it

$tracker_lang lol tr
Reply With Quote
Reply

Tags
link , poster , upload

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 15:31. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.