Elxis CMS Forum

Extensions => Templates => Topic started by: ks-net on November 02, 2008, 06:03:12

Title: Elxis error ... xhtml invalid (star OFF / star ON) [SOLVED]
Post by: ks-net on November 02, 2008, 06:03:12
value of attribute "name" must be a single token.

…title="OFF" align="bottom" name="star OFF" border="0" /><img src="http://elxi....

This attribute can not take a space-separated list of words as a value, but only one word ("token"). This may also be caused by the use of a space for the value of an attribute which does not permit it.



in voting system of cource
as it says mast not be a space in star OFF

i think that there is no other problem if i modify mosvote.php line 29-31 and change star OFF  star ON  to  star_OFF  star_ON

Title: Re: Elxis error ... xhtml invalid
Post by: datahell on November 02, 2008, 10:14:06
ks please write file and line number.
Is it on a third party bot (ajax vote)?
Title: Re: Elxis error ... xhtml invalid
Post by: Farhad Sakhaei on November 02, 2008, 12:31:50
I was reported this before John ,
File : \mambots\content\mosvote.php

$starImageOn = mosAdminMenus::ImageCheck( 'rating_star.png', '/images/M_images/', NULL, '/images/M_images/', 'ON', 'star ON', 1, 'bottom');
$starImageOff = mosAdminMenus::ImageCheck( 'rating_star_blank.png', '/images/M_images/', NULL, '/images/M_images/', 'OFF', 'star OFF', 1, 'bottom' );

To :

$starImageOn = mosAdminMenus::ImageCheck( 'rating_star.png', '/images/M_images/', NULL, '/images/M_images/', 'ON', 'starON', 1, 'bottom');
$starImageOff = mosAdminMenus::ImageCheck( 'rating_star_blank.png', '/images/M_images/', NULL, '/images/M_images/', 'OFF', 'starOFF', 1, 'bottom' );
Title: Re: Elxis error ... xhtml invalid
Post by: datahell on November 02, 2008, 13:41:08
Fixed! (Renamed to "staron" and "staroff")
Title: Re: Elxis error ... xhtml invalid
Post by: ks-net on November 02, 2008, 18:29:15
Quote
ks please write file and line number.
Is it on a third party bot (ajax vote)?

sorry... i was sleeping till 15.00 :P

well i had wrote all details you asking in your post.

i am checking now this topic as [solved]
Title: Re: Elxis error ... xhtml invalid
Post by: Farhad Sakhaei on November 02, 2008, 18:34:36
You can edit the file : \mambots\content\mosvote.php

Find :
$starImageOn = mosAdminMenus::ImageCheck( 'rating_star.png', '/images/M_images/', NULL, '/images/M_images/', 'ON', 'star ON', 1, 'bottom');

Replace it with :

$starImageOn = mosAdminMenus::ImageCheck( 'rating_star.png', '/images/M_images/', NULL, '/images/M_images/', 'ON', 'staron', 1, 'bottom');

And find :

$starImageOff = mosAdminMenus::ImageCheck( 'rating_star_blank.png', '/images/M_images/', NULL, '/images/M_images/', 'OFF', 'star OFF', 1, 'bottom' );

Replace it with:

$starImageOff = mosAdminMenus::ImageCheck( 'rating_star_blank.png', '/images/M_images/', NULL, '/images/M_images/', 'OFF', 'staroff', 1, 'bottom' );

However it is fixed for next version :)
Title: Re: Elxis error ... xhtml invalid (star OFF / star ON) [SOLVED]
Post by: ks-net on November 02, 2008, 19:17:20
yes i did that last night... Star_Off etc. my choice
then fell for sleeping...

but today john  remind me the ajax-vote  :o

by the way..  can this bot published selectively ..
it is not necessarily to vote for example... privacy&policy page!