Foren / Cotonti / Support / Alt. text to rowcat icon

medj
#1 27. März 2009, 13:25
I want to add alt text to my row category icons.
I checked out the skin file and found that I would not be able to edit it there.
I then checked out the list.inc.php file in the core and it doesn't seem that I am able to edit it there either. Does anyone know how I can add alt text. I basically just want the Category Title to appear on the alt text. Thanks.

By the way, I'm running Seditio, but I have a feeling this alt text problem might not have been fixed in Cotonti yet.

Hopefully someone can let me know how to accomplish this.
musiconly
#2 27. März 2009, 16:41
Functions.php

if (!empty($row['structure_icon']))
			{ $row['structure_icon'] = "<img src=\"".$row['structure_icon']."\" alt=\"\" />"; }

to this:

if (!empty($row['structure_icon']))
			{ $row['structure_icon'] = "<img src=\"".$row['structure_icon']."\" alt=\"".$row['structure_title']."\" title=\"".$row['structure_title']."\" />"; }

Note:

ALT attribute is used when src image can NOT be found, and then it displays the data which is supplied for ALT (in your case structure title) instead of IMAGE. ALT attribute is NOT here to show info when user HOVERS over image - but the stupid IE6/7 uses it for that purpose.

TITLE attribute is used for showing info when HOVERING over picture.
Kort
#3 27. März 2009, 16:56
Actually, thats the ways it should be!
SED.by - создание сайтов, разработка плагинов и тем для Котонти
musiconly
#4 27. März 2009, 17:05
# Kort : Actually, thats the ways it should be!

I don't understand your post. You're referring to what?
pieter
#5 27. März 2009, 17:14
That you were right. And that you gave the right info.
... can we help you ...
Kort
#6 27. März 2009, 17:17
Yep, I guess you should make a ticket.
SED.by - создание сайтов, разработка плагинов и тем для Котонти
musiconly
#7 27. März 2009, 17:35
Ticket opened.
medj
#8 28. März 2009, 01:43
Thanks a lot for your reply musiconly. I just had no clue that it was in functions.php. Thanks again!
musiconly
#9 28. März 2009, 03:30
No problem. Glad I can be useful around here :-)
medj
#10 28. März 2009, 10:38
I just got home and I tried the code replacement which I expected to have no problems with.
It seems that my changes are not appearing on the category page. Maybe those lines were for the forum structure?
musiconly
#11 28. März 2009, 19:12
There's no way that code could be for forum structure. You see, few lines before the code you need to change, MYSQL code is pulling data from db_structure which is table for category structure.

If that code was for forum structure, it would be using db_forum_structure.

Are you sure you have done everything right?

I'm using Seditio 125 and I've applied that fix.

You can see the real example here:

http://www.gitare.info/list.php?c=wiki

Dieser Beitrag wurde von musiconly (am 28. März 2009, 19:19, vor 16 Jahre) bearbeitet
medj
#12 29. März 2009, 06:48
Just for fun, I added border=\"0\" to the line we are talking about and that change doesn't even appear when I view the source. Very strange indeed.

EDIT: Something even stranger has happened and that is that it has just started working.
For some reason, when I was uploading my changes yesterday night, they were not showing up yesterday.
Maybe something with my host/server...
musiconly
#13 29. März 2009, 19:01
Hehe, glad it finally worked out. :-)