Picture page is not W3C valid! How to fix this?

Phoca Gallery - image gallery extension
st3n
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 27 Jan 2009, 13:28

Re: Picture page is not W3C valid! How to fix this?

Post by st3n »

so i replace the code:

Code: Select all

echo '<form action="'.$this->tmpl['action'].'" method="post" name="adminForm">';
in:

Code: Select all

components/com_phocagallery/views/category/tmpl/default.php
for:

Code: Select all

$mojetmp = '';
$mojetmp = '<form action="'.$this->tmpl['action'].'" method="post" name="adminForm">';
$mojetmp = str_replace("&", "&", $mojetmp);
echo $mojetmp;
its valid now, i am testing the site, i will write, when i will see some problems with the replacement
st3n
Phoca Newbie
Phoca Newbie
Posts: 9
Joined: 27 Jan 2009, 13:28

Re: Picture page is not W3C valid! How to fix this?

Post by st3n »

SO I tried it, but... with the string replace for amp are problems... after action in form and automatic reloading the page, cant get paarameters from menu item and component are getting confgurations from global parameters....

but i need valid site :(

any tips?

thanks and sorry for my english
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Picture page is not W3C valid! How to fix this?

Post by Jan »

Hi, the links are still problem in Joomla! and some servers. There are mehtods: JRoute, JHTML, etc. which create correct link with & but some links then doesn't work on some servers, so e.g. here $this->tmpl['action'] need to be used instead...

Why do you need your site will be valid? Is there some reason for it? All xhtml tags are correctly closed, there is only & instead of & in some Joomla! links but this doesn't have any influence on the site?


Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49297
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Picture page is not W3C valid! How to fix this?

Post by Jan »

If you find Phoca extensions useful, please support the project
Post Reply