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

newbie — 2013-07-29 07:36:48 in General Chat
[url="http://sourceforge.net/projects/torrenttrader/files/TorrentTrader%20v2/TorrentTrader-v2.81/"]http://sourceforge.net/projects/torrenttrader/files/TorrentTrader%20v2/TorrentTrader-v2.81/[/url]
Here is an example

search

$postername = $arr2["username"];

replaces

$postername = class_user($arr2["username"]);

you have to do for the rest
yes add


<?php echo T_("IP"); ?>:&nbsp;<?php echo($CURUSER["ip"]); ?><br />
login_block

add

$browser = $CURUSER["browser"];

add

<?php echo T_("BROWSER"); ?>: <?php echo $browser;?><br />

Upload Activity — 2013-06-18 10:03:04 in v2.08 Mods Completed
thanks Bigmax1  ;)
[url="https://www.torrenttrader.org/topic/16976-auto-detect-browser-in-account-details-v208/?hl=browser"]https://www.torrenttrader.org/topic/16976-auto-detect-browser-in-account-details-v208/?hl=browser[/url]

seach

<?php echo T_("TITLE"); ?>: <i><?php echo format_comment($user["title"])?></i><br />

add


<?php echo T_("BROWSER"); ?>: <?php echo htmlspecialchars($user["browser"]);?><br />
Warning alamandra — 2013-06-08 17:55:32 in General Chat
200 euros to customize a site is a scam
in admincp add


<td align="center"><a href="admincp.php?action=silverfree"><img src="images/admin/free_leech.png" border="0" width="32" height="32" alt="" /><br />Silver leech<br />Manager</a><br /></td>


///////////////////////////////////////////silver freeleech manager///////////////////////////////////////////////////

if ( $action == "silverfree" )
 {
          if ( is_valid_id( $_POST["type"] ) )
          {
                       $type = ( $_POST["type"] == 2 ) ? 0 : 2;
                       $size = (int) $_POST["size"];
                       
                       $where = null;
                       
                       switch ( $_POST["operand"] )
                       {
                               case 1:
                                        $operand = "=";
                                        break;
                               
                               case 2:
                                        $operand = "<";
                                        break;
                                       
                               case 3:
                                        $operand = "<=";
                                        break;
                                       
                               case 4:
                                        $operand = ">";
                                        break;
                                       
                               case 5:
                                        $operand = ">=";
                                        break;
                                       
                               default:
                                        $operand = null;
                                        break;
                       }
                       
                       if ( $operand != null )
                       {
                                $where = "AND `size` $operand $size";
                       }

                       SQL_Query_exec("UPDATE `torrents` SET `silver` = '$type' WHERE `external` = 'no' AND `banned` = 'no' $where");
                       autolink("admincp.php?action=silverfree", "silver Updated...");
          }
         
          stdhead("Silver free Management");
          navmenu();
         
          begin_frame("Silver free Management");
          ?>
         
          <form method="post" action="admincp.php?action=silverfree">
          <table border="0" cellpadding="3" cellspacing="0" width="75%" align="center">
          <tr>
                  <th class="table_head">silver</th>
                  <th class="table_head">Option</th>
                  <th class="table_head">Taille en gb</th>
  <th class="table_head">Taille en mb</th>
          </tr>
          <tr align="center">
                  <td class="table_col1">
                        <select name="type">
                         <option value="0">choisir Option</option>
                         <option value="1">Oui</option>
                         <option value="2">Non</option>
                        </select>
                  </td>
                 
                  <td class="table_col2">
                        <select name="operand">
                          <option value="0">N/A</option>
                          <option value="1">Equal à</option>
                          <option value="2">moins de</option>
                          <option value="3">Inférieure ou égale à</option>
                          <option value="4">plus que</option>
                          <option value="5">Supérieur ou égal à</option>
                        </select>
                  </td>
                 
                  <td class="table_col1">
                        <select name="size">
                          <option value="0">N/A</option>
                        <?php for ( $i = 1; $i < 51; $i++ ): ?>
                          <option value="<?php echo strtobytes("$i GB"); ?>"><?php echo $i; ?> GB</option>
                        <?php endfor; ?>
                        </select>
                  </td>
   <td class="table_col1">
                        <select name="size">
                          <option value="0">N/A</option>
                        <?php for ( $i = 50; $i < 901; $i++ ): ?>
                          <option value="<?php echo strtobytes("$i MB"); ?>"><?php echo $i; ?> MB</option>
                        <?php endfor; ?>
                        </select>
                  </td>
          </tr>
          <tr>
                       <td colspan="3" align="right">
                        <input type="submit" value="Ok" />
                       </td>
          </tr>
          </table>
          </form>
         
          <?php
          end_frame();
          stdfoot();
 }
