Slideshow broken

DOD / 2011-01-12 20:05:10   

slideshow is my home page so without it I have nothing. Everytime I upload an image it comes up as an error on the w3 validator showing this message:

  1. ......adelog.com/files/gimgs/1_pigeon-dor2.jpg' class='img-bot' /><p> </p></div>
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element."

I've replaced all the original php files but still getting message.

www.manmadelog.com

blameme / 2011-01-13 04:02:57   

Hey DOD, the slideshow works fine for me, but if you want it to validate you need to somehow fill the Alt="" atribute.

you can do this by finding this line in exhibit.slideshow.php (or whichever exhibit format you´re using):

  1. < img src=""/>

and add the following

  1. title='$go[media_title]' alt='$go[media_caption]' 

so you get:

  1. < img src="" title='$go[media_title]' alt='$go[media_caption]'/>

Then you just need to add some text in "Image Caption" box when you upload your images.

Pz.

DOD / 2011-01-13 07:16:40   

Thanks blameme i'll try that .....

DOD / 2011-01-13 20:24:49   

No luck. showing up warning and error messages now, dont understand : ( I think ther is a problem with this bit of code:

  1. {
  2.         $title         = ($go['media_title'] == '') ? '' : $go['media_title'] . ' ';
  3.         $caption     = ($go['media_caption'] == '') ? ' ' : $go['media_caption'];
  1.         //$x = getimagesize(BASEURL . GIMGS . '/' . $go['media_file']);
  2.         
  3.         $a .= "n<div><img src=  '" . BASEURL . GIMGS . "/$go[media_file]' class='img-bot' /><p>{$title}{$caption}</p></div>n";
  4.         
  5.         $i++;
  6.     }

but god bless me I dont know what

G470 / 2011-01-14 03:16:35   

Hi DOD,

@moment your alt tag is messed up.Maybe you could try typing it like this:

<img src='" . BASEURL . GIMGS . "/$go[media_file]' class='img-bot' alt='$caption' />

DOD / 2011-01-14 20:15:02   

Thanks G470. I hope you dont think me too forward but I think I love you. problem solved, mostly by you. tried your suggestion of

  1. <img src='" . BASEURL . GIMGS . "/$go[media_file]' class='img-bot' alt='$caption' /> 
  2. but that still gave error messages but when I tried it again without $caption inside the quotation marks it passed. in the end just needed to add alt='' thats it.

problem solved:

  1. <img src='" . BASEURL . GIMGS . "/$go[media_file]' class='img-bot' alt='' /> 
  2. :D
DOD / 2011-01-14 20:16:15   

p.s
the smiley face at the end is not part of the code

: D

G470 / 2011-01-15 01:44:40   

:) thank you.
I don´t know why it doesn´t work but w3c only needs the alt tag. On my server it works with the $caption variable.
Greetings: G470

This thread has been closed, thank you.