I'm using the latest version of CMSMS (1.9.4.1) and CGFeedback (1.3.3) and every time someone enters a comment with an apostrophe it doesn't handle it and displays it as '.  Has anyone had this problem befored an know how to fix this?
Post a test comment with an apostrophe in the comment box.
Test it here.
http://fransmart.com/index.php/news/2/8 ... ussed.html
Thanks
			
			
									
						
										
						CG Feedback apostrophe error
Re: CG Feedback apostrophe error
I ran into this same bug and after a great deal of prodding and poking, was able to properly resolve ALL comment formatting issues as follows:
In the summary form, replace with
The nl2br was required to fix the issue I found of line-breaks not being displayed.
In the comment form template, replace with
This latter change is necessary because if the comment submission fails (due to invalid fields, failed CAPTCHA, etc), the comment will be encoded in the textbox and then re-encoded again during any subsequent submission, which means you can't correctly decode it in the summary template.
Hope this helps anyone else who has or may yet encounter this problem...
			
			
									
						
										
						In the summary form, replace
Code: Select all
{$one.data|htmlspecialchars}Code: Select all
{$one.data|html_entity_decode:$smarty.const.ENT_QUOTES|nl2br}In the comment form template, replace
Code: Select all
{input_comment}Code: Select all
{$input_comment|html_entity_decode:$smarty.const.ENT_QUOTES}Hope this helps anyone else who has or may yet encounter this problem...
Re: CG Feedback apostrophe error
Thanks for the tip, it works - is there a bug report for this problem ?
			
			
									
						
										
						Re: CG Feedback apostrophe error
Not that I can see. You can report it here, then the author will be aware of it:airelibre wrote:...is there a bug report for this problem ?
http://dev.cmsmadesimple.org/bug/list/616




