Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Custom page for porn/adult searches?

Quote Reply
Custom page for porn/adult searches?
Hi,

Basically I want to configure Links (v2.05) so when someone types something in like "naked" or "nude", then they are taken to a custom search_error page.

This page will then explain that my site doesn't contain adult content and display a selection of links to sites that might contain what they need (i.e. a sponsored link to an adult site).

This would be far more useful than just having a short error message saying "No adult content".

Any ideas on how to do this? I would ideally like the option to include banners or buttons on this custom "no adult content" page.

JeffB

-- Updated my profile, check it out.

Quote Reply
Re: Custom page for porn/adult searches? In reply to
Hi,

You could do this as a plugin, basically a pre hook to search_results, that look at $IN->param('query') and if it matches a list of words, stop the main search and display an error page.

Otherwise, you need to edit search.cgi (or admin/Links/User/Search.pm if you are using 2.0.5+) and add the check in there.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Custom page for porn/adult searches? In reply to
Alex,

I will post a thread in the custom mods forum. Has GT got any plans on doing this? Any chance of a free plugin? ;-)

JeffB