PDA

View Full Version : Missing paragraph/enter when reading private message?



hotaruuser
11-05-2011, 03:47 PM
Hi

If somebody has the same problem. I had problems with missing paragraph (or passage, don't know what the right english word for it) when viewing a private message you have received (This plugin: http://forums.hotarucms.org/showthread.php?477-Messaging-0.7)

Also when user sents message to you and he has pressed enter, but its not shown there, the text is all in one block

(äh, hope you know what I mean)

Just go and edit the messaging plugin -> templates -> messaging_show_message.php in line 71, change it to this:

<td><?php echo nl2br($h->vars['message_body']); ?></td>

(just add the nl2br function with brackets)

So the enters are shown correctly

seekyt
11-05-2011, 10:48 PM
THANK YOU!

The method I have been trying to use to fix this was so much more complicated, and I just kept breaking the plugin with encode functions all over the place.

I really appreciate you posting this fix. It's been driving me crazy!