Page 1 of 1
Editing error messages
Posted: 14 Sep 2010, 15:28
by chiccoweb
I couldn't find any info about editing the guestbook error messages. I need to change the font size.
Please help.
Thanks
Raffaele
Re: Editing error messages
Posted: 14 Sep 2010, 23:07
by Jan
Hi, which error message you mean, there is Phoca Guestbook error message (e.g. captcha is wrong) or system message (created by Joomla! - at the bottom of the site)
Jan
Re: Editing error messages
Posted: 16 Sep 2010, 09:48
by chiccoweb
I mean phoca guestbook error massages I suppose.
If I try to post a message and miss to fill in all fields, like email address or title, I get a red error message but the font is so small and it happened some guest just think to have sent succesfully the message.
I wish to change the font in bigger size so guests can clearly see they have missed to fill in the name, content, email or title.
I couldn't find a solution, I'm sure it will be very simple...
thank you
Re: Editing error messages
Posted: 16 Sep 2010, 17:37
by Jan
Hi, the message is stored in "small" tags - can be styled in CSS or you can change it in php/html code:
cca line 226:
components/com_phocaguestbook/views/phocaguestbook/view.html.php
Jan
Re: Editing error messages
Posted: 18 Sep 2010, 22:16
by chiccoweb
Jan wrote:Hi, the message is stored in "small" tags - can be styled in CSS
Thank you Jan
unfortunally I couldn't find any solution.
Could you help me to find out where I can modify CSS style.
I don't know if it is important, I'm using italian translation so I need to change font size of the italian error message.
Raffaele
Re: Editing error messages
Posted: 20 Sep 2010, 17:29
by Jan
Hi, did you try it to change directly in the html?
Re: Editing error messages
Posted: 21 Sep 2010, 07:16
by chiccoweb
cca line 226:
components/com_phocaguestbook/views/phocaguestbook/view.html.php
Yes, I did try but following the instruction above I could'nt see any solution.
I just wish to risize the font of error messages.
I need to find out where I can modify font size.
Thank you for helping
Raffaele
[SOLVED]Re: Editing error messages
Posted: 21 Sep 2010, 07:57
by chiccoweb
Thank you Jan
I've understood your hint and opend the view.html.php > line 245 > changed small with h1
Perfect!
//-----------------------------------------------------------------------------------------------
// !!!! 1. Server Side Checking controll
//-----------------------------------------------------------------------------------------------
//Form Variables --------------------------------------------------------------------------------
//captcha is wrong,we cannot redirect the page,we display message this way
//DISPLAY MESSAGES WHICH YOU GET FROM CONTROLL FILE - (CONTROLLERS - phocaguestbook.php)
$smB = '<h1 style="color:#fc0000;">';
Grazie!
Raffaele
Re: Editing error messages
Posted: 21 Sep 2010, 13:22
by Jan
Ok