hello can you tell me the code to add below the file account.php so that the torrents in seed is visible when you click on my profile
thank you in advance for your help
thank you in advance for your help
$numtorrents = get_row_count("torrents", "WHERE owner = $id");
$numcomments = get_row_count("comments", "WHERE user = $id");
$numforumposts = get_row_count("forum_posts", "WHERE userid = $id");
$numseeding = get_row_count("peers", "WHERE userid = $id AND seeder = 'yes' ");echo $numseeding;
on 2021-08-08 14:04:32
$usersignature = stripslashes($CURUSER["signature"]);$numseeding = get_row_count("peers", "WHERE userid = $CURUSER[id] AND seeder = 'yes' ");<b><?php echo T_("PASSKEY"); ?>:</b> <?php echo $CURUSER["passkey"]; ?><br /><b><?php echo T_("Torrents Seeding"); ?>:</b> <?php echo $numseeding; ?><br />
on 2021-08-08 14:57:04
/////////////// MY TORRENTS ///////////////////if ($action=="seedingtorrents"){
$count = SQL_Query_exec("SELECT COUNT(id) FROM peers
WHERE peers.userid = $CURUSER[id]
AND peers.seeder = 'yes'" );
list($pagertop, $pagerbottom, $limit) = pager(50, $count, 'account.php?action=seedingtorrents&');
$test = SQL_Query_exec("SELECT * FROM torrents
INNER JOIN peers
ON torrents.owner = peers.userid
WHERE peers.userid = $CURUSER[id]
AND peers.seeder = 'yes'" );
begin_frame(T_("USER").": $CURUSER[username] (".T_("Currently seeding").")");
navmenu();
if (mysqli_num_rows($count) > 0) {
?>
<table class="f-border comment" cellpadding="10" border="0" width="100%">
<tr>
<th>name</th>
</tr><tr>
<?php
foreach ($test as $row) {
?>
<td><?php echo $test['name'] ?></td>
<?php
}
?>
</tr>
</table>
<br /><br />
<?php
echo $pagerbottom;
} else {
echo 'not seeding';
}
end_frame();
}


No users online
Torrents
Members
Online