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

"SJC2TK, post: 70069":
do you mean first 25 , then next /prev at the bottom?

Hi Guys,

I was wondering if it's possible to adapt the the MOD from THIB ( wich is BTW excellent ) to show the same way under the account.php?action=mytorrents. The problem is that under MY TORRENT, it shows the UPLOAD and DOWNLOAD in burden way.  Would it be possible to distinguised the UPLOAD, DOWNLOAD and the CURRENTLY SEEDING?  In other words, the same way we see it in the TORRENT-DETAILS with adding the CURRENTLY SEEDING!

Thanx. Regards.



Hi Guys,

I am not a PHP programmer.  So this means if the CODE is not clean enough, be my guest and post yours.  This is a RECAP for showing the SIGNATURE

in COMMENTS, ACCOUNT, TORRENT DETAILS and the ADMINCP.PHP.  In fact, the addition of this code will post the IMAGE instead of a LINK.

This as been tested on version 2.06.

Note:  I suggest that you take the UPLOAD YOUR AVATAR MOD located at this post [url="http://www.torrenttrader.org/index.php?showtopic=7034&hl=upavatar%5C.php"]http://www.torrenttrader.org/index.php?sho...vatar\.php[/url] and change all the AVATAR word for SIGNATURES.

Please if you do so, do not forget to create yourself a folder called SIGNATURES in your root directory.

*****************************************************

The code below will add the signature in the COMMENTS.

In the backend folder, edit the FUNCTIONS.PHP

Find:

