Need help with K2 and w3c

General questions relating to Joomla! 2.5. Note: All 1.6 and 1.7 releases have reached end of life and should be updated to 2.5. There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
hares7293
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Thu May 17, 2012 9:43 pm

Need help with K2 and w3c

Post by hares7293 » Fri Nov 30, 2012 2:17 am

Hello to all,

I know that w3C validation has not to be perfect but i have a weird issue with k2.

If my article is published as (in item view options)
readmore - my text (with introtext as hide and fulltext as show) it's ok

However
If my article is published as
no readmore - my text (with introtext as show and fulltext as (show or hide) i got the following w3c errors

Code: Select all

required attribute "type" not specified 
<script language="Javascript">
The source

Code: Select all

<!-- Item text -->
 <div class="itemFullText">
 <script language="Javascript">

 var br ='<br>';
 var xbr ='<br/>';

 var div ='<div>';
 var span ='<span>';
 var p ='<p>';

 var i ='<i>';
 var u ='<u>';
 var s ='<s>';
 var b ='<b>';

 var endi ='</i>';
 var endu ='</u>';
 var ends ='</s>';
 var endb ='</b>';
 
 var endp ='</p>';
 var enddiv ='</div>';
 var endspan ='</span>';

 var a ='<a href="###url###">';
 var enda ='</a>';
 
 </script>
Thanks in advance for any help.

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Need help with K2 and w3c

Post by brian » Fri Nov 30, 2012 10:07 am

It should be <script type="text/javascript">
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

hares7293
Joomla! Apprentice
Joomla! Apprentice
Posts: 38
Joined: Thu May 17, 2012 9:43 pm

Re: Need help with K2 and w3c

Post by hares7293 » Fri Nov 30, 2012 12:42 pm

Thanks,

I know what the problem is. However i am not capable to find where the error is located. I looked in components/com_k2/templates/default/item.php but no chance

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12787
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: Need help with K2 and w3c

Post by brian » Fri Nov 30, 2012 12:46 pm

Sorry I dont use K2 - you're probably best talking directly to the developers especially if the "fix" involves modify K2 itself or you will lose the changes the next time you update K2
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/

User avatar
modernmagic
Joomla! Explorer
Joomla! Explorer
Posts: 386
Joined: Mon Aug 10, 2009 3:58 pm
Location: Laguna Beach, CA, USA
Contact:

Re: Need help with K2 and w3c

Post by modernmagic » Wed Jul 27, 2016 9:10 pm

hares7293 wrote:Thanks,

I know what the problem is. However i am not capable to find where the error is located. I looked in components/com_k2/templates/default/item.php but no chance
How did you resolve this issue?
Joomla! Website Designer http://www.modernmagic.com
Joomla! User Group Leadership Team http://www.ocjoomlausergroup.org/


Locked

Return to “General Questions/New to Joomla! 2.5”