Feature Request: Deny URL

Phoca Guestbook - creating guestbooks in Joomla! CMS
Momo_102
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 31 Aug 2009, 14:21

Feature Request: Deny URL

Post by Momo_102 »

Hi,

Your guestbook component is very good, but I miss a feature.

Parameter Deny Links: Yes/No
If Yes: Test Title and Content if there exist any hyperlinks. In that case don't allow saving and throw an error message.

If've done the test with the search of following words:
href=
www.
.html
.htm
.asp
.aspx
.php
http:
https:

With that check i was able to run a guestbook without SPAM and without using captcha.

Best regards,
Momo_102
Arco
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 21 Oct 2008, 04:09

Re: Feature Request: Deny URL

Post by Arco »

That would be great to have! I noticed that many people also put links to their own websites and projects in the guestbook message, which I don't want. It's a guestbook, if you have something nice to say, please do so, but promote your links on websites that are intended to serve that purpose.

Another handy feature would be to remove empty lines at the end of a message. For some reason people often press Enter to add a blank line (some even manage to enter several blank lines...).
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request: Deny URL

Post by Jan »

Hi, you can set how many links will be displayed in message, so you can set it to zero, so no links will be displayed.

Jan
If you find Phoca extensions useful, please support the project
Arco
Phoca Newbie
Phoca Newbie
Posts: 6
Joined: 21 Oct 2008, 04:09

Re: Feature Request: Deny URL

Post by Arco »

Hi Jan,

Thanks for your reply. I have set it to 0 (zero), but it only removes the hyperlink. The text (i.e. "www.domain.com") is still visible, it's just not clickable anymore. If it's possible to add an option that forbids users to enter links to other websites, that would be great!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request: Deny URL

Post by Jan »

Hi, no there is no such option, so this needs to be customized :-(

Jan
If you find Phoca extensions useful, please support the project
Momo_102
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 31 Aug 2009, 14:21

Re: Feature Request: Deny URL

Post by Momo_102 »

If you like, I do the changes and send back the patch.

Regards,
Momo_102
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request: Deny URL

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Momo_102
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 31 Aug 2009, 14:21

Re: Feature Request: Deny URL

Post by Momo_102 »

Done.

I copied the original files (.orig). You can download the modified version from:
http://web8.hostbaar.ch/download/com_ph ... enyurl.zip

Hope to find these changes in your next version 8)

If you have any question you can drop me a PM in this forum.

Regards,
Momo_102
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48706
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Feature Request: Deny URL

Post by Jan »

Hi, thank you for this file.

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