wrong syntax in view.html.php

atas
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 09 Mar 2011, 03:46

wrong syntax in view.html.php

Post by atas »

Hi,
I spent several hour understanding why my guestbook font was black. My background is also black... shame !

I finally found, probably an error in the file : com_phocaguestbook/views/guestbook/view.html.php on the section // PARAMS where:

$this->tmpl['font_color'] = $params->get( 'font_color', '#000000' );
should be:
$this->tmpl['fontcolor'] = $params->get( 'font_color', '#000000' );

I am not a Joomla Guru, so tell me if I am wrong !
I am using a joomla 1.6 template with Joomla! 1.6.0 Stable [ Onward ] 10-Jan-2011 23:00 GMT & Phoca Guestbook 2.0.0 RC

Thanks for the greeat job and hope I've helped !
(sorry for my poor english, better in french ;) )
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48299
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: wrong syntax in view.html.php

Post by Jan »

Hi,

Code: Select all

$this->tmpl['font_color'] = $params->get( 'font_color', '#000000' );
is ok because: tmpl['font_color'] is used in template, not tmpl['fontcolor'].

Jan
If you find Phoca extensions useful, please support the project
Post Reply