Provide better ALT Names on images.

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The next feature release of phpBB 3 will be 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.2.x. If you need support for phpBB 3.2.x please visit the 3.2.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
/a3
Registered User
Posts: 97
Joined: Mon Sep 20, 2010 6:44 am

Re: Provide better ALT Names on images.

Post by /a3 »

TheKiller wrote:it reads the images and from their name it sets the alt.
What's the point in that? Many screen readers would read that bit anyway.
Appropriate Use of Alternative Text wrote:When encountering images that are missing an alt attribute, screen readers may provide what information they extract from the page content (such as file name or dimensions or location on the page) in an effort to provide SOME alternative to the user.
If alternative text is going to be done, it should at least be done properly.
$ git commit -m "YOLO"

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1836
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Provide better ALT Names on images.

Post by DavidIQ »

I think the only viable solution to this is to allow something like img="The alt text". In the absence of said property assignment there would be no reason to try and guess as to what it should be due to the reasons /a3 stated.
Image

User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: Provide better ALT Names on images.

Post by Dragosvr92 »

/a3 wrote: What's the point in that? Many screen readers would read that bit anyway.
What do you mean..?

[quote=""/a3"]"When encountering images that are missing an alt attribute, screen readers may provide what information they extract from the page content (such as file name or dimensions or location on the page) in an effort to provide SOME alternative to the user."
If alternative text is going to be done, it should at least be done properly.[/quote]
To the user or to the crawler? The user sees what the image represents and it doesnt need a name for it.
DavidIQ wrote:I think the only viable solution to this is to allow something like img="The alt text". In the absence of said property assignment there would be no reason to try and guess as to what it should be due to the reasons /a3 stated.
I think there is absolutely no need to bother making the img tag like this img="The alt text".
Why would people bother to give a name to their image just to do something they dont see or use..... Which is the alt.. Maybe if you would add a title on the image at top might encourage them to name them........

But, all this can be done in php. Why load the language file in php to set the alt, when you could just make a few lines o php code that reads what the name of the image is and sets it as an alt..
Previous user: TheKiller
Avatar on Memberlist 1.0.3

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1836
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Provide better ALT Names on images.

Post by DavidIQ »

I had to read from the beginning again to see what all the fuss is about. Here I thought you were concerned about those that are visually impaired, which is why I was agreeing with /a3, and really all you're bringing up here is something about SEO. :roll:

IMO whatever we'd do as a solution in code, i.e. what Arty suggested, is likely already being done by search engines.
Image

User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: Provide better ALT Names on images.

Post by Dragosvr92 »

And i get it that phpbb doesnt care to be SEO compatible, so it will make forums rank better in search engines..?

All it would need is a simple function that gets the name of the image and puts it into the alt="".
Better than loading the language file that says "Image", just not to let the alt empty. Arty explained a bit better than i did on the first page.
Previous user: TheKiller
Avatar on Memberlist 1.0.3

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1836
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Provide better ALT Names on images.

Post by DavidIQ »

TheKiller wrote:And i get it that phpbb doesnt care to be SEO compatible, so it will make forums rank better in search engines..?
Nobody has said that. My views and opinions do not represent what the rest of the group thinks or feels. All I'm really looking for is something to back up your claim that what you're suggesting here actually does anything for a board's SEO, something that search engines aren't already doing.
Image

User avatar
Dragosvr92
Registered User
Posts: 624
Joined: Tue May 31, 2011 12:08 pm
Location: Romania
Contact:

Re: Provide better ALT Names on images.

Post by Dragosvr92 »

Yes, i knew that, but i was talking about the soft itself and you make it sound like it shouldnt support SEO.
It might not be a great improvement in SEO, but in my opinion it is an idea to get better and accurate alt's, other than one saying image.
All it would need would be an easy PHP function to replace that $user->lang['IMAGE']. Should be a few minutes work for someone experienced.
Yes i know i repeat myself. Sorry if you feel im putting pression on anyone about this subject. It can be ignored if you feel its a bad idea. :roll:
Previous user: TheKiller
Avatar on Memberlist 1.0.3

ecwpa
Registered User
Posts: 181
Joined: Mon Jan 24, 2005 2:10 am
Contact:

Re: Provide better ALT Names on images.

Post by ecwpa »

DavidIQ wrote:Here I thought you were concerned about those that are visually impaired, which is why I was agreeing with /a3, and really all you're bringing up here is something about SEO. :roll:
Whats wrong with SEO? Wouldn't you like your content to be easier to find? You make it sound like it's evil or the complete opposite to making visually impaired optimizations. Why can't we have both?

Anyway, this request sounds razonable and I support it but I'm guessing a lot of ALT text are going to end up being random alphanumeric characters, like most images nowdays.
Slightly better English than it was in 2005, still improving :D

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1836
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: Provide better ALT Names on images.

Post by DavidIQ »

TheKiller wrote:Yes, i knew that, but i was talking about the soft itself and you make it sound like it shouldnt support SEO.
It might not be a great improvement in SEO, but in my opinion it is an idea to get better and accurate alt's, other than one saying image.
All it would need would be an easy PHP function to replace that $user->lang['IMAGE']. Should be a few minutes work for someone experienced.
Yes i know i repeat myself. Sorry if you feel im putting pression on anyone about this subject. It can be ignored if you feel its a bad idea. :roll:
Well nobody's going to do anything if you don't create an RFC topic ;-)
Image

/a3
Registered User
Posts: 97
Joined: Mon Sep 20, 2010 6:44 am

Re: Provide better ALT Names on images.

Post by /a3 »

TheKiller wrote:Better than loading the language file that says "Image", just not to let the alt empty. Arty explained a bit better than i did on the first page.
I don't think putting file names in alt text would even make a difference. Google possibly already uses filenames to get more information about your images anyway.
Google Image Publishing Guidelines wrote:The filename can give Google clues about the subject matter of the image. Try to make your filename a good description of the subject matter of the image.
So there doesn't appear to be any SEO benefit from this point of view, and there doesn't seem to be any benefit for screenreaders either. By the way, putting "Image" as the alt text is a silly idea, since the tag is an <img> tag anyway (so it's kind of obvious that it's going to be an image).
ecwpa wrote:Whats wrong with SEO? Wouldn't you like your content to be easier to find? You make it sound like it's evil or the complete opposite to making visually impaired optimizations. Why can't we have both?
I don't mind legitimate SEO, but I'm a believer that making senseless changes doesn't make any difference whatsoever.
$ git commit -m "YOLO"

Post Reply