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
Site torrent catalog
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods Completed

2019-12-06 23:45:59
All credit to uffeno1. Just posting here to test on TTv3

upload catalog.php to root
Upload images folder. Should place images where they need to be automatically. (there are only 4 images)
in english.php put
//Catalogue
$LANG["CATALOGUE"] = "Catalog";
$LANG["SEARCH_CAT"] = "Search Catalog";
$LANG["TORRENT_INFO"] = "Torrent INFO";
$LANG["SEED_INFO"] = "Seed info! (top 5 seeders)";
$LANG["NUMBER_OF_DOWNLOADS"] = "Downloaded";
$LANG["TIMES"] = "times";
$LANG["TORRENT_GO"] = "To torrent";
$LANG["DIRECT_DOWN"] = "Direct download";
$LANG["NO_INFO"] = "No information available";
$LANG["NO_SEEDER"] = "No Seeders";
$LANG["NO_MATCHES"] = "Sorry. Nothing matches";
$LANG["CLICK_ENLARGE"] = "Click to enlarge";
$LANG["TORRENT_NOT_ACTIVE"] = "This torrent is not active";


Create a link to catalog.php in your theme header or wherever you like
site catalog.zip
Download

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-12-07 05:55:32
"MicroMonkey, post: 67638, member: 311":

All credit to uffeno1. Just posting here to test on TTv3

upload catalog.php to root
Upload images folder. Should place images where they need to be automatically. (there are only 4 images)
in english.php put
//Catalogue
$LANG["CATALOGUE"] = "Catalog";
$LANG["SEARCH_CAT"] = "Search Catalog";
$LANG["TORRENT_INFO"] = "Torrent INFO";
$LANG["SEED_INFO"] = "Seed info! (top 5 seeders)";
$LANG["NUMBER_OF_DOWNLOADS"] = "Downloaded";
$LANG["TIMES"] = "times";
$LANG["TORRENT_GO"] = "To torrent";
$LANG["DIRECT_DOWN"] = "Direct download";
$LANG["NO_INFO"] = "No information available";
$LANG["NO_SEEDER"] = "No Seeders";
$LANG["NO_MATCHES"] = "Sorry. Nothing matches";
$LANG["CLICK_ENLARGE"] = "Click to enlarge";
$LANG["TORRENT_NOT_ACTIVE"] = "This torrent is not active";


Create a link to catalog.php in your theme header or wherever you like



Works without problems
Only small disadvantage
If a torrent name starts with a number instead of a letter, it will not be displayed anywhere from A to Z.
Then he can only be found with the search
2019-12-07 20:20:24
I see what you mean. Do you have a solution? I will toy with it, but post if you solve it
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-12-11 18:19:07
This should be one way to do it. I didnt get very creative with this, seems simple enough. In catalog.php search
if ($letter == "" || strpos("abcdefghijklmnopqrstuvwxyz", $letter) === false)

replace with
if ($letter == "" || strpos("0123456789abcdefghijklmnopqrstuvwxyz", $letter) === false)

search
      for ($i = 97; $i < 123; ++$i)
     {
     $l = chr($i);
     $L = chr($i - 32);

if ($l == $letter)

     print("<b><u>$L</u></b>\n");
     else
     print("<a href=?letter=$l><b>$L</b></a>\n");
     }
     print("</p><br /></center>\n");

replace with
    
     for ($i = 97; $i < 123; ++$i)
     {
     $l = chr($i); // lowercase letters a-z
     $L = chr($i - 32);  //Capital letters in ASCII. Example 122 is z, 122-32=90 which is Z


if ($l == $letter)

     print("<b><u>$L</u></b>\n");
     else
     print("<a href=?letter=$l><b>$L</b></a>\n");
     }
     print("</p><br />\n");

///number in filename
     for ($i = 48; $i < 58; ++$i) //Numbers in ASCII table 48-57 = 0 thru 9
     {
     $l = chr($i);
     $L = chr($i);

if ($l == $letter)

     print("<b><u>$L</u></b>\n");
     else
     print("<a href=?letter=$l><b>$L</b></a>\n");
     }
     print("</p><br /></center>\n");
