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
activity on account-details
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2011-02-07 04:45:14
using torrents.visible and torrents.banned may be better
Unknown User
2011-02-07 05:25:19
sure dj +1  ;)

but a dead torrent may be "visible = yes"  no?
Unknown User
2011-02-07 07:25:08
yep the cleanup turns the torrents visible no on cleanup if there is no activity
2011-02-08 00:31:11
"thib, post: 70388":
in account.php find :


where completed.userid='" . $CURUSER["id"] ."'
replace by


where completed.userid='" . $CURUSER["id"] ."' and (torrents.seeders > 0 OR torrents.leechers > 0)





in account-details.php find:



where completed.userid='$id'





replace by



where completed.userid='$id' and (torrents.seeders > 0 OR torrents.leechers > 0)




merci beaucoup thib,mais je trouve pas ces ligne dans account.php

~~~~~~~~~~~~~~~~~

thib thank you very much, but I do not find these online account.php

v2.06

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4735"]account.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4736"]account_torrents.php[/url]
account.php
Download
account_torrents.php
Download

Unknown User
2011-02-08 05:31:02
Quote:
merci beaucoup thib,mais je trouve pas ces ligne dans account.php
~~~~~~~~~~~~~~~~~

thib thank you very much, but I do not find these online account.php
of course it's for the mod with pagination.js above.

in your file account.php, i don't find anything for completed torrents

in your account_torrents.php

find :

$torrent = mysql_query("SELECT * FROM completed WHERE userid = ".$id." ORDER BY torrentid ASC ");
replace by :


$torrent = mysql_query("SELECT completed.torrentid,completed.date,torrents.visible, torrents.banned FROM completed LEFT JOIN torrents on completed.torrentid=torrents.id WHERE completed.userid = ".$id." AND torrents.visible = 'yes' and torrents.banned = 'no' ORDER BY completed.torrentid ASC ");



find :



$torrent2 = mysql_query("SELECT * FROM torrents WHERE id = ".$tor["torrentid"]." and (torrents.seeders > 0 OR torrents.leechers > 0) ");



replace by :



$torrent2 = mysql_query("SELECT * FROM torrents WHERE id = ".$tor["torrentid"]."  ");





after i thing you have some mistakes in your code to see ratio downloaded and uploaded

try this:

find and remove:



//Ratio sur chaque torrent

if($tor["downloaded"] == 0) {

$ratio = "Inf.";

}elseif($tor["uploaded"] == 0) {

$ratio = "<font color=red>0.00</font>";

}else{

$ratio = number_format($tor["uploaded"] / $tor["downloaded"], 2);

$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";

//$ratio = "$ratio";

}

//Fin ratio





find:



if (mysql_num_rows($res) > 0){

$arr = mysql_fetch_array($res);



replace by :



$arr = mysql_fetch_array($res);

if (mysql_num_rows($res) > 0){



find :



$fin=$tor["date"];

$down=mksize($tor["downloaded"]);

$up=mksize($tor["uploaded"]);



replace by :



//Ratio sur chaque torrent

if($arr["downloaded"] == 0) {

$ratio = "Inf.";

}elseif($arr["uploaded"] == 0) {

$ratio = "<font color=red>0.00</font>";

}else{

$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 2);

$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";

//$ratio = "$ratio";

}

//Fin ratio

$fin=$tor["date"];

$down=mksize($arr["downloaded"]);

$up=mksize($arr["uploaded"]);


in the query $tor you don't have uploaded and downloaded informations because it's table "completed" you must take them in peers table ;)
2011-02-09 01:33:57
Les fichiers
Unknown User
2011-06-07 16:28:08
this mod clashing with admin task. otherwise it is very good mod. problem is suppose i am going to change the rank of user id=58  selected power user thn click on submit after page refresh i got user id = 105/99/208( any other id which is not my selected) is now power user this is my account detail.php you can test it by uploading it in your site .

<?
//

//  TorrentTrader v2.x

// This file was last updated: 26/December/2007

//

// http://www.torrenttrader.org

//

//

require_once("backend/functions.php");

dbconn(false);

loggedinonly();

if($CURUSER["view_users"]=="no")

show_error_msg("Error","You do not have permission to view users",1);

stdhead("User CP");

$id = (int)$_GET["id"];

if (!is_valid_id($id))

