[SOLVED] Names abbreviated

Phoca Guestbook - creating guestbooks in Joomla! CMS
masaeurope
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 08 Feb 2011, 13:17

[SOLVED] Names abbreviated

Post 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
Last edited by masaeurope on 09 Feb 2011, 02:18, edited 1 time in total.
masaeurope
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 08 Feb 2011, 13:17

Solved: Names abbreviated

Post 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. :)
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9703
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: [SOLVED] Names abbreviated

Post by Benno »

Well done! :twisted:
Kind regards,
Benno
Post Reply