Home N-13 News Forums Help Search
RegisterForgot password?
How to add image to post necklacesdiscou
Known bugs - 4.0.3 necklacesdiscou

Latest N-13 News 4.0.3

What is N-13 News?
Where can I get help?
Known bugs

Forums Suggestions Validation
Cameron
Posted on 19 Aug 2008, 06:09:39

Access: Member
Total Posts: 3
Joined: 2008-08-19

Hello!

I've recently started using the N-13 news system on my site, which Chris has stumbled upon, and well, I had problems getting validation.w3.org to validate it.

Okay, so I got it to finally update by adding and changing a couple lines in the index.php.

I'm using version 3.1 just to let ya know.

On line 135 of index.php, you have
Code:
<script language="javascript">
W3 picks this up as an error/invalid code.

I replaced it with
Code:
<script type="text/javascript">

Right after line 135, I also added
Code:
//<![CDATA[

This pretty much tells the validator to ignore all the javascript code until it reaches
Code:
//]]>
which is to be placed before
Code:
</script>

I'm not entirely sure that you get what I'm saying and where everything goes, but just incase, here's a small example without all the code.

starting at line 135
Code:
<script type="text/javascript">
//<![CDATA[

leave the rest of the coding after CDATA alone

//]]>
</script>

Just a suggestion, you don't have to actually add this. It's mainly for those whole like to keep their code tidy and valid ;p
#343
Chris
Posted on 19 Aug 2008, 06:15:57

Access: Admin
Total Posts: 1395
Joined: 2006-05-19

I'll certainely add this into the new version I'm working on now :), someone actually asked me about this before so I'll be sure to point them to this thread. thanks :happy:
#347
Network-13.com © 2013