xiaomlove / nexusphp

A private tracker application base on NexusPHP
https://nexusphp.org
GNU General Public License v2.0
892 stars 180 forks source link

[Request] NFO opens with "Windows-vy" for default view #109

Closed Skyline-007 closed 2 years ago

Skyline-007 commented 2 years ago

Hello

I want to change the default NFO display order.

By default the NFO opens with "DOS-vy".

I would like the NFO to open with "Windows-vy" for default display

Here is a screenshot: nfo

NFO Windows-vy

I would like the NFO to open with "Windows-vy" for default display

Where are the files and what are the lines to modify ?

Thanks in advance for your response and help.

Best regards

Skyline-007

Stargaterom commented 2 years ago

if I understood correctly you want to change by default the nfo mode on the detail.php page. dos-vy

in windows-vy by default: default windows-vy

without having to click on all mode ?

unfortunately I'm also looking for a solution because I can't pass it to windows-vy on the dedail.php file, we have the code: $nfo = code($row["nfo"], $view == "magic");

I can change to latin-1 but it doesn't work so if our friends @xiaomlove can help us it would be nice of him because I'm dry

xiaomlove commented 2 years ago

Can't see any difference between the different models, can you provide a copy of what looks different in the different models?

Stargaterom commented 2 years ago

on the detail page when pressing the + it displays the distorted text in dos-vy my I want to have it displayed directly in windows-vy to avoid the distortion of all nfo of the same type so as on my second picture we can see that in windows-vy it is not distorted compared to the first picture.

my second picture is a montage that I made to show you what I'm trying to do.

I can't find in the code or modify to display in windows-vy on the detail.php page

xiaomlove commented 2 years ago

In the next version I'll provide a configuration to determine which display style to use by default

Stargaterom commented 2 years ago

okay thank you very much it would be more visual for my info. Cordially

Skyline-007 commented 2 years ago

Thank you to @Stargaterom , I see that you were able to explain my problem to @xiaomlove

Thanks again @xiaomlove for the option that you will add in the next update.

Stargaterom commented 2 years ago

@Skyline-007 if I can help it is with pleasure !!! @xiaomlove does all the work

Skyline-007 commented 2 years ago

@xiaomlove did you finish fix suggest xss + nfo view style default ?

Here is what I have in torrent settings : Screenshot_3

Here is the NFO from the Details.php page : nfo1

And here is the NFO from the viewnfo.php page : nfo2

Image is always distorted

Thank you in advance for your answer

xiaomlove commented 2 years ago

It turns out that there are only these two modes, I don't know which one can be displayed properly, so can you upload a copy of the nfo file up?

Skyline-007 commented 2 years ago

@xiaomlove here is the link of the NFO which appears distorted.

The NFO is in "ANSI" encoding.

https://uptobox.com/ch4pgigukzth

xiaomlove commented 2 years ago

Made a commit with reference to UNIT3D, updated to the latest and have a look.

Skyline-007 commented 2 years ago

@xiaomlove Thanks for the corrections you made. This fixes the display problem of this type of NFO format.

Stargaterom commented 2 years ago

hello @xiaomlove , thank you for this modification for the nfo