XHTML Validating Intense Debate plugin

by Davies

in Wordpress

idc XHTML Validating Intense Debate pluginI’ll tell you how to make your IntenseDebate XHTML valid on Wordpress by modifying the plugin code. I’ve been using IntenseDebate for quite a bit now but it never passed the XHTML validation service. I got annoyed and solved it pretty quick.

- Login to your Plugins section and find IntenseDebate plugin.
- Choose Edit the plugin button.
- You’ll be given the .php file of the Plugin, just scroll down to almost the end of the file to locate the code as shown below.
- (Or you can Ctrl+F and search for this “idcommentsreplace”)
- Replace the ID=’idcommentsreplace’ to CLASS=’idcommentsreplace’
- Repeat for the rest of the ID tags, as shown below:

Modifying the php file

return "
<span class='IDCommentsReplace style='display:none'>$id</span>$comment_text
<span class='IDCommentPostInfoPermalink$id' style='display:none' >$permalink</span>
<span class='IDCommentPostInfoTitle$id' style='display:none' >$posttitle</span>
<span class='IDCommentPostInfoTime$id' style='display:none' >$posttime</span>
<span class='IDCommentPostInfoAuthor$id' style='display:none' >$postauthor</span>";
}

{ 3 comments… read them below or add one }

1 davieslim August 29, 2009 at 8:19 PM

I’m not sure abt it being XHTML valid out of the box, as you can see from Intensedebate’s own blog, is not xhtml valid. it’s calling the id’s twice.

http://validator.w3.org/check?uri=http://blog.int...

of course, you can prevent it from calling it twice (i’m not some coding pro :D) but “class” just removes the error quickly for me because it can be defined multiple times.

Reply

2 Beau Lebens August 29, 2009 at 5:50 PM

This shouldn't be necessary at all actually, and the plugin itself validates as XHTML out of the box as demonstrated on my website: http://validator.w3.org/check?uri=http%3A//dented...

These IDs are all unique because they have the $id value appended to them, so shouldn't cause any XHTML invalidation issues, unless I'm missing what you're trying to do?

Reply

3 Beau Lebens August 29, 2009 at 5:50 PM

This shouldn't be necessary at all actually, and the plugin itself validates as XHTML out of the box as demonstrated on my website: http://validator.w3.org/check?uri=http%3A//dented...

These IDs are all unique because they have the $id value appended to them, so shouldn't cause any XHTML invalidation issues, unless I'm missing what you're trying to do?

Reply

Leave a Comment

Previous post:

Next post: