Page 1 of 1

[SOLVED] Names abbreviated

Posted: 08 Feb 2011, 13:22
by masaeurope
Hi all,

please help!! please.

I installed a guesbook. but in the names are abbreviated. :cry:
Instead of name: "Your friends of your former company" it shows name: "Your friends of your fo..."

How can I remove the the "..." and how will the full name be shown?

thank you!!!
masa

Solved: Names abbreviated

Posted: 09 Feb 2011, 02:14
by masaeurope
Ok, I solved it myself.

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

Code: Select all

		//!!! 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;
			}
		}
It's around line 132.

See "($values->username, 40, '...')". "40" = Lenghts of name that will be shown. :)

Re: [SOLVED] Names abbreviated

Posted: 10 Feb 2011, 22:15
by Benno
Well done! :twisted:
Kind regards,
Benno