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

yes something like that you can leave the .0 out. now just put it in the right place.
"clocktower, post: 42948":
any code for uploading a torrent,comments,forums,etc

of course there is but not posted here. on my site I give points for forum post, shoutbox post for uploading and filling request I give gigs. maybe one day I will post it here but it is not hard to do yourself. just a sql query in the right place will do it.
"clocktower, post: 42920":
is there a radio block that adds shoutcast? using winamp


if search says yes then yes and if search says no then no. so use the search ;)
ok this is how i did it. it should keep the new for 1 hour

find in functions.php:

$dispname = "<b>" . $smallname . "</b>";

add after:

$last = $CURUSER["last_browse"] - 3600;

// Start NEW! mod

if (sql_timestamp_to_unix_timestamp($row["added"]) >= $last)

$dispname .= "<b><font color=red> - ("._NEW."!)</font></b>";  

// end NEW! mod



now i decided to not change the last_browse in the mysql. this will update the last browse correctly.





find in torrents.php:



[code]if($CURUSER["view_torrents"]=="no")

show_error_msg("Error","You do not have permission to view torrents",1);
add after:


$noww = $now = time();

mysql_query("UPDATE users SET last_browse = $noww WHERE id=$CURUSER[id]") or sqlerr();



hopefully it works

well after some test it still does not only show for one hour so I guess back to the drawing board ;)
change your code to the svn code maybe that will fix it.

"SpaZiuR, post: 42767":
can you help me in the question i asked above?
it would help people out if you psted your pic for the new.png
Why did you donate? — 2008-05-20 13:17:50 in General Chat
Why did you donate? If you have not donated to Torrent Trader then the question is. Why have you not donated?

so I guess I will start. When I started looking for a tracker source code I stumbled upon Torrent Trader and saw the possibilities it has to offer. It is not just easy to mod but also the forums are nice. Most fourums out there are filled with useless post and luckly this site has not made it that far  ;)  so I figured $15 out of my pocket would not hurt anything and decided to help keep the site running. So to all who have not donated you do not have to dig in your pocket to far because $15 is nothing compared to other source codes which want a lot more money. Also the premium hacks and mods part is growing everyday, there you will find stuff that no other forum can offer unless they stole it from here ;)
i have not added enough links to go that far so I do not know exactly.
what is &bull; in your code used for?   ;)

edit: never mind now i understand it sorry for the dumb question.
just use the english from where he got the mod from

[url="http://www.torrenttrader.org/index.php?showtopic=3112&hl=warned+users"]http://www.torrenttrader.org/index.php?sho...hl=warned+users[/url]
nice port from V1
one small problem if you have most active block or other blocks that allow access to torrents then the users can get around this mod. also if they have the download link they can get around it. to fix this add the stuff below. of course there will be other places to put the parked(); but that depends on which hacks you have installed and what you want to block for example you may want to block the casino or the forums if you have these installed.

find in torrents-details.php:

dbconn();





add after:





parked();





now find in download.php:





dbconn();





add after:





parked();
this is what I have in my functions.php for the utc_to_tz maybe it will work if you stick that in your functions.

// Convert UTC to user's timezone

function utc_to_tz ($timestamp=0) {

GLOBAL $CURUSER;

if (!is_numeric($timestamp))

$timestamp = sql_timestamp_to_unix_timestamp($timestamp);

if ($timestamp == 0)

$timestamp = gmtime();



$timestamp = $timestamp + ($CURUSER['tzoffset']*60);

return date("Y-m-d H:i:s", $timestamp);

}



function utc_to_tz_time ($timestamp=0) {

GLOBAL $CURUSER;



if (!is_numeric($timestamp))

$timestamp = sql_timestamp_to_unix_timestamp($timestamp);

if ($timestamp == 0)

$timestamp = gmtime();



$timestamp = $timestamp + ($CURUSER['tzoffset']*60);

return $timestamp;

}
for staff panel. all I did was change the warned users code for this.

add in admincp.php:

print "<td align=center><a href=admincp.php?action=parked><img src=images/admin/confirmaccounts.gif border=0 width=32 height=32><br><center><b>Parked<BR>Users</center></b></a><BR></td>";
also add in admincp.php:




#======================================================================#

#   Parked users

#======================================================================#



if ($action == "parked") {

if ($CURUSER["class"] < "6"){

show_error_msg("Error","Sorry you do not have the rights to view this page!",1);

}

stdhead("Parked Users Management");

navmenu();





$res2 = mysql_query("SELECT COUNT(*) FROM users WHERE parked='yes'");

$row = mysql_fetch_array($res2);

$count = $row[0];



$perpage = 50;



list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, "admincp.php?action=parked&");



begin_frame("Parked Users Management");



echo $pagertop;

?>

<CENTER><table align=center cellpadding="0" cellspacing="0" class="table_table" width="100%" border="1">

<tr>

<td class=table_head align=center>Username</td>

<td class=table_head align=center>Added</td>

<td class=table_head align=center>Last Visit</td>

<td class=table_head align=center>Uploaded</td>

<td class=table_head align=center>Downloaded</td>

<td class=table_head align=center>Edit?</td>

</tr>

<?



$rqq = "SELECT id, username, last_access, added, uploaded, downloaded FROM users WHERE parked='yes' ORDER BY username $limit ";

$resqq = mysql_query($rqq);



while ($row = mysql_fetch_array($resqq)){

extract ($row);



echo "<tr><td class=table_col1><a href=account-details.php?id=$row[id]>$row[username]</a></td><td class=table_col2>".utc_to_tz($row['added'])."</td><td class=table_col1>$row[last_access]</td><td class=table_col2>".mksize($row["uploaded"])."</td><td class=table_col1>".mksize($row["downloaded"])."</td><td class=table_col2><a href=account-details.php?id=$row[id]>EDIT</a></td></tr>\n";

}



echo "</table></CENTER>\n";



print($pagerbottom);



end_frame();

stdfoot();

}

#======================================================================#

#  End Parked users

#======================================================================#



upload this pic to images/admin

this probably another reason why tbdev shut locked down the mods.  is that hard to give credit from where you got it?
nice mod  :)  two questions. does it use any or a lot of bandwidth from my site? when the names for the song refreash does it refreash only the block or the whole page?
give credit to the person that did this mod in version 1 or at least say it is prted from version 1 to version 2 please
the first one that sits under

if ($action == 'edituser'){

"AzuriS, post: 41615":
I've got 4



in admin-modtasks.php

wich one is the good one ?
if (!is_valid_id($userid))

show_error_msg("Editing Failed", "Invalid UserID",1);
well it looks like this what taken from the tbdev and not modded good enough for here. compare this version with the one in mods not completed and it may help. here is an extra part to it.

find in account-details.php

print("<tr><td>Downloaded</td><td align=left><input type=text size=30 name=downloaded value=\"$user[downloaded]\">&nbsp;&nbsp;".mksize($user[downloaded])."</tr>\n");





add below:





 print("<tr><td>Points Bonus</td><td align=left><input type=text size=4 name=seedbonus value=$user[seedbonus]></tr>\n");





find in admin-modtasks.php:





	if (!is_valid_id($userid))

show_error_msg("Editing Failed", "Invalid UserID",1);





add below:





$seedbonus = $_POST["seedbonus"];



$sbon = mysql_query("SELECT seedbonus FROM users WHERE id=$userid") or sqlerr();

if ($sbon) {

$sbonus = mysql_fetch_assoc($sbon);

if ($sbonus['seedbonus'] != $seedbonus) {

mysql_query("UPDATE users SET seedbonus=$seedbonus WHERE id=$userid") or sqlerr();

}

}
thank you
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