Bravo List
Register
Go Back   > Bravo List > Source Code > Trackers > Project U-232
Reply
  #1  
Old 10-12-14, 19:54
nicukent's Avatar
nicukent nicukent is online now
Senior Member
 
Join Date: Sep 2009
P2P
Posts: 30
Thumbs up U-232 V2 YouTube in details
sql:
Code:
  1. ALTER TABLE `torrents` ADD `tube` varchar(80) NOT NULL default '';
details.php find big query:
Code:
  1. $res = mysql_query("SELECT torrents.seeders...
add:
Code:
torrents.tube
find:
Code:
  1. $HTMLOUT .= tr("{$lang['details_visible']}", "<b>{$lang['details_no']}</b>{$lang['details_dead']}", 1);
under add:
Code:
  1. if (!empty($row["tube"]))
  2. $HTMLOUT .= "<tr><td class='rowhead'>{$lang['details_tube']}</td><td align='left'><embed src='". str_replace("watch?v=", "v/", htmlspecialchars($row["tube"])) ."' type=\"application/x-shockwave-flash\" width=\"500\" height=\"410\"></embed></td></tr>\n";
upload.php find
Code:
  1. <tr>
  2. <td class='heading' valign='top' align='right'>{$lang['upload_description']}</td>
  3. <td valign='top' align='left'><textarea name='descr' rows='10' cols='80'></textarea>
  4. <br />({$lang['upload_html_bbcode']})</td>
  5. </tr>
under add:
Code:
  1. <tr>
  2. <td class='heading' valign='top' align='right'>{$lang['upload_tube']}</td>
  3. <td valign='top' align='left'><input type='tube' name='tube' size='80'>
  4. <br />({$lang['upload_tube_notice']})</td>
  5. </tr>
takeupload.php find:
Code:
  1. $descr = unesc($_POST["descr"]);
under add:
Code:
  1. $tube = unesc($_POST["tube"]);
find big query:
Code:
  1. $ret = mysql_query("INSERT INTO torrents...
after
Code:
visible
add:
Code:
tube
after
Code:
  1. $CURUSER["id"], "no"
add:
Code:
$tube
lang_details.php add:
Code:
  1. 'details_tube' => "Youtube trailer.",
lang_upload.php add:
Code:
  1. 'upload_tube' => "Youtube link.",
  2. 'upload_tube_notice' => "For Samples Should be in the format of <a href='http://www.youtube.com/watch?v=TYxbGgeeVmI'>http://www.youtube.com/watch?v=TYxbGgeeVmI</a>",
open edit.php add
Code:
  1. $HTMLOUT .= tr($lang['edit_tube'], "<input type='text' name='tube' size='80' value='" . htmlspecialchars($row["tube"]) . "' alt='' /><br />({$lang['edit_tube_notice']})", 1);
lang_edit.php add
Code:
  1. 'edit_tube' => "Youtube link.",
  2. 'edit_tube_notice' => "For Samples Should be in the format of http://www.youtube.com/watch?v=TYxbGgeeVmI",
open file takeedit.php and add
Code:
  1. $tube = $_POST["tube"];
  2. $updateset[] = "tube = " . sqlesc($tube);
Enjoy!
Reply With Quote
  #2  
Old 10-12-14, 20:42
DND's Avatar
DND DND is offline
Support
 
Join Date: Dec 2008
Posts: 1,025
Default
and why do ya copy mods from there and post them here ? no credits, no nothing.. reason ?
i think people can go over there to read them :)
__________________
Need HELP!? I can install:

  1. Server/VPS (Debian,CentOS,Ubuntu,Fedora, FreeBSD) Optimization and ... + Modules
  2. Webserver Windows/Linux (Apache/Lighttpd/Nginx/Mysql/PhpMyAdmin/SSL) Optimization and ... + Modules
  3. Seedbox Windows/Linux (uTorrent,rTorrent,libTorrent,ruTorrent) + Modules
  4. TBDev Support
  5. Gazelle Support Install
  6. TSSE Install Support
Reply With Quote
  #3  
Old 14-12-14, 00:02
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 656
Default
Quote:
Originally Posted by DND View Post
and why do ya copy mods from there and post them here ? no credits, no nothing.. reason ?
i think people can go over there to read them :)
I agree About crediting the coder but I see no problem in posting it here, to be honest!!
__________________

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
details , u232 , v2 , 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 19:57. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2018, vBulletin Solutions Inc.