Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > TBDev
Reply
  #1  
Old 16-03-13, 10:01
Leechbg's Avatar
Leechbg Leechbg is offline
Senior Member
 
Join Date: Feb 2013
P2P
Posts: 18
Default 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 ... >>

Click the image to open in full size.


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='';
  } 
Reply With Quote
  #2  
Old 16-03-13, 12:44
mat22's Avatar
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
  #3  
Old 16-07-13, 00:23
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Thumbs up
Quote:
Originally Posted by Leechbg View Post
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
Reply With Quote
  #4  
Old 16-07-13, 03:09
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 656
Default
Quote:
Originally Posted by Leechbg View Post
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='';
  } 
Give me your bittorrent.php, browse.php upload.php, takeupload.php

Or even Better...

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

Due to free time I'm able to help interested member's
with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.

I'm able to install any tracker and mods including themes.

Please PM me here! for more info!

Kind Regards Firefly


Reply With Quote
  #5  
Old 19-07-13, 21:06
wMan's Avatar
wMan wMan is offline
Banned
 
Join Date: Feb 2008
P2P
Posts: 1,433
Thumbs up
Code:
ALTER TABLE `torrents` ADD `tube` varchar(80) NOT NULL default '';
@BITTORRENT.PHP ADD
Code:
$tube = ($row[tube]=="yes" ? "&nbsp;<img src='pic/YOURUTBEHEREPIC.gif' align='right' title='Tube' alt='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

Last edited by wMan; 19-07-13 at 22:32.
Reply With Quote
  #6  
Old 19-07-13, 23:34
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 656
Default
?????
__________________

Due to free time I'm able to help interested member's
with their tracker.

Please Note!
Depending on your requests I will charge you for my assistance for Tracker installs and mods.
All my mods are custom and prices will very depending on the request.

I'm able to install any tracker and mods including themes.

Please PM me here! for more info!

Kind Regards Firefly


Reply With Quote
Reply

Tags
browsephphow , icon , youtube

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 18:27. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.