show_error_msg("Can't show details", "Bad ID.",1);

$r = @mysql_query("SELECT * FROM users WHERE id=$id") or die(mysql_error());

$user = mysql_fetch_array($r) or  show_error_msg("Can't show details", "No user with ID $id.",1);

//add invites check here

if (($user["enabled"] == "no" || ($user["status"] == "pending")) && $CURUSER["class"] < 4)

show_error_msg("Error", "Unable to access these details at this time, this user is not currently active<BR><BR>This user may have had their account disabled.",1);

//get all vars first

//$country

$res = mysql_query("SELECT name FROM countries WHERE id=$user[country] LIMIT 1") or die(mysql_error());

if (mysql_num_rows($res) == 1){

$arr = mysql_fetch_assoc($res);

$country = "$arr[name]";

}

//$Download speed

$res = mysql_query("SELECT name FROM speed WHERE id=$user[download] LIMIT 1") or die(mysql_error());

if (mysql_num_rows($res) == 1){

$arr = mysql_fetch_assoc($res);

$downloadspeed = "$arr[name]";

}

//$Upload Speed

$res = mysql_query("SELECT name FROM speed WHERE id=$user[upload] LIMIT 1") or die(mysql_error());

if (mysql_num_rows($res) == 1){

$arr = mysql_fetch_assoc($res);

$uploadspeed = "$arr[name]";

}

//$ratio

if ($user["downloaded"] > 0) {

$ratio = $user["uploaded"] / $user["downloaded"];

}else{

$ratio = "---";

}

//$numtorrents

$res = mysql_query("SELECT COUNT(*) FROM torrents WHERE owner=$id AND (torrents.team = 0 OR torrents.team = ".$CURUSER['team']. " OR ".$CURUSER['class']." = 8)") or die(mysql_error());

$arr = mysql_fetch_row($res);

$numtorrents = $arr[0];

//$numcomments

$res = mysql_query("SELECT COUNT(*) FROM comments WHERE user=$id") or die(mysql_error());

$arr = mysql_fetch_row($res);

$numcomments = $arr[0];

$avatar = htmlspecialchars($user["avatar"]);

if (!$avatar) {

$avatar = "".$site_config["SITEURL"]."/images/default_avatar.gif";

}

//Layout

///rang klass uploader/////

$rangclass1 = "<option value=0>---Uploader Rank---</option>\n";

$res28 = mysql_query("SELECT * FROM rangclass ORDER BY name") or sqlerr();

while ($rank = mysql_fetch_array($res28))

$rangclass1 .= "<option value=$rank[id]" . htmlspecialchars($user['rangclass'] == $rank['id'] ? " selected" : "") . ">$rank[name]</option>\n";

$res22 = mysql_query("SELECT name,rangpic FROM rangclass WHERE id=$user[rangclass] LIMIT 1") or sqlerr();

if (mysql_num_rows($res22) == 1)

{

$arr22 = mysql_fetch_assoc($res22);

$rangclass = "<img src=/torrent/images/$arr22[rangpic] alt=\"$arr22[name]\" title=\"$arr22[name]\" style='margin-left: 5pt' align=top></td>";

}

//////end rang klass//////

stdhead("User Details for " . $user["username"]);

begin_frame("User Details for " . $user["username"] . "");

