Page 1 of 1

Validation error with image rating turned on

Posted: 17 May 2010, 05:35
by jesin
I'm using phoca gallery 2.7.0 on joomla 1.5.17. The problem is that when I turn on image rating and when I validate my website I get the following errors
Line 206, Column 338: document type does not allow element "ul" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

…: 0.3}" ><ul class="star-rating-small"><li class="current-rating" style="width…

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>").
I understand that I need to edit the file /components/com_phocagallery/views/category/tmpl/default.php but don't know how to do it. Please help

Re: Validation error with image rating turned on

Posted: 17 May 2010, 13:39
by Jan
Hi, this is an external rating script and the effect only works this way (block element needs to be added).

So there are two ways:

- display rating to users with this effect, will be not valid but it is SEO friendly
- don't display rating effects and make the code valid - will be valid but NOT SEO friendly, because users will get not the rating effect :-(


The code you can find here:
components\com_phocagallery\views\category\tmpl\default.php

If you will find some way with valid code, please let me know, will be great to update it.

Jan