Please enter valid website

Phoca Guestbook - creating guestbooks in Joomla! CMS
lala_ina
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Apr 2010, 15:22

Please enter valid website

Post by lala_ina »

Hi Phoca, thanks for making this component. It's nice and clean...

Just wonder, why everytime I make this setting in parameter:
Display Website In Form (yes -- not required)
Display Website in Message (yes)
I always get this error message: Please enter valid website ( include http:// )

What I need is, the form "display website" is just an optional form. My guest may fill it or not, if they fill it then it will appear in the guestbook, if they just want to leave it blank, then it will be fine.

What should I do to make it happen? (pardon my english... :wink: )
Waiting for answer,
Regards,

Lala
vaneess
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 16 Apr 2010, 14:33
Location: Switzerland
Contact:

Re: Please enter valid website

Post by vaneess »

hey...
it's the same problem like this ;)
viewtopic.php?f=2&t=9063
lala_ina
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 16 Apr 2010, 15:22

Re: Please enter valid website

Post by lala_ina »

I'm not sure if our question (which hasnt been anwered yet...) are the same. All I need is actually simple, I just need to have Show website form without having it required. I have set it into yes (but not required), but it still generate message as if it is required :(

Really need help here... thanks..
vaneess
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 16 Apr 2010, 14:33
Location: Switzerland
Contact:

Re: Please enter valid website

Post by vaneess »

yes it's the same question.

if the "http://" is in the field (default value), the form thinks it has a website, which isn't valid
so either you delete this "http://" (which was my question) or you type a valid website in..
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49138
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Please enter valid website

Post by Jan »

Hi, yes there are two types of protection:

a) require website - if you will not add it, it will require it

b) website should be correct - it doesn't matter if the website adding (a) is required or not but if you add something into the website input field, it must meet the website format.

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