jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Bugs => Topic started by: UweS on 03.08.2018 13:45:46

Title: No "alt" tag
Post by: UweS on 03.08.2018 13:45:46
Hello!

I have a problem with the file_pic. There is no alt tag set for the file image. I include the download with {jd_file file==xxx} in my article. (Example: https://www.csm.de/de/produkte/can-minimodule/19-can-admm)

In the download area there is set the file name as alt text.

Thx
Title: Re: No "alt" tag
Post by: ColinM on 04.08.2018 11:26:26
Hi
I confirm, Thanks for pointing out.
Colin
Title: Re: No "alt" tag
Post by: UweS on 29.08.2019 14:37:44
Bug is already there and a lot of work for every jDownload update...
Title: Re: No "alt" tag
Post by: ColinM on 30.08.2019 13:06:28
Hi
Thanks for the reminder!  Adding in the code to include an alt= is surprisingly quite complex but I will ask for it in the new jD3.9 series.
Colin
Title: Re: No "alt" tag
Post by: Arno on 03.09.2019 12:08:59
Please note that in this case the image is only for decoration.
In my opinion it is not really important to fill out here the alt tag. Or not?
Title: Re: No "alt" tag
Post by: UweS on 04.09.2019 09:46:39
Hi,

SRC and ALT are required for IMG in html. There are a lot of alerts in my SEO Tool too. :)


Quick fix for my records and twimc:

plugins / content / jdownloads / jdownloads.php

Line: 846,915,927,1634,1665,1674 search for alt=" " and set to  alt="'.$files[$i]->file_pic.'"



an other possibility would be to set the alt tag to alt="" (NULL) for accessibility. (https://www.w3.org/WAI/tutorials/images/decorative/) The whitespace is the problem.
Title: Re: No "alt" tag
Post by: Arno on 04.09.2019 13:22:53
Hi,excuse me but I cannot find any alt tag with a space (like alt=" ").

But I will add the filename in the next version.

Edit:also this is not correct:

$files[$i]->file_pic
it should be:
$files->file_pic
Title: Re: No "alt" tag [Fixed 3.2.66]
Post by: UweS on 17.01.2020 11:10:22
Fixed and Closed in Version 3.2.66.

Thank you!