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
NFO fix [TTv3]
Controls ·  Search New posts · Mark unread

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

Unknown User
2019-11-18 17:10:58
Nothing to do with you're issue but it's worth pointing out that you shouldn't have the root user as owner of you're webfolder or group should be www-data or something other than root you shouldn't edit your files as root either I would suggest checking permissions making sure the nfo files have correct permissions just a suggestion
2019-11-18 23:57:57
My test site runs like this normally. I run this in terminal
sudo chown -R www-data:www-data /var/www/my_site_folder

If I need to edit files on the server, I run this in terminal
sudo chown -R $USER:www-data /var/www/my_site_folder


But I dont suspect this is the problem with your NFO file. You modified your directories from the standard structure. Check the files for this mod and make changes there also
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)
Unknown User
2019-11-19 17:52:47
Thanks for helping, but the result is still the same.
Trying to test on another server after a fresh TT installation.

Thanks for your attention, I've changed the rights of my files to the owner and the groups. I forgot about it. ? ?
Unknown User
2019-11-23 10:18:51
Problem SOLVED!
The problem was the wrong directory path in nfo-view.php file
    include("backend/config.php");


but must be

    include("backend/system/config.php");


Correct it in the first post nfo-fix.rar on
2019-11-23 23:32:50
No, you edited your directory paths. I said that a few posts ago. That is not standard. If you are going to alter your directories for whatever reason (dont know why you would) you will have a hard time using mods unless you really know what you are looking for. This is the original directory in nfo-view.php. Stop changing things for no reason, you will be happier for it. Feel free to customize your code all you like, but dont expect anyone here to be able to help as it is not possible on custom code :)
    include("backend/nfo2png.php");
   include("backend/config.php");

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)
Unknown User
2019-11-24 07:35:46
Okay and thanks for the answer!  
I have not relocated any catalogues, all are in their default locations after installation. I now understand that the TTv3 and TTv3 Moded are different to the contents of their catalogues and files. I've just been using this TTv3 Moded version.
That's why my website probably doesn't work properly!?
Can I upload the original files to overwrite them?
2019-11-24 19:44:14
It would need a fresh install, on the modded one all the functions have been separated so the paths are different, if you keep the modded you just need to look out for paths by require or include but I'll remove the modded one because I no longer use it
I'm sure this and most other mods were added
2021-02-18 17:11:42
Hi guys how change code NFO file. When you click then the info file is displayed as in tbdev
View NFO. Is this possible?
2021-02-18 17:36:33
Can you post more info? I dont know what tbdev looks like. Maybe a screenshot?

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)
Last edited by MicroMonkey on 2021-02-18 17:37:51
2021-02-18 18:48:08


and when click on NFO is displayed like this




Last edited by coco on 2021-02-18 18:49:20
2021-02-18 19:32:09
cant seem to post this code here, so try this and see if its what you need in torrents-details.php. I had to post it on codepile https://www.codepile.net/pile/PWmZVXrq
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)
Last edited by MicroMonkey on 2021-02-18 19:34:12
2021-02-18 20:43:06
Works great, thanks MicroMonkey  ;)
NFO works.

Now I have another problem
If the torrent name symbols are longer, it is not displayed



this is only in the torrents.php page
Help  please :(
2021-02-18 21:41:09
check in functions.php. I believe thats where the name gets cut. Check for this code or similar
			case 'name':
$char1 = 35; //cut name length
$smallname = htmlspecialchars(CutName($row["name"], $char1));

Feel free to download the modded TTv3 Micro Edition and look through that code for items. You may find it useful :)
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)
Last edited by MicroMonkey on 2021-02-18 21:43:30
2021-02-18 21:51:51
you should have this function in your file. If not, definitely look at my files, and use whatever you like
function CutName ($vTxt, $Car) {
if (strlen($vTxt) > $Car) {
return substr($vTxt, 0, $Car) . "...";
}
return $vTxt;
}

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-02-18 22:21:33
Yes bro this working i changed 35 to 45 and everything is ok
Thanks again you are the best MM  :)

Good night guys and see you tomorrow
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: 4
  • Members: 0
  • Guests online: 4
  • Comments: 3
  • Messages: 1,728