if ($user["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes")) {

?>

<table align="center" border="0" cellpadding="6" cellspacing="1" width="100%">

<tr>

<td width="50%" class="alt1"><B>Profile</B></td>

<td width="50%" class="alt1"><B>Additional Info</B></td>

</tr>

<tr valign="top">

<td align="left" class="alt2">

User Name: <?=htmlspecialchars($user["username"])?><BR>

User Class: <?=get_user_class_name($user["class"])?><BR>

Uploader Rank:<?=$rangclass?><BR>

Title: <I><?=htmlspecialchars($user["title"])?></I><BR>

Joined: <?=htmlspecialchars(utc_to_tz($user["added"]))?><BR>

Last Visit: <?=htmlspecialchars(utc_to_tz($user["last_access"]))?><BR>

Last Seen(Location): <?=htmlspecialchars($user["page"]);?><BR>

</td>

<td align="left">

Age: <?=htmlspecialchars($user["age"])?><BR>

Client: <?=htmlspecialchars($user["client"])?><BR>

Country: <?=$country?><BR>

Donated: $<?=htmlspecialchars($user["donated"])?><BR>

Warnings: <?=htmlspecialchars($user["warned"])?><BR>

<?if ($user["privacy"] == "strong"){ echo "Privacy: <b>Strong</b><BR>"; }?>

</td>

</tr>

<tr>

<td width="50%"><B>Statistics</B></td>

<td width="50%"><B>Other</B></td>

</tr>

<tr valign="top">

<td align="left">

Uploaded: <?=mksize($user["uploaded"])?><BR>

Downloaded: <?=mksize($user["downloaded"])?><BR>

Ratio: <?=$ratio?><BR>

Seedbonus: <?=($user["seedbonus"])?><BR>

Avg Daily DL: <?=mksize($user["downloaded"] / (DateDiff($user["added"], time()) / 86400))?><BR>

Avg Daily UL: <?=mksize($user["uploaded"] / (DateDiff($user["added"], time()) / 86400))?><BR>

Internet Speed: <img src="images/speed_up.png" alt="Download Speed" width="10" height="15" />

<? print("$uploadspeed") ?>

<img src="images/speed_down.png" alt="Upload Speed" width="10" height="15" />

<? print("$downloadspeed") ?><BR>

Torrents Posted: <?=$numtorrents?><BR>

Comments Posted: <?=$numcomments?><BR>

Reputation points  : <?=htmlspecialchars($user["reputation"])?><br>

<?php

$total = $user["reputation"];

$nbrpics = $total / 10;

$nbrpics = (int) $nbrpics;

echo "<p>";

while ($nbrpics > 0) {

echo '<img src="images/reppoint.gif">&nbsp;';

$nbrpics = $nbrpics - 1;

}

echo "</p>";

if($CURUSER["id"] != $user["id"]) {

?>

<FORM method="post" action="takereppoints.php?id=<?=$user["id"]?>&comefrom=account">

<TABLE>

<tr>

<td>Select how many points to give :</td>

</tr>

<tr>

<td><INPUT type="submit" name="givepoints" value="Thanks with one point"></td>

<td></td>

</tr>

</TABLE>

</FORM>

<?php

}

?>

</td>

<td align="left">

<img src=<?=$avatar?>><BR>

<a href=mailbox.php?compose&id=<?=$user["id"]?>>Send PM</a><BR>

<!-- <a href=#>View Forum Posts</a><BR>

<a href=#>View Comments</a><BR> -->

<a href=report.php?user=<?=$user["id"]?>>Report Member</a><BR>

<a href=friends.php?user=<?=$user["id"]?>>Add to my Friends</a><BR>

<?php

if ($CURUSER["control_panel"] == "yes"){

echo "<a href='takeflush.php?id=$id'>Flush Peer</a>";

}

?>

</td>

</tr>

<?

//team

$res = mysql_query("SELECT name,image FROM teams WHERE id=$user[team] LIMIT 1") or die(mysql_error());

if (mysql_num_rows($res) == 1) {

$arr = mysql_fetch_assoc($res);

echo "<tr><td colspan=2 align=left><B>Team Member Of:</B><BR>";

echo"<img src='".htmlspecialchars($arr["image"])."'><BR>".sqlesc($arr["name"])."<BR><BR><a href=teams-view.php>[View Teams]</a></td></tr>";

}

?>

</table>

<?

}else{

echo "<B>This member has elected to keep their details private</B><br><br><a href=#>Report Member</a><BR>";

}

end_frame();

if ($user["privacy"] != "strong" || ($CURUSER["control_panel"] == "yes")) {

begin_frame("Local Activity");

begin_block("".CURRENTLY_SEEDING."");

$res = mysql_query("SELECT torrent,uploaded,downloaded FROM peers WHERE userid= '$id' AND seeder='yes'");

$cpt=mysql_num_rows($res);

$rpp = 20;//Nombre de r
Unknown User
2011-10-14 20:17:30
moved to mods completed
Unknown User
2013-01-31 19:22:42
j'ai un petit probleme quand je met ce mod ???

=========================================

I have a small problem when I put this mod???



and / et

Unknown User
2013-02-01 01:06:34
Did someone want to make good code for compleated torrents, like code before..I see that, code is not working good..
Unknown User
2013-03-15 18:26:00
Tanks Man
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