Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Project U-232
Reply
  #1  
Old 10th December 2014, 19:54
nicukent nicukent is offline
Senior Member
 
Join Date: Sep 2009
P2P
Posts: 40
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 10th December 2014, 20:42
DND DND is offline
VIP
 
Join Date: Dec 2008
Posts: 1,241
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. Multiple source code engines
  5. Linux Server Administration (security, cryptography/encryption, proxy, load balancer, custom ddos firewall)
Reply With Quote
  #3  
Old 14th December 2014, 00:02
firefly007's Avatar
firefly007 firefly007 is offline
SUPPORT GURU
 
Join Date: Jun 2010
P2P
Posts: 721
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!!
__________________




Please Support Majority Report


You can contact me on Skype live:phesadent.elect but please let me know first.


If you are ever need me desperately then please email me at dan.oak44@gmail.com and I will contact u within a week.


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

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