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...