Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   Youtube icon in browse.php?How? (http://www.bvlist.com/showthread.php?t=8992)

Leechbg 16th March 2013 10:01

Youtube icon in browse.php?How?
 
How i can put a youbube icon in browse.php to show if there was a link in upload.php ... >>

http://i.imgur.com/lELf0Ks.jpg


I use that code if in upload.php check BG Subtitles and in browse.php shows the flag :) but how do i do it for youtube trailer >>


PHP Code:

if ($row["bgsubs"] == "yes") {
    
$bgsubs '<img title="Bg sub in movie" src="images/bgsubs.gif" />';
  }
  else {   
$bgsubs='';
  } 

:sos::sos::sos:

mat22 16th March 2013 12:44

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 = '';
  }
  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.:)

wMan 16th July 2013 00:23

Quote:

Originally Posted by Leechbg (Post 39983)
How i can put a youbube icon in browse.php to show if there was a link in upload.php ... >>

@bittorrent ADD it not showing you what to do you have to try your self

firefly007 16th July 2013 03:09

Quote:

Originally Posted by Leechbg (Post 39983)
How i can put a youbube icon in browse.php to show if there was a link in upload.php ... >>


I use that code if in upload.php check BG Subtitles and in browse.php shows the flag :) but how do i do it for youtube trailer >>


PHP Code:

if ($row["bgsubs"] == "yes") {
    
$bgsubs '<img title="Bg sub in movie" src="images/bgsubs.gif" />';
  }
  else {   
$bgsubs='';
  } 

:sos::sos::sos:

Give me your bittorrent.php, browse.php upload.php, takeupload.php

Or even Better...

Give me the link to the tbdev source you using..

wMan 19th July 2013 21:06

Code:

ALTER TABLE `torrents` ADD `tube` varchar(80) NOT NULL default '';
@BITTORRENT.PHP ADD
Code:

$tube = ($row[tube]=="yes" ? " Tube" : "");
i do not know what you are using code wize
@BITTORRENT.PHP FIND

Code:

if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_browse)
@BITTORRENT.PHP ADD ON BOTH LINES WHERE YOU WANT
DO NOT COPY AND PAST THIS PART
Code:

print("\" $tube,$description\n");
else
print("\" $tube,$description\n");

Code:

$tube,
ill post the rest of this mod when i know what you are using

firefly007 19th July 2013 23:34

?????


All times are GMT +2. The time now is 17:28.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.