|
#1
|
|||
|
|||
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; Code:
$db->imdb = $_POST['imdb']; Code:
$db->gen_torrent = $_POST['gen_torrent']; Code:
<a href="<?php echo page("torrent", "details", "", "", "", "id=" . $db->torrent_id); ?>"><?php echo $db->torrent_name; ?></a> Code:
<br /><small><?php echo ($db->torrent_gen_torrent); ?></small> Code:
$db->torrent_category = $_POST['type']; Code:
$db->torrent_gen_torrent = $_POST['gen_torrent']; 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> 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> 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> 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> |
#2
|
|||
|
|||
nice
nice and thx it works fine for me :)
|
Tags |
genre , torrent , yupy |
|
|