print("<td valign=top width='75%' class=table_col2>



Replace with:

print("<td valign=top width='75%' class=table_col2>$commenttext<br><br><br><br>");
if ( $usersignature <> "" )

{

echo "<img border='0' src='". stripslashes($row["signature"])."'></td>";

}

print("</tr></table><BR>\n");

***************************************************

The code below will add a signature log in the Account.

In your root folder, edit the ACCOUNT.PHP.

Find:

? print("<B>".SIGNATURE.""); ?>:</b>


Add Below:

<? 	
if ( $usersignature <> "" )

{

echo "<img border='0' src='". stripslashes( $CURUSER["signature"] )."'>";

}

?><br>

***************************************************

The code below will add the signature in the Admin Control Panel.

In the backend folder, edit the ADMINCP.PHP.

Find:

<td align="center"><a href=admincp.php?action=users><img src="images/admin/users.gif" border=0 width=32 height=32><br>Users</a><BR></td>



Add Below:

<td align="center"><a href=admincp.php?action=signature><img src="images/admin/avatar.gif" border=0 width=32 height=32><br>Signature Log</a><BR></td>



Find:

if ($action=="avatars"){
stdhead("Avatar Log");

navmenu();

begin_frame("Avatar Log");

$query = mysql_query("SELECT count(*) FROM users WHERE enabled='yes' AND avatar !=''");

$count = mysql_fetch_row($query);

$count = $count[0];

list($pagertop, $pagerbottom, $limit) = pager(50, $count, 'admincp.php?action=avatars&');

echo ($pagertop);

?>

<CENTER><TABLE class=table_table>

<TR>

<TD class=table_head><b>User</b></TD>

<TD class=table_head><b><center>Avatar</center></b></TD>

</TR><?

$query = "SELECT username, id, avatar FROM users WHERE enabled='yes' AND avatar !='' $limit";

$res = mysql_query($query);

while($arr = mysql_fetch_array($res)){

echo("<TR><TD class=table_col1><b><A href=\"account-details.php?id=" . $arr['id'] . "\">" . $arr['username'] . "</b></A></TD><TD class=table_col2>");

if (!$arr['avatar'])

echo "<img width=\"80\" src=images/default_avatar.gif></td>";

else

echo "<img width=\"80\" src=\"".htmlspecialchars($arr["avatar"])."\"></td>";

}

?>

</TABLE></CENTER>

<?

echo ($pagerbottom);

end_frame();

stdfoot();

}

Add Below the avatar frame:

/////list signatures
if ($action=="signature"){

stdhead("Signature Log");

navmenu();

begin_frame("Signature Log");

$query = mysql_query("SELECT count(*) FROM users WHERE enabled='yes' AND signature !=''");

$count = mysql_fetch_row($query);

$count = $count[0];

list($pagertop, $pagerbottom, $limit) = pager(15, $count, 'admincp.php?action=signature&');

echo ($pagertop);

?>

<CENTER><TABLE class=table_table>

<TR>

<TD class=table_head><b>User</b></TD>

<TD class=table_head><b><center>Signature</center></b></TD>

</TR><?

$query = "SELECT username, id, signature FROM users WHERE enabled='yes' AND signature !='' $limit";

$res = mysql_query($query);

while($arr = mysql_fetch_array($res)){

$usersignature = stripslashes(format_comment($arr["signature"]));

echo("<TR><TD class=table_col1><b><A href=\"account-details.php?id=" . $arr['id'] . "\">" . $arr['username'] . "</b></A></TD><TD class=table_col2>");

echo "<img border='0' src='". $usersignature ."'></tr>";

}

?>

</TABLE></CENTER>

<?

echo ($pagerbottom);

end_frame();

stdfoot();

}

///////////////////
Yep... Thanx to all who takes the time to repost.

Cheers.
Hi Guys,

Instead of having links in the ADMINCP.php, would it be possible to see the SIGNATURE in IMAGES, same as the avatar log.

Thanx. Regards.
"thib, post: 70124":
try this:

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

begin_frame("Local Activity");



$total = mysql_query("SELECT COUNT(*) FROM peers WHERE userid='$id' AND seeder='yes'") or die(mysql_error());

$row = mysql_fetch_array($total);

$count = $row[0];

if ($count) {

list($pagertop, $pagerbottom, $limit) = pager(10, $count, "account-details.php?id=$id&" . $addparam);

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



$seeding = peerstable($res);

 }

$total = mysql_query("SELECT COUNT(*) FROM peers WHERE userid='$id' AND seeder='no'") or die(mysql_error());

$row = mysql_fetch_array($total);

$count = $row[0];

if ($count) {

list($pagertop, $pagerbottom, $limit) = pager(10, $count, "account-details.php?id=$id&" . $addparam);

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



 $leeching = peerstable($res);

}

if ($seeding) {



print($pagertop);

print("<B>" . CURRENTLY_SEEDING . ":</B><BR>$seeding<BR><BR>");

print($pagerbottom);

}

if ($leeching) {



print($pagertop);

print("<B>" . CURRENTLY_LEECHING . ":</B><BR>$leeching<BR><BR>");

print($pagerbottom);

}

if (!$leeching && !$seeding)

print("<B>This member currently has no active transfers<BR><BR>");



end_frame();


P.S. the number in pager() must be the same in $perpage in the frame "uploaded torrents"

Hi Guys,

Thanx. That worked like a charm. Okay... for all the newbs like me that are asking themselves where to copy this code.  Well follow this.

Edit and find in account-detail the code below:

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

begin_frame("Local Activity");

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

if (mysql_num_rows($res) > 0)

$seeding = peerstable($res);

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

if (mysql_num_rows($res) > 0)

$leeching = peerstable($res);

if ($seeding)

print("<B>" . CURRENTLY_SEEDING . ":</B><BR>$seeding<BR><BR>");

if ($leeching)

print("<B>" . CURRENTLY_LEECHING . ":</B><BR>$leeching<BR><BR>");

if (!$leeching && !$seeding)

print("<B>This member currently has no active transfers<BR><BR>");

end_frame();

Replace EVERYTHING with the post of THIB!

Thanx. Regards.
"djhowarth, post: 69798":
it will need updating in svn to do with the new work you did... for trackers/files in db

Hi Guys,

Does this means that there are no patch or fix in a short term?  What about the other tracker that has thousands of torrents? Do they ask their member to disable DHT in their client.  I don't won't to take that chance.

Thanx. Regards.
"TorrentialStorm, post: 69795":
if ($external == "no") {

require_once("backend/benc.php");

$dict = bdec_file("$dir/$fname", filesize("$dir/$fname"));

$dict["value"]["info"]["value"]["private"]["type"] = "integer";

$dict["value"]["info"]["value"]["private"]["value"] = 1;

$fs = fopen("$torrent_dir/$fname", "w");

fwrite($fs, benc($dict));

fclose($fs);

$TorrentInfo = array();

$TorrentInfo = ParseTorrent("$dir/$fname");

$infohash = $TorrentInfo[1];

}

Try that.

Hi Guys,

All the error messages are gone when I press the UPLOAD BUTTON but the DHT is still active.  Well, I have attached the TORRENTS-IMPORT.PHP but I can confirm you that I have never put any kind of MOD in it.

Sorry guys! I just want to help to improve the software.

Thanx. Regards.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4663"]torrents_import.php[/url]
"TorrentialStorm, post: 69769":
Make the same changes in torrents-import.php.

Hi TorrentTialStorm,

I have copied and paste your code in the TORRENTS-IMPORT.PHP exactly the way you have wrote in the first post. These are the errors I get when I press on the UPLOAD BUTTON.

Warning: filesize() [function.filesize]: stat failed for /home/tfstorre/public_html/uploads/Acronis Knowledge Base.txt.torrent in /home/tfstorre/public_html/torrents-import.php on line 103

Warning: fopen(/home/tfstorre/public_html/uploads/Acronis Knowledge Base.txt.torrent) [function.fopen]: failed to open stream: No such file or directory in /home/tfstorre/public_html/backend/benc.php on line 170

Thanx. Regards.
Hi Guys,

I am using massively the MASS TORRENT IMPORT MOD.  I figured out that the MASS TORRENT IMPORT doesn't disable the DHT, wich is normal because the code is located in TORRENTS-UPLOAD.PHP and not TORRENT-IMPORT.PHP.  His there a way to put this MOD in the TORRENT-IMPORT.PHP file?

Thanx. Regards.
Hi Guys,

I am using massively the MASS TORRENT IMPORT MOD. I figured out that the MASS TORRENT IMPORT doesn't disable the DHT, wich is normal because the code is located in TORRENTS-UPLOAD.PHP and not in the TORRENT-IMPORT.PHP. His there a way to put the DISABLE DHT MOD in the TORRENT-IMPORT.PHP file?

Thanx. Regards.
"tiloup, post: 67268":
Vla un ti-hack qui va faire plaisir! lol
PS: vous devez appliquer sur votre th
Hi War02,

Thanx for trying but the only thing I meant was this.   Take a look at my SNAPSHOT.  When I do a search, my tracker BOX is about half a inch below the SEARCH BOX!  How can this be possible.!

Thanx. Regards.



Hey Guys,

Why is the SEARCH so low!  ( See Attachment ).  It's not supose to be DIRECTLY UNDER the search box?

Thanx. Regards.

Hey Guys,

Would there be an EASY WAY to ADD UP the # of torrents available in the SUBCATEGORY and the TOTAL at the BOTTOM.  As per example, DIVX........121

Thanx. Regards.
"war02, post: 66823":
if ($CURUSER["class"] < "8"){
change nr 8 to 7


Thanx for the Q.  It's working now!

Though, I was wondering if it would be possible to put a BUTTON called, CREATE and EMAIL + maybe a feature that would do an automatic search if the USERS exist. So when you press it, the NEW MEMBER would receive all their informations by email.

Cheers!
Hi Guys,

I have tried this mod but I can't make it working correctly.  When I click on the ADD USER, I get the following message:

Error

'Sorry you do not have the rights to view this page!'

Note:  I am logged in as an administrator.

I will post my PHP file.

Thanx. Regards.

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=4305"]admincp.php[/url]
Hello everyone..

First I would like to thank you for this piece of code...

Im an OLD ColdFusion programmer, I don't know allot about about PhP and or ASP, but someone asked if there was a STAFF SHOUT BOX code as well.

Using whats left of my 3 brain cells, I look the code for the normal shoutbox, added it twice, but on the second pic of codes, I change clearshoutbox to clearstaffshoutbox as well as in the seconds code, cgange the sql query to staff_shoutbox.

Code worked fine first try, maybe PhP will not be so hard to learn after all..

Hope this helps anyone else, I can send the code if anyone needs it, but heck, if i can figure it out, most if not all of you reading this can.
First, tyvm for the code sniplet, been looking for something like this.

Anyone have a list of the active sites, I know clue who does the prez except Street Prez and thats mostly in french.

Thanks in advance
Hi Guys,

I am a newbie to all this.  This is a new project to me and I feel overwhelmed.  I am willing to PAY to make it working. I tried for so many hours without any success.  Please, just PM me.  I am using version 2.06 of TorrentTrader.

Thanx. Regards.
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