Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Bookmark Torrents for 2.08
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2013-05-07 05:06:12
With this mod you can bring up your favorite torrents into a personal list.

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>":"")."&nbsp;<a title="".$row["name"]."" href="torrents-details.php?id=$id&amp;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>":"")."&nbsp;$bookmark <a title="".$row["name"]."" href="torrents-details.php?id=$id&amp;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>. &nbsp; [<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:

&nbsp;|&nbsp;
<?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]
torrents.png
torrents.png
details.png
details.png
bookmarks.png
bookmarks.png
bookmark.zip
Download
Unknown User
2013-05-07 18:44:12
thank you  [url="https://www.torrenttrader.org/user/53126-bigmax1/"]BigMax1[/url]
Unknown User
2013-05-07 21:16:38
What exactly does this bookmark,?
Unknown User
2013-05-07 21:29:38
if you want to follow your favorite torrent
Unknown User
2013-05-07 21:58:10
"Jessy, post: 90239":

if you want to follow your favorite torrent


thank you
Unknown User
2013-05-08 04:06:56
With this mod you can bring your favorite torrents into a personal list.
Unknown User
2013-05-11 13:48:48
Hi,

After installing this mod I get DB error

Quote:
Database Error in bookmark.php on line 49: Unknown column 'torrents.sticky' in 'field list'. Query was: SELECT bookmarks.id as bookmarkid, torrents.sticky, torrents.rosub, torrents.description, torrents.size, torrents.freeleech, torrents.external, torrents.id, torrents.category, torrents.name, torrents.filename, torrents.added, torrents.banned, torrents.comments, torrents.seeders, torrents.leechers, torrents.times_completed, categories.name AS cat_name, categories.parent_cat AS cat_parent, categories.image AS cat_pic FROM bookmarks LEFT JOIN torrents ON bookmarks.torrentid = torrents.id LEFT JOIN categories ON category = categories.id WHERE bookmarks.userid = 1 ORDER BY added DESC LIMIT 0,25.
Unknown User
2013-05-11 18:54:19
I have a few extra mods installed and I forgot by these, sorry...
I updated the attached archive, now it must work properly.
Unknown User
2013-05-11 18:56:50
this mods work number one thanks bigmax1  :)
Unknown User
2013-05-12 04:00:37
YES   :)   ...now works perfectly. Thank you so much BigMax1
Unknown User
2013-07-24 00:18:54
Thanks [url="https://www.torrenttrader.org/user/53126-bigmax1/"]BigMax1[/url], MOD applied on v.2.08, looks great, little problem am facing if anyone can help.
After applying this Mod i found 2 Sql error's, here is in backend/function.php

Database Error in backendfunctions.php on line 1243: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1. Query was: SELECT torrentid FROM bookmarks WHERE torrentid = 750 AND userid = .

[color=rgb(0,0,0)][size=10px]Here is Line 1243-49 in function.php[/color][/size]

$bookt = SQL_Query_exec("SELECT torrentid FROM bookmarks WHERE torrentid = $id AND userid = $CURUSER[id]");    if (mysql_num_rows($bookt) > 0) {        $bookmark = "";    } else {        $bookmark = "";    }

2nd Error at torrents-detail.php here is:

Database Error in torrents-details.php on line 266: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1. Query was: SELECT torrentid FROM bookmarks WHERE torrentid = 89 AND userid = .

Line 266 of torrents-detail.php

$bookt = SQL_Query_exec("SELECT torrentid FROM bookmarks WHERE torrentid = $row[id] AND userid = $CURUSER[id]");
if (mysql_num_rows($bookt) > 0)

Cheer's

ThunderBot
Unknown User
2013-07-24 02:29:34
You are prob trying to view torrent details not logged in aka no $CURUSER..
in functions
replacing

   $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>":"")."&nbsp;$bookmark <a title="".$row["name"]."" href="torrents-details.php?id=$id&amp;hit=1">$dispname</a> $freeleech $new</td>");

with

   if($CURUSER) {
   $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>":"")."&nbsp;$bookmark <a title="".$row["name"]."" href="torrents-details.php?id=$id&amp;hit=1">$dispname</a> $freeleech $new</td>");
   } else {
                       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>" : "") . "&nbsp;<a title="" . $row["name"] . "" href="torrents-details.php?id=$id&amp;hit=1">$dispname</a><br>$descrs</td>");
   }

And torrents-details
replace

   //===| 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>. &nbsp; [<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

with

   //===| Start Bookmarks
   if($CURUSER) {
   $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>. &nbsp; [<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    
Unknown User
2013-07-24 06:21:13
Thanks a lot [url="https://www.torrenttrader.org/user/33545-arcticwolf/"]ArcticWolf[/url]. Yep, you are very right.

Quote:
[color=rgb(40,40,40)]You are prob trying to view torrent details not logged in aka no $CURUSER..[/color]

[size=18px]Problem resolved, no further sql error logged.[/size]

I observe some missing parameter in this MOD, or may be other reason...

Once torrent Bookmarked, and am watching list of my bookmarked torrents, Now i like to go to torrent which is already at my bookmarked list. i clicked on torrent name like in picture

:

my action not routing me to mentioned torrent, but showing me, like in the below picture:



Yes when i hit category icon it will lead me to category, but torrent name not lead me to torrent detail.Help needed please..

Again Thanks a lot for such great help.(Above post)

Cheer's

ThunderBot
Unknown User
2013-08-17 19:51:59
"ThunderBot, post: 91467":

Thanks a lot [url="https://www.torrenttrader.org/user/33545-arcticwolf/"]ArcticWolf[/url]. Yep, you are very right.

[size=18px]Problem resolved, no further sql error logged.[/size]

I observe some missing parameter in this MOD, or may be other reason...

Once torrent Bookmarked, and am watching list of my bookmarked torrents, Now i like to go to torrent which is already at my bookmarked list. i clicked on torrent name like in picture

:

my action not routing me to mentioned torrent, but showing me, like in the below picture:



Yes when i hit category icon it will lead me to category, but torrent name not lead me to torrent detail.Help needed please..

Again Thanks a lot for such great help.(Above post)

Cheer's

ThunderBot
Hy

"That's not a valid ID error" :

bookmark.php

Find :

torrents-details.php?id=$id&amp;hit=1

replace

torrents-details.php?id=$row[id]&amp;hit=1

;]
Unknown User
2013-08-17 21:38:18
"Omli, post: 91787":

Hy

"That's not a valid ID error" :

bookmark.php

Find :

torrents-details.php?id=$id&amp;hit=1

replace

torrents-details.php?id=$row[id]&amp;hit=1

;]
Thank you so much, work like a charm  :)
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728