cgfeedback and line breaks

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
lunarpig
Forum Members
Forum Members
Posts: 11
Joined: Thu Nov 12, 2009 10:56 pm

cgfeedback and line breaks

Post by lunarpig »

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.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: cgfeedback and line breaks

Post by RonnyK »

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
User avatar
lunarpig
Forum Members
Forum Members
Posts: 11
Joined: Thu Nov 12, 2009 10:56 pm

Re: cgfeedback and line breaks

Post by lunarpig »

Ronny,

I've approved the comment, please refresh http://www.educationfasttrack.org/a-wor ... ob-prouty/ and let me know your thoughts.

Thanks!

Ed
janvl
Power Poster
Power Poster
Posts: 978
Joined: Wed Aug 13, 2008 10:57 am

Re: cgfeedback and line breaks

Post by janvl »

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
Post Reply

Return to “Modules/Add-Ons”