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
name is not displayed in full length
-
- Phoca Newbie
- Posts: 2
- Joined: 29 Feb 2012, 11:54
Re: name is not displayed in full length
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
.../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
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: name is not displayed in full length
OK
If you find Phoca extensions useful, please support the project