Changing the guest book display

Phoca Guestbook - creating guestbooks in Joomla! CMS
Klementz
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Oct 2009, 18:39
Location: Canada
Contact:

Changing the guest book display

Post 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.
Klementz
Phoca Member
Phoca Member
Posts: 12
Joined: 10 Oct 2009, 18:39
Location: Canada
Contact:

Re: Changing the guest book display

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

Re: Changing the guest book display

Post by Benno »

OK, :twisted:
kind regards,
Benno
Post Reply