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 theme — 2020-02-06 15:52:37 in v3 Themes
bravo, I will install it to see all this, very beautiful your theme. (y)
========================================
Bravo, je l'installerai pour voir tout çà,  tres beau ton theme (y)
"m-jay, post: 67831, member: 20288":

ill update my github this weekend ive done most of the prepared statements and started removing the sqlesc function (pdo already escapes) just playing with styling at the minute.
I tried adding the new dbclass but blocks caused a issue so ill stick to the static one for now until i move functions to classes DB::instance() can always be added to constructor so functions move away from procedural
here is a example of my torrents-detail.php at the minute its all coded on one page but for oop would it be better to have these broken down into details.php, comments.php, nfo.php etc or does anyone have suggestion on how to do it with classes and views ?

[color=rgb(250, 197, 28)]example[/color]
<button type="button" onclick="show('id1');">DETAILS</button>
<button type="button" onclick="show('id6');">NFO</button>
<button type="button" onclick="show('id7');">COMMENTS</button>

echo "<div id=id1  style=display:block>"; // start id1
[color=rgb(250, 197, 28)]mainstuff[/color]
echo "</div>";  

echo "<div id=id6  style=display:none>";
[color=rgb(250, 197, 28)]nfo[/color]
echo "</div>";

echo "<div id=id7  style=display:none>";
[color=rgb(250, 197, 28)]comments[/color]
echo "</div>";




I like this concept, it could become a standard :geek:
[ATTACH type="full" alt="5361"]5361[/ATTACH]
re CAPTCHA — 2020-02-04 01:37:36 in v3 Mods Requests
or
[URL unfurl="true"]https://torrenttrader.xyz/index.php?threads/google-recaptcha-ttv3.9769/[/url]
"MicroMonkey, post: 67820, member: 311":

This image is transparent, but I would like it to be pure white inside and stay transparent outside the lines. I tried it myself, but I make all the lines on the inside of image all jagged and it winds up looking terrible.
[ATTACH=full]5356[/ATTACH]


Here is my friend...[ATTACH type="full" alt="5358"]5358[/ATTACH]
thanks you...but it has duplicates ;)

   elseif (preg_match("/friends.php/i", $scriptname))
       $where = "Viewing Friends";
   elseif (preg_match("/bookmarks.php/i", $scriptname))
       $where = "Viewing Bookmarks";
Donation manager — 2020-02-01 15:34:12 in v2.08 Mod Requests
Hello

I'm looking for a donation manager,
date added, expiration date, amount, vip grade, etc.

I do not want any link with paypale, a symple gerstionaire of the contributions and the Automation of engagement of the vip grade and which will put an end to the expiration of this grade.


Thanks ?
hoauis...désolé...éffectivement ca va pas,  j'ai demander a un admin de déplacer ce mod vers les mod en dévlopement, je continue a voir si je peux corriger ou un la communauté le ferra
======================
yeah ... sorry ... actually it's not going, i asked an admin to move this mod to the developing mods, i keep seeing if i can fix it or a community will
"niki, post: 67805, member: 20338":

Merci beaucoup [USER=401]spiritblue[/USER] pour la mise à jour mais quand je clic sur,...    like  ou  love  ou  angry ,  ...   j'ai ce message,  ...  Tu as déjà participé pour ce torrent.

et le vote reste a 0  la mise à jour ne se fait pas  :rolleyes:


dans tous les fichiers recherche...
!in_array et remplace par in_array
Like — 2020-01-30 15:45:16 in v3 Mods Requests
[color=rgb(41, 105, 176)]To be continued[/color]
[url='https://www.torrenttrader.xyz/index.php?threads/mod-torrent-appreciation-links-ttv3.9939'][color=rgb(0, 168, 133)]HERE[/color][/url]
Hi..

At the request of a request made by nicki [url='https://www.torrenttrader.xyz/index.php?threads/like.9938/#post-67799[B'][color=rgb(0, 168, 133)]HERE[/color][/url]

Author : luis26x
Update : Spiritblue
SQL : Yes


SQL:


ALTER TABLE `torrents` ADD `likes` int(10) unsigned NOT NULL default '0';
ALTER TABLE `torrents` ADD `love` int(10) unsigned NOT NULL default '0';
ALTER TABLE `torrents` ADD `angry` int(10) unsigned NOT NULL default '0';



In[color=rgb(251, 160, 38)] Torrents-details.php[/color] place code where you like  :

// Torrent appreciation links
print("<tr><td align='left'><b>".T_("LIKES").": </b></td><td>
<form action='likes.php' method='post'><input type='hidden' name='torrent' value='$id'><input name='likes' type='image' img src='/images/button/likes.gif' width='30' height='30' border='0'>
<font color='#5f9df3'>".number_format($row["likes"])."</font></form></td></tr>");

print("<tr><td align='left'><b>".T_("LOVE").": </b></td><td>
<form action='love.php' method='post'><input type='hidden' name='torrent' value='$id'><input name='love' type='image' img src='/images/button/love.gif' width='30' height='30' border='0'>
<font color='#f15269'>".number_format($row["love"])."</font></form></td></tr>");

print("<tr><td align='left'><b>".T_("ANGRY").": </b></td><td>
<form action='angry.php' method='post'><input type='hidden' name='torrent' value='$id'><input name='angry' type='image' img src='/images/button/angry.gif' width='30' height='30' border='0'>
<font color='#f7ae6d'>".number_format($row["angry"])."</font></form></td></tr>");
// End



[color=rgb(204, 204, 204)]~ Import the three files [/color][color=rgb(184, 49, 47)]([/color][color=rgb(251, 160, 38)]likes.php, love.php, angry.php[/color][color=rgb(184, 49, 47)])[/color][color=rgb(204, 204, 204)] at the root of your site.[/color]
~ Add the button name folder to the images folder.


Add lang:

$LANG["LIKES"] = "Recommend you!";
$LANG["LOVE"] = "You like!";
$LANG["ANGRY"] = "You don't like!";


Example img:
[ATTACH type="full" alt="5350"]5350[/ATTACH]


[color=rgb(61, 142, 185)]NOTE:
Let us know if error or other to make this mod a complete automation.??[/color]
Like — 2020-01-29 00:44:11 in v3 Mods Requests
i will watch ;)
"shadows, post: 66649, member: 20311":

Like most of you know MyISAM is now nowhere good as InnoDB and it will only cause lower performance in term of write/read of large databases.

I run a separate server only for SQL database and had to change all tables to InnoDB due to poor performance.

This boosted performance for over 150% in my case.

In SQL run the following code:
SET @DATABASE_NAME = 'name_of_your_db';

SELECT  CONCAT('ALTER TABLE `', table_name, '` ENGINE=InnoDB;') AS sql_statements
FROM    information_schema.tables AS tb
WHERE   table_schema = @DATABASE_NAME
AND     `ENGINE` = 'MyISAM'
AND     `TABLE_TYPE` = 'BASE TABLE'
ORDER BY table_name DESC;


Change name_of_your_db with your database name.

Now, the output will show you a list of all tables with commands like ALTER `announce` ENGINE =...

Copy all of them and run the following code:
USE `your_database_name`;
paste here all the tables you got from the previous code.
// remove ";" from the last ALTER input.


After that, you should have successfully swapped from MyISAM to InnoDB engine.

question please, we execute the command directly on the server with putty?
I guess shadows tested his V3 seen who posted on the v3?  :unsure:
SuperTag [TTv3] — 2020-01-26 12:04:05 in v3 Mods in Progress
thank you I expect it to be functional
Corrects a repeated validation error, I recommend it to you, [url='https://www.torrenttrader.xyz/index.php?threads/error-corrections-on-poll.9813/'][color=rgb(226, 80, 65)]click here[/color][/url]
Hi

Se hack comes from serf in 2015 from a super nice poll of tt and even nowadays

SQL: No
Author: [USER=1398]serph[/USER]
Update By: SPIRITBLUE
Post: Here

I brought the configuration for v3 and I redid the images to give them a more degraded side and more brilliant colors ?

Open[color=rgb(251, 160, 38)] backend / functions.php[/color] and search :

function stdfoot() {
   global $site_config, $CURUSER, $THEME, $LANGUAGE;
   require_once("themes/" . $THEME . "/footer.php");
   mysqli_close($GLOBALS["DBconnector"]);
}




Add after :


// Poll - @TTv3 2020
function get_poolsleft($i){
global $site_config, $THEME; if ($i == 0 || $i == 5 || $i == 10 || $i == 15) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar1-l.png border=0>";
if ($i == 1 || $i == 6 || $i == 11 || $i == 16) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar2-l.png border=0>";
if ($i == 2 || $i == 7 || $i == 12 || $i == 17) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar3-l.png border=0>";
if ($i == 3 || $i == 8 || $i == 13 || $i == 18) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar4-l.png border=0>";
if ($i == 4 || $i == 9 || $i == 14 || $i == 19) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar5-l.png border=0>";
return "";
}
function get_poolsmiddle($i){
global $site_config, $THEME;
if ($i == 0 || $i == 5 || $i == 10 || $i == 15) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar1.png border=0";
if ($i == 1 || $i == 6 || $i == 11 || $i == 16) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar2.png border=0";
if ($i == 2 || $i == 7 || $i == 12 || $i == 17) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar3.png border=0";
if ($i == 3 || $i == 8 || $i == 13 || $i == 18) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar4.png border=0";
if ($i == 4 || $i == 9 || $i == 14 || $i == 19) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar5.png border=0";
return "";
}
function get_poolsright($i) {
global $site_config, $THEME;
if ($i == 0 || $i == 5 || $i == 10 || $i == 15) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar1-r.png border=0>";
if ($i == 1 || $i == 6 || $i == 11 || $i == 16) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar2-r.png border=0>";
if ($i == 2 || $i == 7 || $i == 12 || $i == 17) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar3-r.png border=0>";
if ($i == 3 || $i == 8 || $i == 13 || $i == 18) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar4-r.png border=0>";
if ($i == 4 || $i == 9 || $i == 14 || $i == 19) return "<img src=".$site_config['SITEURL']."/themes/" . $THEME . "/images/polls/bar5-r.png border=0>";
return "";
}
// End Poll


~ Add the [color=rgb(247, 218, 100)]polls [/color]name folder in the [color=rgb(247, 218, 100)]images[/color] folder of your default themes
~ Copy your block from the name polls block or download the lowest.


Block poll,,,:

<?php
begin_block(T_("POLL"));
require_once("backend/functions.php");
dbconn(false);

if (!function_exists("srt")) {
   function srt($a,$b){
       if ($a[0] > $b[0]) return -1;
       if ($a[0] < $b[0]) return 1;
       return 0;
   }
}

if ($_SERVER["REQUEST_METHOD"] == "POST" && $CURUSER && $_POST["act"] == "takepoll"){
   $choice = $_POST["choice"];
   if ($choice != "" && $choice < 256 && $choice == floor($choice)){
       $res = SQL_Query_exec("SELECT * FROM polls ORDER BY added DESC LIMIT 1") or mysqlierr($GLOBALS["DBconnector"]);
       $arr = mysqli_fetch_assoc($res) or block_error_msg("Error", "No Poll",1);

       $pollid = $arr["id"];
       $userid = $CURUSER["id"];

       $res = SQL_Query_exec("SELECT * FROM pollanswers WHERE pollid=$pollid && userid=$userid") or mysqlierr($GLOBALS["DBconnector"]);
       $arr = mysqli_fetch_assoc($res);

       if ($arr){
           block_error_msg("Error", "You have already voted!", 0);
       }else{

           SQL_Query_exec("INSERT INTO pollanswers VALUES(0, $pollid, $userid, $choice)") or mysqlierr($GLOBALS["DBconnector"]);
           if (mysqli_affected_rows() != 1)
                   block_error_msg("Error", "An error has occurred. Your vote has not been counted.", 0);
       }
   }else{
       block_error_msg("Error", "Please select one option.", 0);
   }
}

// Get current poll
if ($CURUSER){
   $res = SQL_Query_exec("SELECT * FROM polls ORDER BY added DESC LIMIT 1") or mysqlierr($GLOBALS["DBconnector"]);

   if($pollok=(mysqli_num_rows($res))) {
       $arr = mysqli_fetch_assoc($res);
       $pollid = $arr["id"];
       $userid = $CURUSER["id"];
       $question = $arr["question"];

       $o = array($arr["option0"], $arr["option1"], $arr["option2"], $arr["option3"], $arr["option4"],
       $arr["option5"], $arr["option6"], $arr["option7"], $arr["option8"], $arr["option9"],
       $arr["option10"], $arr["option11"], $arr["option12"], $arr["option13"], $arr["option14"],
       $arr["option15"], $arr["option16"], $arr["option17"], $arr["option18"], $arr["option19"]);

       // Check if user has already voted
         $res = SQL_Query_exec("SELECT * FROM pollanswers WHERE pollid=$pollid AND userid=$userid") or mysqlierr($GLOBALS["DBconnector"]);
         $arr2 = mysqli_fetch_assoc($res);
   }

   //Display Current Poll
   if($pollok) {
       print("<div align=center><b>$question</b></div>\n");
         $voted = $arr2;

       // If member has voted already show results
         if ($voted) {
           if ($arr["selection"])
                 $uservote = $arr["selection"];
           else
                 $uservote = -1;

           // we reserve 255 for blank vote.
           $res = SQL_Query_exec("SELECT selection FROM pollanswers WHERE pollid=$pollid AND selection < 20") or mysqlierr($GLOBALS["DBconnector"]);

           $tvotes = mysqli_num_rows($res);

           $vs = array(); // array of
           $os = array();

           // Count votes
           while ($arr2 = mysqli_fetch_row($res))
             $vs[$arr2[0]] += 1;

           reset($o);
           for ($i = 0; $i < count($o); ++$i)
             if ($o[$i])
               $os[$i] = array($vs[$i], $o[$i]);

           // now os is an array like this: array(array(123, "Option 1"), array(45, "Option 2"))
           if ($arr["sort"] == "yes")
               usort($os, srt);

           print("<table width=100% border=0 cellspacing=0 cellpadding=0>\n");
           $i = 0;

           while ($a = $os[$i]){
                 if ($i == $uservote)
                   $a[1] .= "&nbsp;*";
                 if ($tvotes == 0)
                     $p = 0;
                 else
                     $p = round($a[0] / $tvotes * 100);
                 print("<tr><td class=table_head align=center width=100%>" . format_comment($a[1]) . "</td></tr><tr><td align=left width=100% class=pollspercent>".get_poolsleft($i)."".get_poolsmiddle($i)." height=12 width=" . ($p) . ">".get_poolsright($i)."&nbsp;$p%</td></tr><tr><td><br></td></tr>\n");
                 ++$i;
           }

       print("</table>\n");
       $tvotes = number_format($tvotes);
       print("<div align=center>Votes: $tvotes</div>\n");

     }else{//User has not voted, show options

       print("<form method=post action='?$_SERVER[QUERY_STRING]'>\n");
   print("<input type=hidden name=act value='takepoll'>");
       $i = 0;

       while ($a = $o[$i]){
             print("<input type=radio name=choice value=$i>".format_comment($a)."<br/>\n");
             ++$i;
       }

       print("<br/>");
       print("<input type=radio name=choice value=255>Blank Vote (View Results)<br/>\n");
       print("<p align=center><input type=submit value='Vote!'></p></form>");
     }

   } else {
         echo"<br/><br/><center><i>..No active survey! </i></center><br/><br/>\n";
   }
} else {
   echo"br/><br/>center>You must be logged in to view polls .</centrer><br/><br/>\n";
}

end_block();
?>


Add themes / theme by default / theme.css at the end of the page:


/* Poll */
.pollsanswer {
   color:#000;
   border: 0px solid #486386;
}
.pollspercent {
   background: none;
   color: #F0F8FF;
   border-bottom: 0px solid #486386;
   border-left: 0px solid #486386;
   border-right: 0px solid #486386;
}

[color=rgb(97, 189, 109)]([/color] [color=rgb(251, 160, 38)]Make changes to the css lines to adapt it to your theme[/color] [color=rgb(65, 168, 95)]) [/color]


Example on my site:
[ATTACH type="full" width="161px" alt="5331"]5331[/ATTACH]


[ATTACH type="full" width="159px" alt="5328"]5328[/ATTACH]
after testing your two modifications, my upload side works fine

Thanks! (y)
BAN ALL UPLOADED TORRENTS — 2020-01-01 23:38:30 in v3 Support
"extremlymtorrents, post: 67718, member: 20299":

BANN ALL UPLOADED TORRENTS FROM An UPLOADER


the Friend it is on the forum, seek a can and you will find ;)
LINK:  https://www.torrenttrader.xyz/index.php?threads/bannir-mp-commentaire-t%C3%A9l%C3%A9chargement-upload-shoutbox.4825/

forgot to convert to mysqli ?

if ($site_config['MEMBERSONLY'] || $CURUSER) {
   begin_frame(T_("TEST"));
// TORRENT XXX MONTRER-CACHER BY GOLLUM
if( $CURUSER['xxx_filter'] == 'yes'){
   $ressa = SQL_Query_exec("SELECT * FROM xxx_filter");
   while($datas =  mysqli_fetch_array($ressa)){
   $wherex .= "AND categories.id != '".$datas["cat"]."' ";
   }
}
$news = SQL_Query_exec("SELECT id, name, added, image1, image2, sticky, seeders, leechers FROM torrents WHERE sticky = 'yes' AND visible='yes' ORDER BY torrents.id DESC LIMIT 10"); ///limi$
if (mysqli_num_rows($news) > 0) {
print("<table class=table_table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");
while ($row2 = mysqli_fetch_array($news, MYSQL_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.seeders, torrents.leechers, categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");
$row = mysqli_fetch_array($res);
$cat = $row['cat_name'];
$img1 = "<div class=ttable_header><a class='hovertexty' title='Sticky' href=".$site_config['SITEURL']."/file.php?id=$row[id]'><img border='0' src='uploads/images/".$row['image1']."' title=\"Last Sticky: $altname | $cat\" height=140 width=100></a></div>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."<div style='margin-top:10px; font-size:13px;'>
<img src=images/arrow_up.gif height='12' title='Seeders' border=0><font color=#00AA00><b>".$row['seeders']."</b></font> |
<img src=images/arrow_down.gif height='12' title='Leechers' border=0><font color=#FF0000> <b>".$row['leechers']."</b></font>
</div></td><td>&nbsp;</td>");
}
}
print("</tr></table>");
}
end_frame();
}


[color=rgb(184, 49, 47)]update 5 fevrier[/color]
Thanks Gollum !


I haven't tested
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: 10

  • Online

  • Total online: 4
  • Members: 1
  • Guests online: 3
  • Comments: 3
  • Messages: 1,728