I'm using the CGFeedback 1.2.1 module and would like to enable line breaks within comments. Currently, line breaks (paragraphs) submitted by a user are ignored and all text is placed on a single line.
You can see a live example of how maintaining line breaks in comments is important by viewing the comment (and source of the comment) at http://www.educationfasttrack.org/a-wor ... ob-prouty/.
I've visited other websites that I've discovered is using this module and find that they too have the same "issue", but I'm not sure if this is a bug to report, a feature request, or if it's something I'm doing wrong.
Any help would be greatly appreciated, and I feel very useful to the community!
Technical Info: The site is currently using the latest version of CMSMS (1.9.2) running on Apache/2.2.3 (CentOS) on Linux 2.6.18-164.6.1.el5 On x86_64 with PHP 5.2.11 and MySQL.
cgfeedback and line breaks
Re: cgfeedback and line breaks
I did enter a comment, but it doesnt show. It might be that you 'think' that linebreaks are entered, but there is no wysiwyg, so a ENTER in the textarea is NOT interpreted as a linebreak/paragraph.
Check if my comment has linebreaks, as I put the HTML <br /> in there....
Ronny
Check if my comment has linebreaks, as I put the HTML <br /> in there....
Ronny
Re: cgfeedback and line breaks
Ronny,
I've approved the comment, please refresh http://www.educationfasttrack.org/a-wor ... ob-prouty/ and let me know your thoughts.
Thanks!
Ed
I've approved the comment, please refresh http://www.educationfasttrack.org/a-wor ... ob-prouty/ and let me know your thoughts.
Thanks!
Ed
Re: cgfeedback and line breaks
Hi,
I have the same problem.
Since 1.10.3 the module "Comments" is not working any more so I changed to CGFeedback, I would be nice if linefeeds would show however.
Solved it with "|nl2br" here:
<div class="feedback_item_data">
{$one.data|htmlspecialchars|nl2br}
</div>
Kind regards,
Jan
I have the same problem.
Since 1.10.3 the module "Comments" is not working any more so I changed to CGFeedback, I would be nice if linefeeds would show however.
Solved it with "|nl2br" here:
<div class="feedback_item_data">
{$one.data|htmlspecialchars|nl2br}
</div>
Kind regards,
Jan