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
User Posts

Go to Profile

oh i get it now . Thanks for ur reply
when i send invite to an email . he does not receive any mail .

Quote:
$site_config['MEMBERSONLY'] = true; //MAKE MEMBERS SIGNUP$site_config['MEMBERSONLY_WAIT'] = false; //ENABLE WAIT TIMES FOR BAD RATIO

$site_config['ALLOWEXTERNAL'] = true; //Enable Uploading of external tracked torrents

$site_config['UPLOADERSONLY'] = false; //Limit uploading to uploader group only

$site_config['INVITEONLY'] = false; //Only allow signups via invite

$site_config['ENABLEINVITES'] = true; // Enable invites regardless of INVITEONLY setting

$site_config['CONFIRMEMAIL'] = false; //Enable / Disable Signup confirmation email

$site_config['ACONFIRM'] = false; //Enable / Disable ADMIN CONFIRM ACCOUNT SIGNUP

$site_config['ANONYMOUSUPLOAD'] = false; //Enable / Disable anonymous uploads

$site_config['FORUMS'] = true;                          // Enable / Disable Forums

$site_config['FORUMS_GUESTREAD'] = true;                // Allow / Disallow Guests To Read Forum

using tt v 2.06

any help please ...........
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
i think this can easily reverse to individual user bann from download

can any one explain?

Quote:
////////////////////////Torrent Submit Banned?///////////////////////////////////////////////////$subbanned = mysql_query("SELECT id FROM users WHERE id=$CURUSER[id] AND uploadbanned='no' LIMIT 1") or err('Tracker error (1)');

if (mysql_num_rows($subbanned) < 1){

stdhead("Upload Banned");

begin_frame("You are Banned from Torrents Upload");

echo "<center><br><BR><B>You don't respect Torrent submission rules, a Admin had banned you from Torrents Upload.<br><b>";

echo "<br>If you have any complain, contact us :<ahref=mailto:$SITEEMAIL>$SITEEMAIL</a><br><BR></center>";

end_frame();

stdfoot();

exit;

}

/////////////////////////////////////////////////////////////////////////////////////////////////

what would be the code here  "Individual user from download torrent"
how to add only donated member not counting download?
how to create and submit site map for site created by torrent trader 2.06

and other seo optimization

Thanks in advance
ok finally got it working  :lol:

edited in the wrong place :/
Quote:
find and delete:CODE

case 'bookmark':

if ($variant == "bookmarks")

echo "<td class=ttable_col2 align=center><a href='takedelbookmark.php?bookmarkid=$id' title='Delete'><img src='images/delchat.gif' border='0' width='10px' alt='delete' title='delete' /></a></td>";

break;

replace with this:

CODE

case 'bookmark':

$bookt = mysql_query("SELECT torrentid FROM bookmarks WHERE torrentid = $row[id] AND userid = $CURUSER[id]");

if (mysql_num_rows($bookt) > 0)

print("<td class=ttable_col$x align=center><a href='takedelbookmark.php?bookmarkid=$id' title='Delete'><img src='images/delchat.gif' border='0' width='16px' alt='delete' title='delete' /></a></td>");

else

print("<td class=ttable_col$x align=center><a href='bookmarks.php?torrent=$id' title='Bookmark'><img src='images/MyBookmarks3.png' border='0' width='16px' alt='Bookmark' title='Bookmark' /></a></td>");

break;


applied this code and getting a error above the torrent table

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/backend/functions.php on line 1131
i have  a question here . if i want to bann a single ip thn how i will put it in? i mean in which field?  like - if a ip is 98.85.76.125

thn what i will put in 1st range and what in last range?
need givememore.php in English . i tried it via translator. but it can not translate accurately
i am running my site in vps taken from santrex. but their support is crap. and vps goes down or offline randomly and take long time to get back. now i have decided to chage my host

can anybody suggest me a new vps provider compared to similar price range of santrex . i can not afford so much money
Torrents Nuked — 2011-03-21 12:59:15 in v2 Only Mods Complete
what is this mod for? any anyone give me with a screen shot pls
Uploader Rank — 2011-01-22 09:48:21 in v2 Only Mods Complete
i have found a bug here. if i apply cooly's class color function nd apply uploader rank . thn the user name color does not appear untill i give a uploader rank. If i assign a uploader rank thn user color according to class works

