Bravo List
Register
Go Back   > Bravo List > Source Code > Archive > OpenTracker
Reply
  #1  
Old 15-09-12, 07:46
Yupy's Avatar
Yupy Yupy is offline
Senior Member
 
Join Date: Nov 2008
P2P
Posts: 35
Default Torrent Genre By Yupy
This mod shows the genre of the movie, game, etc... ex. Horror / Thriller... etc.

First run this SQL:

Code:
ALTER TABLE `tracker_torrents` ADD `torrent_gen_torrent` VARCHAR( 42 ) NOT NULL;
Open: CMS\applications\torrent/upload.php and find:

Code:
$db->imdb = $_POST['imdb'];
Under it add:

Code:
$db->gen_torrent = $_POST['gen_torrent'];
Now open browse.php and find:

Code:
<a href="<?php echo page("torrent", "details", "", "", "", "id=" . $db->torrent_id); ?>"><?php echo $db->torrent_name; ?></a>
Exacly under it add: (Before Freeleech line...)

Code:
<br /><small><?php echo ($db->torrent_gen_torrent); ?></small>
Now open edit.php and find:

Code:
$db->torrent_category = $_POST['type'];
Under add:

Code:
$db->torrent_gen_torrent = $_POST['gen_torrent'];
Also in edit.php search for:

Code:
<tr>
                    <td class="heading" width="120px" valign="top" align="right"><b><?php echo _t("Additional"); ?></b></td>
                    <td valign="top" align="left">
                        <label><input type="checkbox" name="freeleech" <?php echo ($db->torrent_freeleech) ? "CHECKED" : "" ?> /><?php echo _t("Freeleech"); ?></label>
                    </td>
                </tr>
Under it add:

Code:
<tr>
                    <!---Torrent Genre By Yupy Start--->
                    <td class="heading" width="120px" valign="top" align="right"><b><?php echo _t("Genre"); ?></b></td>
                    <td valign="top" align="left">
                    <input type="text" name="gen_torrent" value="<?php echo $db->torrent_gen_torrent ?>" size="60">
                    <!---Torrent Genre By Yupy Start--->
                    </td>
                </tr>
Now in CMS\applications\torrent\tpl/upload.php find:

Code:
 <div class="col_100">
            <div class="col_15 align_right paddings"><b><?php echo _t("Additional"); ?></b></div>
            <label><input type="checkbox" name="freeleech" /><?php echo _t("Freeleech"); ?></label> 
        </div>
Under add:

Code:
<div class="col_100">
            <!---Torrent Genre By Yupy Start--->
            <div class="col_15 align_right paddings"><b><?php echo _t("Genre"); ?></b></div>
            <input type="text" name="gen_torrent" size="80"> 
            <!---Torrent Genre By Yupy Stop--->
        </div>
This is all...
Reply With Quote
  #2  
Old 23-09-12, 20:14
GuldlocK's Avatar
GuldlocK GuldlocK is offline
Senior Member
 
Join Date: Feb 2010
P2P
Posts: 22
Default nice
nice and thx it works fine for me :)
Reply With Quote
Reply

Tags
genre , torrent , yupy

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