Editing error messages

Phoca Guestbook - creating guestbooks in Joomla! CMS
chiccoweb
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 14 Sep 2010, 12:54

Editing error messages

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Editing error messages

Post 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
If you find Phoca extensions useful, please support the project
chiccoweb
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 14 Sep 2010, 12:54

Re: Editing error messages

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Editing error messages

Post 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
If you find Phoca extensions useful, please support the project
chiccoweb
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 14 Sep 2010, 12:54

Re: Editing error messages

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Editing error messages

Post by Jan »

Hi, did you try it to change directly in the html?
If you find Phoca extensions useful, please support the project
chiccoweb
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 14 Sep 2010, 12:54

Re: Editing error messages

Post 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
chiccoweb
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 14 Sep 2010, 12:54

[SOLVED]Re: Editing error messages

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Editing error messages

Post by Jan »

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