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

New mailbox.php — 2015-05-04 07:04:18 in v2.08 Mods Completed
Hello

Thanks for this new mailbox, it's verry amazing and nice, i like it

If when you click on subject to see the message it mark automatic read it will be more nice

i tried to make it but fail,

<a href=\"javascript:read($arr[id]);\">with onclik=mark but not work

i will try again
Or short_open_tag = On
"UFFENO1, post: 92904":

I need some help here.   :rolleyes:  I can not make this work at all lol.  When i try to upload a file nothing happends. No error, nothing in datbase.  :(

Same probleme
If you have approval torrents


   // Start Announcement for torrents approval
   if ($CURUSER["class"]>="6") {
   $res_torrents = mysql_query("SELECT COUNT(*) FROM torrents WHERE safe = 'no'");
   $arr_torrents = mysql_fetch_row($res_torrents);
   $num_torrents = $arr_torrents[0];
   if ($num_torrents > 0)
   echo"<div style='margin-bottom:5px'><table align=center width=100% border=0 cellspacing=0 cellpadding=10><tr><td style='padding: 10px; background: #AB0000' align=center><div style='font: bold 14px Times New Roman; color:#FFBF00'>
   Hey $CURUSER[username], $num_torrents Torrent" . ($num_torrents > 1 ? "s" : "") . " waiting to approve. Click <a href=app.php><font size=3 color=#CBCBCB>HERE</font></a> for approve!
   </div></td></tr></table></div>n";
   }
   // End Announcement for torrents approval
Excuses, but Thanks so much you are the king of...
"easy, post: 92245":

on index i think

Why [url="https://www.torrenttrader.org/index.php?app=core&module=attach&section=attach&attach_id=6898"]classifieds_block.php ?[/url]
"ArcticWolf, post: 91775":


an change in announcements.php

replace

$res = SQL_Query_exec("SELECT * FROM announcements ORDER by added DESC");
   if (mysql_num_rows($res) >= 1) {
       echo '<table border="0" cellpadding="2" cellspacing="2" width="100%" class="table_table" align="center"><tbody>';
       while ($arr_annouce = mysql_fetch_array($res)) {
           echo '<th class="table_head">' . $arr_annouce["subject"] . ' <b>On:</b>' . $arr_annouce["added"] . '</th>';
           echo '<tr><td class="table_col1">' . format_comment($arr_annouce["message"]) . '</td></tr>';
       }
       if ($announcement_autoclear) {
           if ($CURUSER['announce_read'] == "no")
               SQL_Query_exec("UPDATE users SET announce_read = 'yes' WHERE id = $CURUSER[id]");
       } else {
           print("<tr><td align=left>Click <a href=?action=clear><b><font color=orangered>HERE</font></b></a> to clear the new annoucement for <b>You ONLY</b>.</td> </tr>");
       }
       echo '</tbody></table>';
   }


Where ?
Not Work for me, can you look for me

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6980"]cleanup.php[/url]
Ben je ne sais pas a chaque fois je fais mais ca ne marche pas je ne sais pas.

-------------------------------------------------------------------------------------------------

When i try to make code but nothing work i don't know.
shoutbox banned — 2013-09-16 23:59:07 in v2.08 Mods Completed
I just edit cause i have install bannedcomment, bannedshoutbox, uploadbanned, forumbanned


#======================================================================#
#  Punished members - Added by BigMax (12-11-2012), Edit by JEsaie (9-16-2013)
#======================================================================#
if ($action == "punished")
{
stdhead("Punished members");
navmenu();

$punished = number_format(get_row_count("users", "WHERE shoutboxbanned='yes' || forumbanned='yes' || commentbanned='yes' || uploadbanned='yes'"));
$shoutbox_banned = number_format(get_row_count("users", "WHERE shoutboxbanned='yes'"));
$forum_banned = number_format(get_row_count("users", "WHERE forumbanned='yes'"));
$comment_banned = number_format(get_row_count("users", "WHERE commentbanned='yes'"));
$upload_banned = number_format(get_row_count("users", "WHERE uploadbanned='yes'"));

begin_frame("Punished members: $punished", true);

print("<div style='margin-top:15px' align=center><font size=2>List of members that are banned on <b>ShoutBox</b>, <b>Comment</b>, <b>Upload</b> and/or <b>Forum</b>, order by join date.</font></div>");
print("<div style='margin-top:10px; margin-bottom:10px' align=center>Bans on ShoutBox: <b>$shoutbox_banned</b> &nbsp; &nbsp; Bans on Forum: <b>$forum_banned</b> &nbsp; &nbsp; Bans on Comment: <b>$comment_banned</b> &nbsp; &nbsp; Bans on Upload: <b>$upload_banned</b></div>");

   $count = get_row_count("users", "WHERE shoutboxbanned='yes' || forumbanned='yes' || commentbanned='yes' || uploadbanned='yes'");
   if ($count == 0)
   print("<div style='margin-bottom:15px' align=center><font size=2><b>No punished members!</b></font></div>");
   else { list($pagertop, $pagerbottom, $limit) = pager(25, $count, "admincp.php?action=punished&amp;"); }

   $res = SQL_Query_exec("SELECT * FROM users WHERE shoutboxbanned='yes' || forumbanned='yes' || commentbanned='yes' || uploadbanned='yes' AND status='confirmed' ORDER BY users.added $limit");
   $num = mysql_num_rows($res);
 
   print("<div align=center>$pagertop</div>");

print("<table class=table_table border=1 cellspacing=0 cellpadding=4 align=center>n");
   print("<tr>
       <td class=table_head><b>User&nbsp;name</b></td>
       <td class=table_head><b>User&nbsp;class</b></td>
       <td class=table_head align=center><b>Registered</b></td>
       <td class=table_head align=center><b>Last&nbsp;access</b></td>
       <td class=table_head align=center><b>Downloaded</b></td>
       <td class=table_head align=center><b>Uploaded<b></td>
       <td class=table_head align=center><b>Ratio</b></td>
       <td class=table_head align=center><b>ShoutBox<br /><small>Banned</small></b></td>
       <td class=table_head align=center><b>Forum<br /><small>Banned</small></b></td>
       <td class=table_head align=center><b>Comment<br /><small>Banned</small></b></td>
       <td class=table_head align=center><b>Upload<br /><small>Banned</small></b></td>
   </tr>n");

   for ($i = 1; $i <= $num; $i++){
 
       $arr = mysql_fetch_assoc($res);
       if ($arr['added'] == '0000-00-00 00:00:00')
       $arr['added'] = '---';
     
       if ($arr['last_access'] == '0000-00-00 00:00:00')
       $arr['last_access'] = '---';

       if ($arr['shoutboxbanned'] == 'yes'){
       $arr['shoutboxbanned'] = '<font color=red><b>Yes</b></font>';
       } else {
       $arr['shoutboxbanned'] = '<font color=limegreen><b>No</b></font>';
       }
     
       if ($arr['forumbanned'] == 'yes'){
       $arr['forumbanned'] = '<font color=red><b>Yes</b></font>';
       } else {
       $arr['forumbanned'] = '<font color=limegreen><b>No</b></font>';
       }

       if ($arr['commentbanned'] == 'yes'){
       $arr['commentbanned'] = '<font color=red><b>Yes</b></font>';
       } else {
       $arr['commentbanned'] = '<font color=limegreen><b>No</b></font>';
       }

       if ($arr['uploadbanned'] == 'yes'){
       $arr['uploadbanned'] = '<font color=red><b>Yes</b></font>';
       } else {
       $arr['uploadbanned'] = '<font color=limegreen><b>No</b></font>';
       }
     
       if($arr["downloaded"] != 0){
       $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 3);
       } else {
       $ratio="---";
       }
       $ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";

       $class=get_user_class_name($arr["class"]);
       $added = substr($arr['added'],0,10);
       $last_access = substr($arr['last_access'],0,10);
       $downloaded = mksize($arr["downloaded"]);
       $uploaded = mksize($arr["uploaded"]);

   print("<tr>
       <td class=table_col1 align=left><a href=account-details.php?id=$arr[id]><b>$arr[username]</b></a></td>
       <td class=table_col2 align=left>$class</td>
       <td class=table_col1 align=center>$added</td>
       <td class=table_col2 class=table_col1 align=center>$last_access</td>
       <td class=table_col1 align=center><font color=orangered>$downloaded</font></td>
       <td class=table_col2 align=center><font color=limegreen>$uploaded</font></td>
       <td class=table_col1 align=center>$ratio</td>
       <td class=table_col2 align=center>$arr[shoutboxbanned]</td>
       <td class=table_col1 align=center>$arr[forumbanned]</td>
       <td class=table_col2 align=center>$arr[commentbanned]</td>
       <td class=table_col1 align=center>$arr[uploadbanned]</td>
   </tr>n");
   }
print("</table>n");

   print("<div align=center>$pagerbottom</div>");

end_frame();
stdfoot();
}
#======================================================================#
#  End Punished members
#======================================================================#
Salut, voci un petit code pour bani d'upload, mais avant tout vous devriez installer ce mode [url="http://www.torrenttrader.pw/topic/17550-recorded-actions-for-changes-into-account-details/"]http://www.torrenttrader.pw/topic/17550-recorded-actions-for-changes-into-account-details/[/url]

---------------------------------------------------------------------------------------------

Hi this is a young code that a create to ban d'upload, but for the firt time you must to install this code [url="http://www.torrenttrader.pw/topic/17550-recorded-actions-for-changes-into-account-details/"]http://www.torrenttrader.pw/topic/17550-recorded-actions-for-changes-into-account-details/[/url]

Desole pour mon vieux anglais

-----------------

Sorry for my bad english

1- SQL

ALTER TABLE users ADD `uploadbanned` CHAR(3) NOT NULL DEFAULT 'no' AFTER `forumbanned`;

ALTER TABLE `users` ADD `uploadbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `uploadbanned`

2- Chercher dans / Search in ======> account-details

$forumbanned = $user["forumbanned"] == 'yes';

et ajoute ca au dessous / and add that below

$uploadbanned = $user["uploadbanned"] == 'yes';

3- apres ton code forum ajoute / after your code forum add

$uploadbanneduntil = $user["uploadbanneduntil"];
   if ($uploadbanneduntil != "0000-00-00 00:00:00"){
       $banuploaduntil = "Remains: <font color=red><b>".mkprettytime(strtotime($uploadbanneduntil) - gmtime())."</b></font> to go...";
   } else {
       $banuploaduntil = "";
   }
 
   print("<tr><td height='5'></td></tr>n");    //===| 5px space here!
 
   //upload banned
   if (get_user_class() >= 5) {
       print("<form method='post' action='admin-modtasks.php'>n");
       print("<input type='hidden' name='action' value='uploadbanned' />n");
       print("<input type='hidden' name='userid' value='$id' />n");
       print("<input type='hidden' name='username' value='".$user["username"]."' />n");
       print("<tr><td>".T_("UPLOAD_BANNED").": </td><td class='table_col2' align='left'><input name='uploadbanned' value='yes' type='radio' " . ($uploadbanned ? " checked='checked'" : "") . " /> Yes &nbsp;<input name='uploadbanned' value='no' type='radio' " . (!$uploadbanned ? " checked='checked'" : "") . " /> Non");
       print("<font style='margin-left:15px; margin-right:20px'>Banned for: <input type='text' size='4' name='uploadbannedlength' /> days</font>$banuploaduntiln");
       print("<div style='margin-top:5px'>Raison: <input type='text' size='70' name='forbanreason'>n");
       print("<font style='margin-left:10px; margin-right:20px'><input type='submit' value='Submit' /></font></div>n");
       print("</td></tr>n");
       print("</form>n");
   }

4- dans admin-modtasks ajoute ca / in admin-modtasks add

//===| Start Upload Banned |===//
   if ($action == 'uploadbanned') {
       $curusername = ($CURUSER['username']);
       $curuserid = ($CURUSER['id']);
       $username = sqlesc($_POST["username"]);
       $userid = $_POST["userid"];
       $uploadbanned = sqlesc($_POST["uploadbanned"]);
       $uploadbannedlength = sqlesc($_POST["uploadbannedlength"]);
       $uploadbanneduntil = get_date_time(gmtime() + $uploadbannedlength * 86400);
       $days = $uploadbannedlength . " day" . ($uploadbannedlength > 1 ? "s" : "");
       $fbreason = $_POST["forbanreason"];
     
       if ($_POST["uploadbanned"] == 'yes' && $_POST["uploadbannedlength"] == '') {
           show_error_msg(T_("ERROR"), "Vous devez spécifier le nombre de jours! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
       }
     
       if ($_POST["uploadbanned"] == 'yes' && $_POST["forbanreason"] == '') {
           show_error_msg(T_("ERROR"), "Vous devez fournir une raison pour cette action! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
       }
     
       $modcomment = $row['modcomment'];
       If ($_POST["uploadbanned"] != 'yes') {
           $modcomment2 = gmdate("d-M-Y") . " - $curusername a supprimé l'interdiction de upload. n";
       } else {
           $modcomment2 = gmdate("d-M-Y") . " - $curusername a ajouté l'interdiction de upload. for $daysn- Reason: $fbreason n";
       }
       $modcomment = $modcomment2 . "" . $modcomment;
       $modcom = sqlesc($modcomment);

       If ($_POST["uploadbanned"] != 'yes') {
           SQL_Query_exec("UPDATE users SET uploadbanned=$uploadbanned, uploadbanneduntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
               $msg = sqlesc("Votre interdiction Upload a été supprimé par ".$curusername."");
               $added = sqlesc(get_date_time());
               SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban Upload')");
           write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a supprimé l'interdiction sur le Upload pour l'utilisateur <a href=account-details.php?id=$userid><b>$username</b></a>");
       } else {
           SQL_Query_exec("UPDATE users SET uploadbanned=$uploadbanned, uploadbanneduntil = '$uploadbanneduntil', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
               $msg = sqlesc("Vous etes banni de Upload pour ".$days." par ".$curusername."nnReason: ".$fbreason."");
               $added = sqlesc(get_date_time());
               SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban Upload')");
           write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a interdit à l'utilisateur du Upload. <a href=account-details.php?id=$userid><b>$username</b></a> for $days<br />Reason: $fbreason");
       }
       header("Location: account-details.php?id=$userid");
       die;
   }
//====| End Upload Banned |====//

5- dans torrent-upload ajoute/in torrent-upload add

if($CURUSER["can_upload"]=="no" || $CURUSER["uploadbanned"] == "yes")

6- pour retire la ban automatique ajoute dans / to remove te ban auto add in ======> cleanup

# Remove ban on upload
$res32 = SQL_Query_exec("SELECT id FROM users WHERE uploadbanned='yes' AND uploadbanneduntil < NOW() AND uploadbanneduntil <> '0000-00-00 00:00:00'");
if (mysql_num_rows($res32) > 0)
{
$dt = sqlesc(get_date_time());
$msg = sqlesc("Your ban on upload has been removed.n");
while ($arr = mysql_fetch_assoc($res32))
{
SQL_Query_exec("UPDATE users SET uploadbanned = 'no', uploadbanneduntil = '0000-00-00 00:00:00' WHERE id = $arr[id]");
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id], $dt, $msg, 0)");
}
}

big thank Artic

PS: [size=18px]Desoler je ne sais pas comment cree se code si une personne sait faire je serais ravi[/size]

-------------------------------------------------------------------------------------------------------------

PS: [size=18px]Sorry, i don't know how to create this code, if some one can create it i will be happy[/size]

[size=14px]UPDATE SQL[/size]


ALTER TABLE `users` ADD `uploadbanned` CHAR(3) NOT NULL DEFAULT 'no';

ALTER TABLE `users` ADD `uploadbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

ALTER TABLE `users` ADD `forumbanned` CHAR(3) NOT NULL DEFAULT 'no';

ALTER TABLE `users` ADD `forumbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';
You are thi king ArcticWolf, can you look at the code for me it not wok, please i try i try i try but nothing work, for remove auto ban forum.


# Remove ban on forum
$res32 = SQL_Query_exec("SELECT id FROM users WHERE forumbanned='yes' AND forumbanneduntil < NOW() AND forumbanneduntil <> '0000-00-00 00:00:00'");
if (mysql_num_rows($res32) > 0)
{
$dt = sqlesc(get_date_time());
$msg = sqlesc("Your ban on forum has been removed.n");
while ($arr32 = mysql_fetch_assoc($res32))
{
SQL_Query_exec("UPDATE users SET forumbanned = 'no', forumbanneduntil = '0000-00-00 00:00:00' WHERE id = $arr32[id]");
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr32[id], $dt, $msg, 0)");
}
}
# End Remove ban on forum
Look at there's image

------------------

Regarde cette image



Work great thanks the KING
after modified

for TT 2.08 if you are class color

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6952"]topten.php[/url]
Can you share your code with me?

What theme you use?
Not work for me on 2.08
print("<td class=ttable_col$x nowrap><a href="java script: klappe_torrent('t".$row['id']."')"><img border="0" src="".$site_config["SITEURL"]."/images/plus.gif" id="pict".$row['id']."" alt="Show/Hide" class="showthecross"></a> <a href="torrents-details.php?id=$id&hit=1" onmouseover=" return overlib('<img src=$balon width=120 border=0>', CENTER);" onmouseout="return nd();">$dispname</a>");

removing the space javascript

print("<td class=ttable_col$x nowrap><a href="javascript: klappe_torrent('t".$row['id']."')"><img border="0" src="".$site_config["SITEURL"]."/images/plus.gif" id="pict".$row['id']."" alt="Show/Hide" class="showthecross"></a> <a href="torrents-details.php?id=$id&hit=1" onmouseover=" return overlib('<img src=$balon width=120 border=0>', CENTER);" onmouseout="return nd();">$dispname</a>");

everything works perfectly
ArcticWolf You are the king man, i wish you a long life brother.
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