so i have removed aboved code nd applied original cooly's class color fun nd color is working :S

any solution?
Uploader Rank — 2011-01-17 09:19:50 in v2 Only Mods Complete
after apply this code i get

Username:

Fatal error: Call to undefined function class_user() in /home/account.php on line 55
Uploader Rank — 2011-01-16 10:31:26 in v2 Only Mods Complete
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/account.php on line 55
Uploader Rank — 2011-01-15 19:23:05 in v2 Only Mods Complete
"SJC2TK, post: 69542":
its probably account-details you mean

yes. the problem is user himself can't see his uploader rank or medel where other people can see

so how can i make visible for user him self in his account detail
Uploader Rank — 2011-01-15 17:34:04 in v2 Only Mods Complete
"SJC2TK, post: 69514":
only add class_user() in account.php , everywhere else leave as is ....

could u please give the full link? i have tried different link . but making mistake making link for account.php
Uploader Rank — 2011-01-15 12:55:42 in v2 Only Mods Complete
i do not want to show it every where . can somebody just tell me what would be the code if i want to show it in account.php?
i am still not clear about the error

if ($CURUSER && $CURUSER["announce_read"] == "no" && $arr = announcement()) {

?>

<script type="text/javascript" src="scripts/announcement.js"></script>

<script type="text/javascript" src="scripts/preview.js"></script>

these the two line of index.php

.js files are in a folder named "scripts"

but whn i click to read announcement it opens "siteurl"/javascript (The requested URL /torrent/javascript was not found on this server.

but if i change

<b><a href="javascript":show_announcement()"><font color=white>New announcement! Please click here to read!</font></a></b></td></tr></table></span><br />

"javascript" to "scripts" thn i get siteurl/scripts  (you dont have access the files on this server.

here is my index php code

Quote:
//Announcementsif ($CURUSER && $CURUSER["announce_read"] == "no" && $arr = announcement()) {

?>

<script type="text/javascript" src="scripts/announcement.js"></script>

<script type="text/javascript" src="scripts/preview.js"></script>

<!-- annoucement start #<?=$arr[id];?> -->

<div id="dropin" style="position:absolute;visibility:hidden;left:300px;top:100px;width:500px;height

:100px">

<table border="0" cellpadding="0" cellspacing="0" width="650" class="error">

<tbody><tr><td class="none" style="padding: 2px 0 0 10px; background: red">

<font color=black><b>Title:</b> <?=$arr["subject"]?> -- <b>Created on"</b> <?=$arr["added"]?> -- <b>By:</b> <?=$arr["by"]?></b></font></td>

<td width="50" align="right" class="none" style="padding: 2px; background: red"><a href="#" onClick="dismissbox();return false"><img src="images/close.jpg" border="0"></a></td></tr>

<tr><td colspan="2" class=none width="650" style="padding: 0 0 0 10px;" bgcolor="#ffffff">

<p>

<?=format_comment($arr["message"])?>

</p>

<img id="loading" style=" visibility: hidden" src="images/load.gif">

<span style="color:red" name="preview" id="previewr" align="left">

<a href="#" onclick="javascript":clearannouncement(this.parentNode,'clear_ann.php')">Click here to mark announcement read.</a>

</span><br><br></form>

</td></tr></tbody></table>

</div>

<!-- annoucement end #<?=$arr[id];?>-->

<span id="new_ann" style="visibility: visible"><table border=0 cellspacing=0 cellpadding=10 bgcolor=red width=100% align=center><tr><td style='padding: 10px; background: red' align='center'>

<b><a href="javascript":show_announcement()"><font color=white>New announcement! Please click here to read!</font></a></b></td></tr></table></span><br />

<?php

}

.js files are in the /scripts folder on the root

any help would be really appropriated
when i click on read announcement i get for Forbidden

You don't have permission to access /torrent/javascript/ on this server  using santrex  tt 2.06

both the js files are in the /javascript folder ..............:rolleyes:
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