With this mod you can bring up your favorite torrents into a personal list.
Run into your database:
Into backend/functions.php find and replace entire case 'name' code:
With this new one:
Into torrents-details.php replace this line:
With this code:
Into account.php after this line:
Add this code:
Extract the attached archive bookmark.zip and upload the content into your root.
[ATTACH]2171[/ATTACH][ATTACH]2172[/ATTACH][ATTACH]2173[/ATTACH]
[url='http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6718']bookmark.zip[/url]
Run into your database:
CREATE TABLE IF NOT EXISTS `bookmarks` (
`id` int(10) unsigned NOT NULL auto_increment,
`userid` int(10) unsigned NOT NULL default '0',
`torrentid` int(10) unsigned NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
Into backend/functions.php find and replace entire case 'name' code:
case 'name':
$char1 = 35; //cut name length
$smallname = htmlspecialchars(CutName($row["name"], $char1));
$dispname = "<b>".$smallname."</b>";
$last_access = $CURUSER["last_browse"];
$time_now = gmtime();
if ($last_access > $time_now || !is_numeric($last_access))
$last_access = $time_now;
if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access)
$dispname .= "<b><font color='#ff0000'> - (".T_("NEW")."!)</font></b>";
if ($row["freeleech"] == 1)
$dispname .= " <img src='images/free.gif' border='0' alt='' />";
print("<td class='ttable_col$x' nowrap='nowrap'>".(count($expandrows)?"<a href="javascript: klappe_torrent('t".$row['id']."')"><img border="0" src="".$site_config["SITEURL"]."/images/plus.gif" id="pict".$row['id']."" alt="Show/Hide" class="showthecross" /></a>":"")." <a title="".$row["name"]."" href="torrents-details.php?id=$id&hit=1">$dispname</a></td>");
break;
With this new one:
case 'name':
$char1 = 35; //cut name length
$smallname = htmlspecialchars(CutName($row["name"], $char1));
$dispname = "<b>".$smallname."</b>";
$last_access = $CURUSER["last_browse"];
$time_now = gmtime();
if ($last_access > $time_now || !is_numeric($last_access))
$last_access = $time_now;
if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last_access) {
$new = "<img src='images/t_new.png' border='0' title='New Torrent'>";
} else {
$new = "";
}
if ($row["freeleech"] == 1) {
$freeleech = "<img src='images/free.gif' border='0' title='Free Leech'>";
} else {
$freeleech = "";
}
$bookt = SQL_Query_exec("SELECT torrentid FROM bookmarks WHERE torrentid = $id AND userid = $CURUSER[id]");
if (mysql_num_rows($bookt) > 0) {
$bookmark = "<a href='bookmark.php'><img src='images/bookmarked.png' border='0' title='Bookmarked'></a>";
} else {
$bookmark = "<a href='bookmarks.php?torrent=$id'><img src='images/bookmark.png' border='0' title='Bookmark this Torrent'></a>";
}
print("<td class='ttable_col$x' nowrap='nowrap'>".(count($expandrows)?"<a href="javascript: klappe_torrent('t".$row['id']."')"><img border="0" src="".$site_config["SITEURL"]."/images/plus.gif" id="pict".$row['id']."" alt="Show/Hide" class="showthecross" /></a>":"")." $bookmark <a title="".$row["name"]."" href="torrents-details.php?id=$id&hit=1">$dispname</a> $freeleech $new</td>");
break;
Into torrents-details.php replace this line:
print ("<b>".T_("LAST_CHECKED").": </b>" . date("d-m-Y H:i:s", utc_to_tz_time($row["last_action"])) . "<br /></td>");
With this code:
print ("<b>".T_("LAST_CHECKED").": </b>" . date("d-M-Y H:i:s", utc_to_tz_time($row["last_action"])) . "");
//===| Start Bookmarks
$bookt = SQL_Query_exec("SELECT torrentid FROM bookmarks WHERE torrentid = $row[id] AND userid = $CURUSER[id]");
if (mysql_num_rows($bookt) > 0)
print("<div style='margin-top:3px'><font color='#0080FF'><b>Bookmark</b></font>: <font color='#FF2200'><b>This torrent is already into</b></font> <a href='bookmark.php'><b>Your Bookmarks</b></a>. [<a href='takedelbookmark.php?bookmarkid=".$row[id]."'><b>Delete it from the list</b></a>]</div>");
else
print("<div style='margin-top:3px'><font color='#0080FF'><b>Bookmark</b></font>: <a href='bookmarks.php?torrent=$row[id]'><b>Add this torrent</b></a> to <a href='bookmark.php'><b>Your Bookmarks</b></a></div>");
//===| End Bookmarks
print("</td>");Into account.php after this line:
<?php print("<a href='mailbox.php'><font color="#FEFEFE"><b>".T_("YOUR_MESSAGES")."</b></font></a>");?>
Add this code:
|
<?php print("<a href=bookmark.php><font color="#FEFEFE"><b>Your Bookmarks</b></font></a>");?>
Extract the attached archive bookmark.zip and upload the content into your root.
[ATTACH]2171[/ATTACH][ATTACH]2172[/ATTACH][ATTACH]2173[/ATTACH]
[url='http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6718']bookmark.zip[/url]

