jDownloads Support Forum

jDownloads for Joomla 4.x and 5.x => jDownloads 4.0 => Bugs! => Topic started by: Florian on 18.01.2024 01:02:23

Title: Umlaute in jDownloads Latest Module
Post by: Florian on 18.01.2024 01:02:23
Hi,

and another one:

If I enable display of Categories in jDownloads Latest Module those categories will display without German Umlaute. Seems to be an UTF-8 encoding issue.
Title: Re: Umlaute in jDownloads Latest Module
Post by: Arno on 18.01.2024 13:52:19
Hi,
as you can see here on the demo installation, I cannot reproduce your problem.

Please send me a link via PM.
Title: Re: Umlaute in jDownloads Latest Module
Post by: Florian on 18.01.2024 14:03:59
Hi Arno,

that is odd. I have a category named Schaltpläne and in JD Latest it is seen as "Schaltpl ne". But I also see your demo site where it works.

I will send you a link via PM

Best regards, Florian.
Title: Re: Umlaute in jDownloads Latest Module
Post by: Florian on 18.01.2024 19:47:23
Hi Arno,

did you receive my PM ? I cannot see what I sent to you in my Sent folder here. I add a screenshot directly. Category name is Schaltpläne .

Title: Re: Umlaute in jDownloads Latest Module
Post by: Arno on 19.01.2024 14:03:02
Quote from: Florian on 18.01.2024 19:47:23Hi Arno,

did you receive my PM ? I cannot see what I sent to you in my Sent folder here. I add a screenshot directly. Category name is Schaltpläne .

No, I have no PM received.

Could you please export your jDownloads settings (see Tools menu) and attach them in a PM?
Title: Re: Umlaute in jDownloads Latest Module
Post by: Florian on 19.01.2024 16:29:25
Okay sent with options to you.

Thanks for your support.
Title: Re: Umlaute in jDownloads Latest Module
Post by: Florian on 21.01.2024 22:43:06
Hi Arno,

I think I get closer. I just checked how this "Schaltpläne" folder is stored in my website. And it is named folder "/jdownloads/Schaltpl ne". For sure I created it in a previous jD version.

Looking at table __jdownloads_categories I believe that you use field cat_dir instead of title for display in jD Latest.
Title: Re: Umlaute in jDownloads Latest Module
Post by: Florian on 21.01.2024 23:03:17
Hi Arno,

your new coding helper has found it in line 67 of modules/mod_jdownloads_latest/tmpl/default.php

change it to

                            $cat_show_text2 = $files[$i]->category_title;

and it will correctly display the title and not the directory.
Title: Re: Umlaute in jDownloads Latest Module
Post by: Florian on 21.01.2024 23:09:45
BTW: This is also valid for line for categories with parent category

   $cat_show_text2 = $files[$i]->category_cat_dir_parent.'/'.$files[$i]->category_cat_dir;

It should be title of category and title of parent category .
Title: Re: Umlaute in jDownloads Latest Module
Post by: Arno on 22.01.2024 15:20:17
Hi Florian,
OK. But of course I wonder why I chose this variant at the time. Of course, it could just have been a mistake.

As you wrote, you created this category a long time ago with an old version (and possibly different settings). Presumably the entry was created incorrectly, so it can no longer be reproduced with the current version.

I will change it accordingly.

Edit: This passage needs to be corrected for almost every module. But a little more needs to be changed than just this line.
Title: Re: Umlaute in jDownloads Latest Module
Post by: Florian on 23.01.2024 11:54:33
Hi Arno,

I am sorry and I understand the confusion why I would see the error and you wouldn't as today there is no discrepancy between title and folder name. You should have made it one and not two fields from the beginning.

Whatever, thanks for caring.