name is not displayed in full length

Phoca Guestbook - creating guestbooks in Joomla! CMS
slk200de
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Feb 2012, 11:54

name is not displayed in full length

Post by slk200de »

Hi,

i use guestbook 1.5.3 and received a guestbook entry with a "name" of about 51 characters.
In the guestbook there will be only displayed 41 characters followed by "..."

How can i manage this to display 60 characters.

Thx
Matthias
slk200de
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 29 Feb 2012, 11:54

Re: name is not displayed in full length

Post by slk200de »

found the error by myself:

.../components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php

//!!! username saved in database can be username or name
$sep = 0;
if ($this->tmpl['display_name'] != 0) {
if ($values->username != '') {
$gbPosts .= PhocaguestbookHelper::wordDelete($values->username, 40, '...');
$sep = 1;

should be changed into: $gbPosts .= PhocaguestbookHelper::wordDelete($values->username, 60, '...');

Regards
Matthias
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: name is not displayed in full length

Post by Jan »

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