CGFeedback not displaying comment HTML correctly

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
Phoenixsong
New Member
New Member
Posts: 5
Joined: Thu Sep 10, 2009 4:38 am

CGFeedback not displaying comment HTML correctly

Post by Phoenixsong »

I'm using CGFeedback (CMSMS 1.9.2/CGExtensions 1.22.1/CGFeedback 1.2.1; PHP version 5.2.14) to power the comments system for news articles on my website. Generally speaking it works, but there seems to be something wrong with whatever method it's using to sanitize the comments people leave. Whether I allow WYSIWYG (TinyMCE 2.8.2), HTML or neither in the admin settings, it has difficulty actually formatting the comments. Any time a commenter uses

Code: Select all

"double quotes"
the comment that is displayed comes out as

Code: Select all

"double quotes"
instead of changing the HTML entity into the proper character. Formatting tags like strong and em never work, whether in WYSIWYG or HTML—at best a comment will be displayed as

Code: Select all

<strong>comment</strong>
and at worst it will be displayed as

Code: Select all

<strong>comment</strong>
instead of comment.

I'm a little surprised that I can't find anyone else with this problem after a search (though I may not have tried the right combination of terms even after several attempts); since it's a pretty annoying issue that can't possibly go unnoticed by a large number of people, I'm assuming that means that there must be something wrong with my setup rather than a problem with the module itself. For the life of me I can't figure out what that is, though. You'll probably need more information about my setup to help me diagnose the problem, but aside from what I've provided above I don't know what else might be relevant. What else would affect CGFeedback that I can look at in an attempt to get to the bottom of this?

I'm sure that I must have made a stupid mistake somewhere down the line, but yeah, I can't find it. :/ Thanks in advance if you can help me out.
uniqu3

Re: CGFeedback not displaying comment HTML correctly

Post by uniqu3 »

Hi,

this is caused by:

Code: Select all

{$one.data|htmlspecialchars}
Remove |htmlspecialchars and your comments should no longer be formated in that way.
Actually i do have a problem with my comments to, but i need that function in some way as sometimes bits of code are posted in comments that i need to be displayed correctly and not mess with the rest of the layout.
Phoenixsong
New Member
New Member
Posts: 5
Joined: Thu Sep 10, 2009 4:38 am

Re: CGFeedback not displaying comment HTML correctly

Post by Phoenixsong »

Ah, thank you very much! It doesn't quite seem to have solved the problem with wysiwyg, but I didn't really need that anyway. Thanks for your help!
Locked

Return to “Modules/Add-Ons”