///end number in filename

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-12-14 21:28:07
Thank you very much for this MicroMonkey page (y)

to hide the 3x you have to add this line [[url='https://www.torrenttrader.xyz/index.php?threads/hide-section-3x-ttv3.9837/']HERE[/url]]

if ($CURUSER["view_xxx"] != "yes")
$where = "AND category != '40' && category != '7'";


At home I have three categories and I made the modification of your line but if I type the title of film 3x and I activate to hide the category 3x I see it anyway

if ($CURUSER["view_xxx"] != "yes")
$where = "AND category != '1' && category != '2' && category != '3'";


Thanks !
2019-12-15 13:05:31
a small adjustment to take into account capital letters
Search 2 Times :
trim


Replace with :
ucfirst

2019-12-16 20:17:48
capital letters is already accounted for here. Here is the ASCII table http://www.asciitable.com/
      for ($i = 97; $i < 123; ++$i)
     {
     $l = chr($i); // lowercase letters a-z
     $L = chr($i - 32);  //Capital letters in ASCII. Example 122 is z, 122-32=90 which is Z

TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2019-12-17 00:26:27
yes exact but on my side it is for research

a big thank you for the link ! :geek:
2019-12-18 16:00:23
MicroMonkey does my letter search not work ?

ok, i found the solution ;)

  $search = ucfirst(isset($_GET["search"]) ? $_GET["search"] : "");
  $pagemenu = (isset($pagemenu));
  $menu = (isset($menu));
if ($search != '' || (isset($class) ? $class : "")) {
  $query = "name LIKE  '$search%'";
if ($search)
   $q = "search=" . (isset($arr["name"]));
     }else{
   $letter = ucfirst($_GET["letter"]);
if (strlen($letter) > 1)
die;

if ($letter == "" || strpos("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", $letter) === false)
   $letter = "A";
   $query = "name LIKE '$letter%'";
   $q = "letter=$letter";
   }
$letter = (isset($letter) ? $letter : "");

2020-08-16 13:48:01
Hello I try to put the same function of the top 5 seeder catalog in the torrent detail below the page, I put the code snippet of the catalog file in the torrent-detail.php file but it doesn't work, do you have another idea, thank you in advance.




[ATTACH type="full"]5759[/ATTACH]
1597584714597.png
1597584714597.png
2020-08-16 14:46:12
Sorry but im not quite sure what you are asking me niki
TTv3 Micro Edition
Ubuntu 20.04.6 LTS Server
Mysql Version: 10.3.39-MariaDB-0ubuntu0.20.04.2
PHP Version: 7.4.3-4ubuntu2.20
Apache Version: Apache/2.4.59 (Ubuntu)
2020-08-17 01:45:06
[USER=20338]@niki[/USER] what is the code you need to do what you want? if It’s “top seeders“ on torrents-details, thats very easy and a 3-4 lines of code, and you don’t even need a table. I use div nesting for tables. We can fetch rows of data from user/peer. This catalog mod I don’t think will do this I’m actually not sure what the catalog mod does. I’ve done most features by scratch already, so if you need help let me know.
2020-08-17 04:13:48
hello[USER=20382] STorrents2020[/USER] thank you your proposal for the top seeder feature on torrent detail will be perfect, (y):D
2020-08-24 14:58:35
[URL unfurl="true"]https://www.torrenttrader.xyz/index.php?attachments/1597584714597-png.5759/[/url][img]https://www.torrenttrader.xyz/index.php?attachments/1597584714597-png.5759/[/img]


hello, I'm looking to have the same function as the image above as in catalog.php in torrent-detail.php ;)
2020-08-24 22:15:44
Hi niki, this is easy. Please indicate: mysqli or PDO + tt version used. I can do the code if you provide me your current CODE/HTML.
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: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728