Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-04-16 01:46:25

popstalin
New Member
Registered: 2006-04-09
Posts: 4

nhn_livecommentpreview validation errors version 0.3.1

Just wanted to let everyone know that if you are using the above version and you want your forms to validate, you have to change the following things:

on line 437 of the plug-in code you will get a validation error because W3C thinks a comment hasn’t been ended properly. Here’s the code that needs to be changed (it’s the two dashes in a row causing the error):
<code>
// Nils added: ndash r = r.replace(‘—’,’?’);
</code>
It needs to be replaced with the following: (I prefer emdashes, they are the standard in the US—so if you want an endash, you’ll have to find your own HTML entity code for it)
<code>
// Nils added: emdash r = r.replace(‘\’,’—’);
</code>

Another error you may receive, which isn’t an error but a warning, but still keeps the form from validating is this:
<code>
<label for=“name”>Name</label><br /><txp:comment_name_input />
</code>
You have to make the label read as follows:
<code>
<label for=“nhn_name”>Name</label><br /><txp:comment_name_input />
</code>

Hope this was useful.

Offline

Board footer

Powered by FluxBB