////////////////////////////////////////////////////////////////////////////////////////////////////////////
in memberlist.php

sherch

$arr[username]

change to


".class_user($arr[username])."
thank you very nice   :)
Thanks You BigMax1   :)
french

ajouter a la racine du site

english

add to the site root

torrents-Seedbox.php


<?php
//
//
//
require_once("backend/functions.php");

$thisurlforme = "";

dbconn(false);

//check permissions
if ($site_config["MEMBERSONLY"]){
loggedinonly();

if($CURUSER["view_torrents"]=="no")
show_error_msg("Error","You do not have permission to view torrents",1);
}


stdhead("Seedbox Torrents");

begin_frame("Torrents seedbox");

$catresult = SQL_Query_exec("SELECT id, name FROM categories ORDER BY sort_index");

while($cat = mysql_fetch_array($catresult))
{
$orderby = "ORDER BY torrents.id DESC"; //Order
$where = "WHERE banned = 'no' AND category='$cat[id]' AND visible='yes'";


$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, torrents.seedbox,categories.name AS cat_name, categories.image AS cat_pic, categories.parent_cat AS cat_parent,users.username, users.privacy,IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1))AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id $where  AND torrents.seedbox = 'yes' $orderby $limit";

$res = SQL_Query_exec($query) or die(mysql_error());


$numtor = mysql_num_rows($res);

if ($numtor != 0) {
echo "<B><a href=torrents.php?cat=".$cat[id].">$cat[name]</a></B>";
list($pagertop, $pagerbottom, $limit) = pager(1000, $count, "torrents.php?" . $addparam); //adjust pager to match LIMIT
torrenttable($res);
echo "<BR>";
}


}
end_frame();
stdfoot();
?>


navigate_block

add

echo "<li><a href='torrents-Seedbox.php'>".T_("TORRENTS_SEEDBOX")."</a></li>";


french.php  &  english.php

ad

$LANG["TORRENTS_SEEDBOX"] = "Torrents SeedBox";
TT  2-svn

account-details

find
if ($CURUSER["class"] == 7){
 print("<tr><td>Can Change Class?: </td><td align=left><input name=changemode value=yes type=radio" . ($changemode ? " checked" : "") . ">Yes <input name=changemode value=no type=radio" . (!$changemode ? " checked" : "") . ">No</td></tr>n");
}

change

if ($CURUSER["class"] == 7){
   print("<tr><td>".T_("Can_Change-Class")." </td><td align=left><input name=changemode value=yes type=radio" . ($changemode ? " checked" : "") . ">Yes <input name=changemode value=no type=radio" . (!$changemode ? " checked" : "") . ">No</td></tr>n");
}

admin-modtasks

find

$changemode = $_POST["changemode"];


change

$changemode = sqlesc($_POST["changemode"]);


find

changemode='$changemode',


change


changemode=$changemode,

login block


find
print("<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=red><b>Class Change</b></font><br/><br/><select name=class>n$classn</select>");
print("<br/><br/><center><input type=submit class=buton value='Submit'></center>");
print("</form>");
}

change

print("<br/><b>".T_("Can_Change-Class")."</b><br/><select name=class>n$classn</select>");
   print("<br/><br/><center><input type=submit class=buton value='Submit'></center>");
   print("</form>");
}

english.php


add

$LANG["Can_Change-Class"] = "Class Change";



french.php


add


$LANG["Can_Change-Class"] = "Changement de classe";


changemode.php

find

mysql_query

change

SQL_Query_exec
merci sirus fonctionne nickel et super simple a installer :D
thank ;)
merci tiloup fonctionne nickel  ;)
class pictures in the login block

begin_block("".class_user($CURUSER[username])."");





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

if (!$avatar)

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



$userdownloaded = mksize($CURUSER["downloaded"]);

$useruploaded = mksize($CURUSER["uploaded"]);

$privacylevel = $CURUSER["privacy"];

$seedbonus = $CURUSER["seedbonus"];

$levelimg = "<img src=".$site_config["SITEURL"]."/themes/".$THEME."/images/class/" . $CURUSER["class"] . ".png>";

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=5205"]class.rar[/url]
works very well thank you :angry:
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