Page 1 of 1
Hi,If i
Posted: 31 Jan 2008, 20:14
by nl1bzw
Hi,
If i want to change the font colors in:
components -> phoca -> items -> parameters
It's saving them, but if i go to my main site it doesn't change anything.
I'm running joomla 1.5 stable.
Does anybody know what i did wrong?
You must change it i
Posted: 31 Jan 2008, 22:06
by Jan
You must change it in menu link, menu link -> parameters component, these parameters override the default settings of an component in Joomla 1.5 framework...
Jan
Great!It
Posted: 31 Jan 2008, 22:36
by nl1bzw
Great!
It's working
Thanks
Posted: 31 Jan 2008, 22:40
by Jan
Nur wenn du es im HT
Posted: 20 Apr 2008, 21:46
by Jan
Nur wenn du es im HTML änderst...
Jan
components\com_p
Posted: 25 Apr 2008, 18:22
by Jan
components\com_phocaguestbook\views\phocaguestbook\tmpl\default.php
Re: Font colors
Posted: 06 Oct 2008, 09:27
by Maultrommel
I wanted to have the title with a red background and the text in white. But by changing the fontcolor, my entries changed as well and where in white afterwards...
I found the solution by doing a small code hack. I worked with 1.3.1beta.
First, I changed the CSS-Color of the title from
fontcolor to
titlecolor in default.php:
FROM
Code: Select all
$msgpg .= '<h4 style="background:'.$this->css['backgroundcolor'].';color:'.$this->css['fontcolor'].';padding:8px;margin:2px;">';
TO
Code: Select all
$msgpg .= '<h4 style="background:'.$this->css['backgroundcolor'].';color:'.$this->css['titlecolor'].';padding:8px;margin:2px;">';
Secondly, I had to define this new class (?) in view.html.php, in line +- 188 I added:
Code: Select all
if ($params->get( 'title_color' ) != '') {$css['titlecolor'] = $params->get( 'title_color' );}
else {$css['titlecolor'] = '#ffffff';}
Now, everything workes fine. Because there's no parameter called
title_color, the css for the
titlecolor is set to white. But it's only a fallback-solution. To complete it, I wanted to be able to set the titlecolor in the backend.
I had to change config.xml in the administrator-part of phocaguestbook, in line +-26 I added:
Code: Select all
<param name="title_color" default="#000000" size="10" type="text" label="Title Color" description="Title Color DESC" />
And voila, in the backend there was the new parameter
titlecolor.
Last but not least, there was the wrong description of the tooltip. I
tried to fix it by adding a new language string to en-GB.com_phocaguestbook.ini (Be aware: There are several language-files: One is located in administrator/component/com_phocaguestbook/language/en-GB, another in language/en-GB):
Code: Select all
TITLE COLOR=Title color
TITLE COLOR DESC=Change Color of Title
...now I'm stuck

, maybe Jan could help further? Everything works fine except for the language string. Do I have to register it somewhere else?
Re: Font colors
Posted: 06 Oct 2008, 10:12
by caro84g
administrator language you have to change in:
'administrator/language/en-GB'
The folder 'language/en-GB' is for the frontend language
with kind regards,
Carolien
Re: Font colors
Posted: 07 Oct 2008, 08:31
by Maultrommel
YES.
caro84g wrote:administrator/language/en-GB
That did the trick, I couldn't find this language file. Thank you.