coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: rybosom on January 29, 2005, 01:16:49 AM

Title: change alt=""
Post by: rybosom on January 29, 2005, 01:16:49 AM
how to change alt="" and add description (one description for all pictures to someone who cannot see any images) ?

Title: Re: change alt=""
Post by: donnoman on January 29, 2005, 01:42:43 AM
How is one description for all images any more helpful?

If you think about it, that just creates more cruft and a harder page to understand for someone who is impaired.

Either make it relevant or don't do it at all.
Title: Re: change alt=""
Post by: rybosom on January 29, 2005, 02:12:19 AM
for example:

now is:

<a href="displayimage.php?album=random&cat=0&pos=-11"><img src="albums/userpics/10001/thumb_700.jpg" class="image" " height="95" border="0" alt="700.jpg" title="Nazwa pliku: 700.jpg Rozmiar pliku: 17kB Wymiary: 239x350 Data dodania: 02 Stycznia 2005"><br /></a>

or

<a href="displayimage.php?album=random&cat=0&pos=-6"><img src="albums/userpics/10001/thumb_4008.jpg" class="image" " height="95" border="0" alt="4008.jpg" title="Nazwa pliku: 4008.jpg Rozmiar pliku: 139kB Wymiary: 350x443 Data dodania: 02 Stycznia 2005"><br /></a>

and I want to change to this:

<a href="displayimage.php?album=random&cat=0&pos=-11"><img src="albums/userpics/10001/thumb_700.jpg" class="image" " height="95" border="0" alt="Obraz nalezacy do strony o haftach itp" title="Nazwa pliku: 700.jpg Rozmiar pliku: 17kB Wymiary: 239x350 Data dodania: 02 Stycznia 2005"><br /></a>

or

<a href="displayimage.php?album=random&cat=0&pos=-6"><img src="albums/userpics/10001/thumb_4008.jpg" class="image" " height="95" border="0" alt="Obraz nalezacy do strony o haftach itp" title="Nazwa pliku: 4008.jpg Rozmiar pliku: 139kB Wymiary: 350x443 Data dodania: 02 Stycznia 2005"><br /></a>

ect.

all tags name 'alt' are the same: Obraz nalezacy do strony o haftach itp
Title: Re: change alt=""
Post by: donnoman on January 29, 2005, 03:30:36 AM
I don't see how that is an improvement.

Imagine that page being read to you. (common for the visually impaired)

I wouldn't want to hear "Obraz nalezacy do strony o haftach itp" over and over again.

The filename at least conveys relevant information.

To me it would make more sense if the text of the title were to be used as the alt if anything were to be changed.

random excellent google resources:

http://www.schrode.net/design/alttext.html
http://uaweb.arizona.edu/resources/tutorial/alt.shtml

Title: Re: change alt=""
Post by: kegobeer on January 29, 2005, 04:14:48 AM
You're talking about the thumbnails and the images in the filmstrip, right?

In functions.inc.php, find (there will be two of them, one in function display_film_strip and one in function display_thumbnails)
$thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\" title=\"$pic_title\">";

Reaplce {$row['filename']} with Obraz nalezacy do strony o haftach itp
Title: Re: change alt=""
Post by: rybosom on January 29, 2005, 09:49:58 PM
thx  ;)

it's works! good work  :)
Title: Re: change alt=""
Post by: Joachim Müller on January 30, 2005, 08:52:46 AM
the point of the alt text is something else - the images already contains a title text that is more important to screen readers anyway than an alt text. Although your initial question was solved (you managed to edit the alt text), you should reconsider this - as donnoman pointed out, you shouldn't abuse the alt text.

Joachim