[solved] DocType 1.0 HTML strict and gallery

Phoca Gallery - image gallery extension
luisasasi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 May 2011, 21:16

[solved] DocType 1.0 HTML strict and gallery

Post by luisasasi »

I've installed Phoca Gallery in Joomla 1.5. Everything Is OK, but the strict HTML validator tells me 3 errors in this piece of code:

Code: Select all

213. < div style = "clear: both" > </div>
214. </div> < div style = "clear: both" > </div><div>&nbsp;</div> < form action = "http://www.nadiacaprotti.com/joomla15/galleria-fotografica" method = "post" name = "adminForm" >
215. < div class = "pgcenter" > </div>
216. < input type = "hidden" name = "controller" value = "category"/>< input type = "hidden" name = "2380da7856a8a982fa5e9cbc6009d318" value = "1"/> </form></div>
217. <div>&nbsp;</div>
218. <div>&nbsp;</div> <!--End Category </a></div>-->

Code: Select all

214 ... name = "adminForm" >
The name attribute is deprecated. I have removed and everything goes well.

Code: Select all

216. "name =" controller "value =" category "/>< input type =" hidden "name =" 2380da7856a8 … type = "hidden" name = "2380da7856a8a982fa5e9cbc6009d318" value = "1"/> </form></div>
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

You can help me to correct?
Thank you
luisasasi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 May 2011, 21:16

Re: [solved] DocType 1.0 HTML strict and gallery

Post by luisasasi »

Thank you. I resolved the problem.
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9985
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: [solved] DocType 1.0 HTML strict and gallery

Post by Benno »

Ok. Solved

Kind regards,
Benno
luisasasi
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 10 May 2011, 21:16

Re: [solved] DocType 1.0 HTML strict and gallery

Post by luisasasi »

In the code tags are deprecated type name (name = adminForm) that I removed it and everything works.
In views/category form layout there are 2 errors, so I commented.
I removed from photogallery. all css opacity and Gallery work.
Now the css validator reports errors still due to the script, but I can't fix.

Code: Select all

<script type="text/javascript" src="/joomla15/components/com_phocagallery/assets/js/slimbox/slimbox.js"></script> 
19.  <script type="text/javascript"> 
20.  
21.  window.addEvent('domready', function() { 
22.  
23.  SqueezeBox.initialize({}); 
24.  
25.  $$('a.modal-button').each(function(el) { 
26.  el.addEvent('click', function(e) { 
27.  new Event(e).stop(); 
28.  SqueezeBox.fromElement(el); 
29.  }); 
30.  }); 
31.  }); 
32.  </script> 
33.  <script type="text/javascript" src="http://www.nadiacaprotti.com/joomla15/plugins/system/protos.lightbox.js"></script> 
34.  <script type="text/javascript"> 
35.  hs.graphicsDir = 'http://www.nadiacaprotti.com/joomla15/plugins/system/protos.lightbox/'; 
36.  hs.outlineType = 'rounded-white'; 
37.  </script> 
38.  <link href="http://www.nadiacaprotti.com/joomla15/plugins/system/protos.lightbox.js.css" rel="stylesheet" type="text/css" /> 
39.  <!--[if lt IE 8 ]> 
40. <link rel="stylesheet" href="/joomla15/components/com_phocagallery/assets/phocagalleryieall.css" type="text/css" /> 
41. <![endif]--> 
42.  <style type="text/css"> 
43.  #phocagallery .phocaname {color: #b36b00 ;} 
44.  .phocagallery-box-file {background: #fcfcfc ; border:1px solid #e8e8e8;margin: 5px;padding: 5px; } 
45.  .phocagallery-box-file-first { background: url('/joomla15/components/com_phocagallery/assets/images/shadow1.gif') 50% 50% no-repeat; } 
46.  .phocagallery-box-file:hover, .phocagallery-box-file.hover {border:1px solid #b36b00 ; background: #f5f5f5 ;} 
47. .bgPhocaClass{ 
48.  background:#666666; 
49.  filter:alpha(opacity=70); 
50.  opacity: 0.7; 
51.  -moz-opacity:0.7; 
52.  z-index:1000; 
53.  } 
54.  .fgPhocaClass{ 
55.  background:#f6f6f6; 
56.  filter:alpha(opacity=100); 
57.  opacity: 1; 
58.  -moz-opacity:1; 
59.  z-index:1000; 
60.  } 
Line 49-51-56-57-58 should be removed.
I hoped to help, but ...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49191
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [solved] DocType 1.0 HTML strict and gallery

Post by Jan »

Hi, Phoca Gallery (CSS and HTML) is made to be SEO friendly. It means, it was made to display on all different browsers (include non standard but used browsers like IE is) so the output is same or similar in all browsers - mostly in such case it will be not valid. But for now there is no reason the code should be valid because validity does means nothing. More important is SEO now. :idea:
If you find Phoca extensions useful, please support the project
Post Reply