Page 1 of 1

wrong syntax in view.html.php

Posted: 09 Mar 2011, 04:07
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 ;) )

Re: wrong syntax in view.html.php

Posted: 16 Mar 2011, 23:07
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