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
Customize Help
You don't have permission for this action!
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Support

2021-09-12 08:18:00
Hello To All

I am new with this script and i am not know about coding so please help me, we want create this type homepage please tell me how to do it thanks.


1) I wanr reanme this (Type type type type area to ShoutBox) where find this line https://prnt.sc/1rx2snw  
  and remove this Browse Torrents - Search Torrents in Latest Torrents block https://prnt.sc/1rx1x17

2) Username is clickable if user click on our name open account.php  https://prnt.sc/1rx47hv

3) Upload Torrent and after post download torrent for seeding show this type file name
  Shershaah.2021.1080p.AMZN.WEB-DL.DDP5.1.HEVC-ShiNobi.mkv[https___peektv.tk]

  but we want show this type filename where i am change for this ?
  [peektv.tk]-Shershaah.2021.1080p.AMZN.WEB-DL.DDP5.1.HEVC-ShiNobi.mkv

4) How to add like this Recommended Torrents and side box https://prnt.sc/1rx1x17  https://prnt.sc/1rx43f8

5) How to show more category in homepage like this https://prostylex.org Under every category show 15 post and show afer category View More Button.

1. Notice
2. ShoutBox
3. Latest Torrents
4. Movies
5. Tv
6. Apps
7. Games
8. Music
9. Adult
2021-09-12 10:09:15
lets see what we can do  :cool  , i dont use v3 so might need some tinkering or others might have code but here is a start

1) search languages/english.php for Type type type type area
   remove this line from index.php
print("<br /><center><a href='torrents.php'>".T_("BROWSE_TORRENTS")."</a> - <a href='torrents-search.php'>".T_("SEARCH_TORRENTS")."</a></center><br />");


2) https://torrenttrader.uk/topic?topicid=9717

3) ill take a look at that, that will be the download.php file should be possible

4) maybe someone has this mod

5) try this on index.php

find
	$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, 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 visible = 'yes' AND banned = 'no' ORDER BY id DESC LIMIT 25";
