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
torrents favorite
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2024-03-02 13:10:23
hello and can you tell me if there is a hack or modification to add a button to add torrents to favorite to be able to download them later ??

bonjour et pouvez-vous me dire s'il y a un hack ou modification pour ajouter un bouton pour ajouter les torrents aux favoris pour pouvoir les télécharger plus tard ??
2024-03-02 15:54:03
Allo Niki

Il y a le mode Bookmark

https://torrenttrader.uk/post/4518
2024-03-02 17:08:33
merci pour l'info spiritblue je vais voir  😊

il fonctionne pour le v3 ??
Last edited by niki on 2024-03-02 17:09:44
2024-03-02 17:50:18
thank you and the torrent is added to the list but when you click on the torrent which is added to the list there is no redirection on the torrent there is this error message,..

This is not a valid ID


merci et le torrent est ajouter dans la liste mais quand on click sur le torrent qui est ajouter dans la liste il n'y a pas de redirection sur le torrent il y a ce message d'erreur,..

Ce n'est pas une pièce d'identité valide


I post the 3 files as attached files

je poste les 3 fichier en fichier joints

bookmark.zip
Download
2024-03-02 23:42:08
try my files, there are few things that I fixed if I remember correct. Take note that the images in my files are set to images/bookmark/ I always liked to keep my images in their own folder for easy reference. But, change mysql_ to mysqli_ and instances of countable. You can use my files for reference and either use them directly or see the changes and edit yours :)
files.rar
Download

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2024-03-03 00:03:22
2024-03-03 08:57:54
Hello MicroMonkey and a big thank you for your help and for the files provided, now everything works correctly and I also put the images in an images folder 😊

Bonjour MicroMonkey et un tout grand merci pour ton aide et pour les fichier fourni, maintenant tout fonctionne correctement et j'ai également mis les images dans un dossier images  😊
2024-03-05 11:29:26
Hello and can you tell me if it is possible to modify to display the total of torrent that are already saved by members and visible above the page bookmark

Example;

54 torrents are currently bookmarked by members.
2024-03-09 18:53:10
I will try that, but you can do this too if you want. This is neat, I didnt know about pluralize, so its neat, but anyways, you can add this to your torrents-details.php up top where the times_completed is to show how many times the torrent was bookmarked, I dont think it would be very hard to add a total of how many torrents have been bookmarked. I will fiddle when I get some free time.
		///BOOKMARK COUNT TEST
function pluralizeNumber($number, $singular, $plural) {
// Check if the number is not equal to 1, then use the plural form
return ($number != 1) ? "$number $plural" : "$number $singular";
}

/// original code
$bookmarkCountQuery = SQL_Query_exec("SELECT COUNT(*) as count FROM bookmarks WHERE torrentid = $row[id]");

if ($bookmarkCountQuery) {
$countRow = $bookmarkCountQuery->fetch_assoc();
$count = $countRow['count'];
$bookmarkText = T_("BOOKMARK_COUNT");
$timesText = pluralizeNumber($count, "time", "times");
echo "<b>$bookmarkText:</b> $timesText";
}
echo "<br />";
///END BOOKMARK COUNT TEST

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
Last edited by MicroMonkey on 2024-03-10 02:59:24
2024-03-12 16:10:27

Hello and thank you MicroMonkey I just put the code it works well 😉
2024-03-12 16:20:34
I modified the bookmark.php file to add the torrent category, seed and leech

j'ai modifier le fichier bookmark.php pour ajouter la catégorie de torrent, le seed et leech



<?php
#================================#
#       TorrentTrader 2.08       #
#  http://www.torrenttrader.org  #
#--------------------------------#
#       Modified by BigMax       #
#================================#

require_once("backend/functions.php");
dbconn(false);
loggedinonly();

stdhead("Your Bookmarks");
begin_frame("<center><b>::: Mes Torrents mis en favoris et en attente du download :::</b></center>");

$page = (int) $_GET['page'];
$perpage = 25;
$res = SQL_Query_exec("SELECT COUNT(*) FROM bookmarks WHERE userid = " . $CURUSER["id"] ."");
$row = mysqli_fetch_array($res);
$count = $row[0];
list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "bookmark.php?");

$where = "WHERE bookmarks.userid = " . $CURUSER["id"] ."";
$orderby = "ORDER BY added DESC";

$query = SQL_Query_exec("SELECT bookmarks.id as bookmarkid,
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 $orderby $limit");

print("<div style='margin-top:5px; margin-bottom:15px' align='center'><font size='2'>Vous avez mis en favoris <font color='#0080FF'><b>".$count."</b></font> torrent".($count != 1 ? "s" : "")."</font></div>");

$allcats = mysqli_num_rows($query);
if($allcats == 0) {
echo '<table class="f-border" width="90%" cellpadding="10" align="center"><tr><td class="f-border comment" align="center"><b>Votre liste de Torrents favoris est vide!</b></td></tr></table><br />';
} else {
If ($count > $perpage) { print($pagertop); }
?>
<table align="center" cellpadding="4" cellspacing="0" class="table_table" width="90%">
<tr>
<th class="table_head">Type</th>
<th class="table_head" align="left">Torrent Name</th>
<th class="table_head" align="left">Size</th>
<th class="table_head">Added</th>
<th class="table_head"><img src="images/bookmark/down.png" border="0" title="Download"></th>
<th class="table_head"><img src="images/bookmark/comment.png" border="0" title="Comments"></th>
<th class="table_head"><img src="images/bookmark/seed.gif" border="0" title="Seeders"></th>
<th class="table_head"><img src="images/bookmark/leech.gif" border="0" title="Leechers"></th>
<th class="table_head"><img src="images/bookmark/check.png" border="0" title="Completed"></th>



<th class="table_head"><img src="images/bookmark/trash.png" title="Delete Bookmarks" border="0"></th>
</tr>
<?php
while($row = mysqli_fetch_assoc($query))
{
$length = 40; //===| Cut name length
$smallname = htmlspecialchars(CutName($row["name"], $length));
$dispname = "<b>".$smallname."</b>

<br><br>
&nbsp;&nbsp;--&nbsp;&nbsp;<b>Genre : </b>
<span style='color:#FF4400'><b>" . $row["cat_name"] . "</b>
&nbsp;&nbsp;--[ &nbsp;<span style='color:#3b8299'><b>
" . mksize($row["size"]) ."
</b>&nbsp;]&nbsp;&nbsp;<img border=\"0\" src=\"images/seed.png
\" width='20' height='20' title=\"".T_("SEEDERS")."!\"></a>(<font color=#31B404><b>".$row['seeders']."</b></font>) - <img border=\"0\" src=\"images/leech.png\" width='20' height='20' title=\"".T_("LEECHERS")."!\"></a>(<font color=red><b>
".$row['leechers']."</b></font>)</b>&nbsp;&nbsp;";


if ($row["freeleech"] == 1)
{
$freeleech = "<img src='images/free.gif' border='0' title='Free Leech'>";
} else {
$freeleech = "";
}

echo "<tr>";
print ("<td class='table_col1' width='1%' align='center' valign='middle'>");
if (!empty($row["cat_name"])) {
print("<a href=\"torrents.php?cat=".$row["category"]."\">");
if (!empty($row["cat_pic"]) && $row["cat_pic"] != "")
print("<img border=\"0\" src=\"".$site_config['SITEURL']."/images/categories/".$row["cat_pic"]."\" title=\"".$row["cat_parent"].": ".$row["cat_name"]."\" />");
else
print($row["cat_parent"].": ".$row["cat_name"]);
print("</a>");
} else
print("---");
print("</td>\n");

echo "<td class='table_col2' nowrap='nowrap'>".(is_countable($expandrows) && count($expandrows)?"<a href=\"javascript: klappe_torrent('t".$row['id']."')\"><img border=\"0\" src=\"".$site_config["SITEURL"]."/images/bookmark/plus.gif\" id=\"pict".$row['id']."\" alt=\"Show/Hide\" class=\"showthecross\" /></a>":"")."&nbsp;<a title=\"".$row["name"]."\" href=\"torrents-details.php?id=$row[id]&hit=1\">$dispname</a> $freeleech</td>
<td class='table_col1'>".mksize($row["size"])."</td>
<td class='table_col2' align='center'>".date("j.M.Y<\\B\\R>H:i", utc_to_tz_time($row["added"]))."</td>
<td class='table_col1' align='center'><a href=\"download.php?id=".$row["id"]."&name=".rawurlencode($row["filename"])."\"><img src='images/bookmark/icon_down.png' border='0' title=\"Download Torrent\" /></a></td>
<td class='table_col2' align='center'><a href='comments.php?type=torrent&id=$row[id]'>".number_format($row["comments"])."</a></td>
<td class='table_col1' align='center'><font color='limegreen'>".number_format($row["seeders"])."</font></td>
<td class='table_col2' align='center'><font color='red'>".number_format($row["leechers"])."</font></td>
<td class='table_col1' align='center'><font color='darkorange'>".number_format($row["times_completed"])."</font></td>\n";

if ($site_config["ALLOWEXTERNAL"]){
if ($row["external"]=='yes')
print("<td class='table_col2' align='center'><img src='images/bookmark/t_extern.png' border='0' title='External&nbsp;Torrent'></td>\n");
else
print("<td class='table_col2' align='center'><img src='images/bookmark/t_local.png' border='0' title='Local&nbsp;Torrent'></td>\n");
}

echo "<td class='table_col1' align='center'><a href=\"takedelbookmark.php?bookmarkid=".$row['id']."\"><img src=\"images/bookmark/delete.png\" title=\"Delete\" border=\"0\"></a></td>\n";
echo "</tr>\n";
}
echo "</table>";
If ($count > $perpage) { print($pagerbottom); } else { print("<br />"); }
}
end_frame();
stdfoot();
?>





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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728