Page 1 of 1

Changing the guest book display

Posted: 06 Jun 2010, 00:30
by Klementz
When the guest book items are displayed, the top bar has Name: title. I have customized it so that "title" is now "location", and I want the display to look like this:

Name from Location

So, I need to edit something so the colon at the end of name is replaced by this > " from "

Where can I do this? i was sure it would be in the default.php in the tmpl directory, but I cannot find anything in there that controls the display of the guest book items.

Re: Changing the guest book display

Posted: 06 Jun 2010, 15:13
by Klementz
I found my answer late last night, using the Joomla template override system.

I took this file:
/components/com_phocaguestbook/views/phocaguestbook/tmpl/default.php

and copied it here:
/templates/[your template]/html/com_phocaguestbook/phocaguestbook/default.php

Then found this code around line 137:

Code: Select all

	if ($values->title != '') {
		if ($values->title != '') {
			if ($sep == 1) {$msgpg .= ': ';}
			$msgpg .= PhocaguestbookHelper::wordDelete($values->title,40,'...');
		}
	}
The semi-colon in the third line is what I wanted to change, so I just put ' | ' in there, and everything works great.

Re: Changing the guest book display

Posted: 07 Jun 2010, 14:06
by Benno
OK, :twisted:
kind regards,
Benno