$res = SQL_Query_exec($query);
if (mysqli_num_rows($res)) {
torrenttable($res);
}else {


replace with ( look for HERE you will need to add the id (number) for the catogorie example if you click movies the url might say id=15 - then replace HERE with 15 - in the code below search category =HERE i put twice in this example
	$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, 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 visible = 'yes' AND banned = 'no' ORDER BY id DESC LIMIT 25";
$res = SQL_Query_exec($query);
if (mysqli_num_rows($res)) {

$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, 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 visible = 'yes' AND category =HERE AND banned = 'no' ORDER BY id DESC LIMIT 25";
$res = SQL_Query_exec($query);
if (mysqli_num_rows($res)) {
           torrenttable($res);
       }
$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, 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 visible = 'yes' AND category =HERE AND banned = 'no' ORDER BY id DESC LIMIT 25";
$res = SQL_Query_exec($query);
       if (mysqli_num_rows($res)) {
torrenttable($res);
       }
}else {
Last edited by M-jay warn on 2021-09-12 10:11:12
2021-09-12 13:04:48
Thanks  M-jay  Bro

I am attached download.php and index.php  you say me 5) try this on index.php
find Code :  
$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, 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 visible = 'yes' AND banned = 'no' ORDER BY id DESC LIMIT 25";
$res = SQL_Query_exec($query);
if (mysqli_num_rows($res)) {
torrenttable($res);
}else {


I am search this code on index.php but not show so I am give you both file download.php and index.php please check it  https://www109.zippyshare.com/v/g7SkHdCV/file.html
 ,  again thanks a lot your support bro
Last edited by DigiBolly on 2021-09-12 13:10:39
2021-09-12 13:53:53
Bro i am try to add this mod https://torrenttrader.uk/topic?topicid=9717

but this code is not found in shoutbox.php  https://prnt.sc/1rxzvxy
And I feel it 2 times; Have you put it in your replace code by mistake ?  https://prnt.sc/1ry07wy

In your note it is written, Now, to put in action this modification, you must add the class_user function in every place where you see user name.   https://prnt.sc/1ry116k
But can you tell in which files the username has to be edited?
Or do I have to check all the files? Cause I don't know, I'm sorry to bother you.
2021-09-12 14:35:47
if needed  :giggle
CSS
2021-09-12 16:07:43
just download TTv3 Micro Edition. Most of these mods are already in it. You can look at that code and take from it what you like
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)
2021-09-12 17:42:25
oh ok bro thx
MicroMonkey:
just download TTv3 Micro Edition. Most of these mods are already in it. You can look at that code and take from it what you like  
2021-09-13 22:50:40
No problem, glad to help. Just look and compare the code to yours. I think you can make use of it in your project. Post back if you need any help sorting it out, but it should be pretty straight forward and not very difficult  :smile
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)
2021-09-15 09:55:19
Hi mate, just a little help from me regarding indexing of different categories of torrents:

it all depends on the categories you have on your tracker and what numbers you have on those categories, I guess your category is
1 - MOVIE
2 - TVSHOWS
3 - MUSIC
4 - EBOOKS
you can change them as you wish depending on your needs
all categories are limited to a certain number of torrent views and that is 10 pieces



// movie torrents
begin_frame(T_("MOVIE_TORRENTS"));

print("<br /><center><a href='torrents.php'>".T_("BROWSE_TORRENTS")."</a> - <a href='torrents-search.php'>".T_("SEARCH_TORRENTS")."</a></center><br />");

if ($site_config["MEMBERSONLY"] && !$CURUSER) {
echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";
} else {
$movie = "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, 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 visible = 'yes' AND banned = 'no' AND categories.sort_index= '1' ORDER BY id DESC LIMIT 10";
$mov = SQL_Query_exec($movie);
if (mysqli_num_rows($mov)) {
torrenttable($mov);
}else {

    print("<div class='f-border'>");
    print("<div class='f-cat' width='100%'>".T_("NOTHING_FOUND")."</div>");
    print("<div>");
    print T_("NO_UPLOADS");
    print("</div>");
    print("</div>");

}
if ($CURUSER)
SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");

}
end_frame();


// tvshows torrents
begin_frame(T_("TVSHOWS_TORRENTS"));

print("<br /><center><a href='torrents.php'>".T_("BROWSE_TORRENTS")."</a> - <a href='torrents-search.php'>".T_("SEARCH_TORRENTS")."</a></center><br />");

if ($site_config["MEMBERSONLY"] && !$CURUSER) {
echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";
} else {
$tvshow = "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, 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 visible = 'yes' AND banned = 'no' AND categories.sort_index= '2' ORDER BY id DESC LIMIT 10";
$tv = SQL_Query_exec($tvshow);
if (mysqli_num_rows($tv)) {
torrenttable($tv);
}else {

    print("<div class='f-border'>");
    print("<div class='f-cat' width='100%'>".T_("NOTHING_FOUND")."</div>");
    print("<div>");
    print T_("NO_UPLOADS");
    print("</div>");
    print("</div>");

}
if ($CURUSER)
SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");

}
end_frame();

// music torrents
begin_frame(T_("MUSIC_TORRENTS"));

print("<br /><center><a href='torrents.php'>".T_("BROWSE_TORRENTS")."</a> - <a href='torrents-search.php'>".T_("SEARCH_TORRENTS")."</a></center><br />");

if ($site_config["MEMBERSONLY"] && !$CURUSER) {
echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";
} else {
$music = "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, 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 visible = 'yes' AND banned = 'no' AND categories.sort_index= '3' ORDER BY id DESC LIMIT 10";
$mus = SQL_Query_exec($music);
if (mysqli_num_rows($mus)) {
torrenttable($mus);
}else {

    print("<div class='f-border'>");
    print("<div class='f-cat' width='100%'>".T_("NOTHING_FOUND")."</div>");
    print("<div>");
    print T_("NO_UPLOADS");
    print("</div>");
    print("</div>");

}
if ($CURUSER)
SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");

}
end_frame();

// ebooks torrents
begin_frame(T_("EBOOKS_TORRENTS"));

print("<br /><center><a href='torrents.php'>".T_("BROWSE_TORRENTS")."</a> - <a href='torrents-search.php'>".T_("SEARCH_TORRENTS")."</a></center><br />");

if ($site_config["MEMBERSONLY"] && !$CURUSER) {
echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";
} else {
$ebooks = "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, 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 visible = 'yes' AND banned = 'no ' AND categories.sort_index= '4' ORDER BY id DESC LIMIT 10";
$ebo = SQL_Query_exec($ebooks);
if (mysqli_num_rows($ebo)) {
torrenttable($ebo);
}else {

    print("<div class='f-border'>");
    print("<div class='f-cat' width='100%'>".T_("NOTHING_FOUND")."</div>");
    print("<div>");
    print T_("NO_UPLOADS");
    print("</div>");
    print("</div>");

}
if ($CURUSER)
SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");

}
end_frame();




www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
2021-09-15 10:22:59
Your question #4 is here:

 https://torrenttrader.uk/topic?topicid=9727 


If you have any question just hit it here

Good luck


www.exyusubs.com
TorrentTrader V3.8.3 (SE)
OS: AlmaLinux 9.9 (BC)
Apache version: 2.4.71
PHP version: 8.5.13 (PHP-FPM)
MySQL version: 10.11.18-MariaDB
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728