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
Feature Request: Deny URL
-
- Phoca Newbie
- Posts: 6
- Joined: 21 Oct 2008, 04:09
Re: Feature Request: Deny URL
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...).
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...).
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Feature Request: Deny URL
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
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 6
- Joined: 21 Oct 2008, 04:09
Re: Feature Request: Deny URL
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!
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!
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Feature Request: Deny URL
Hi, no there is no such option, so this needs to be customized 
Jan

Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 3
- Joined: 31 Aug 2009, 14:21
Re: Feature Request: Deny URL
If you like, I do the changes and send back the patch.
Regards,
Momo_102
Regards,
Momo_102
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
- Phoca Newbie
- Posts: 3
- Joined: 31 Aug 2009, 14:21
Re: Feature Request: Deny URL
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
If you have any question you can drop me a PM in this forum.
Regards,
Momo_102
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

If you have any question you can drop me a PM in this forum.
Regards,
Momo_102
- Jan
- Phoca Hero
- Posts: 48706
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Feature Request: Deny URL
Hi, thank you for this file.
Jan
Jan
If you find Phoca extensions useful, please support the project