No line break in the guestbook

Phoca Guestbook - creating guestbooks in Joomla! CMS
rawu
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 07 Dec 2009, 09:33

No line break in the guestbook

Post by rawu »

With 'Shift + Enter' a line break can be triggered in the editor. Unfortunately, this line break is not stored and therefore not displayed in the guestbook.

Edit: I solved the problem with a change in /com_phocaguestbook/controllers/phocaguestbook.php

line 73 old:

Code: Select all

$configP->set('HTML', 'Allowed', 'strong,em,p[style],span[style],img[src|width|height|alt|title],li,ul,ol,a[href],u,strike');
line 73 new:

Code: Select all

$configP->set('HTML', 'Allowed', 'strong,em,br[style],p[style],span[style],img[src|width|height|alt|title],li,ul,ol,a[href],u,strike');

best regards!
Ralf
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48726
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: No line break in the guestbook

Post by Jan »

Hi, yes, you solved it right. This will be changed in some next version.

Jan
If you find Phoca extensions useful, please support the project
Post Reply