View Single Post
  #2  
Old 16th March 2013, 12:44
mat22 mat22 is offline
Senior Member
 
Join Date: Jun 2009
Latvia
Posts: 119
Default
Pretty much the same. Just put place where people can enter YouTube link in upload.php and then in file which shows torrenttable (I think in TBDev it was functions_torrenttable.php just like in YSE but not sure) add this:
Code:
if ($row["ytube"] == "yes") {
    $youtube = '<a href=""$row["youtube"]""><img title="YouTube" src="images/youtube.png" /></a>';
  }
  else {   $youtube='';
  }
Or something like that. Haven't used TBDev for a good time so not sure about syntax and stuff but I think you can figure it out. Of course, don't forget to add new row in database otherwise this definitely won't work. In takeupload.php you can add that it make it so if there is something in YouTube link field that it puts "ytube" in databse to "Yes" but otherwise it's "No". Just play with this code and you'll figure it out.:)
Reply With Quote