Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Search Results Order

Quote Reply
Search Results Order
We want to allow users to filter out adult results as already discussed in this forum, however, we also want to make adult listings lowest priority in standard listings that don't have the adult filter on.

The majority of our search results are non adult request and we don't want to exclude the adult listings just in case.

How do we keep the current method of returned results, i.e. order by SCORE but also make the Adult category have the lowest priority of them all to display below any other results?

Thank you.

Quote Reply
Re: Search Results Order In reply to
There is a priority mod you can add to all links in the resource section, or I think it's actually in pugdogs forum. Each link can have a ranking of 1 to whatever. Just rank porn links lower than the rest when you validate them - should work ok. If you're not validating the links, then this probably wont help.

r.


Quote Reply
Re: Search Results Order In reply to
inbuco,

You could, as suggested, add a priority mod so that your adult 'type' links go to the 'bottom' of the listings for each category page - that's fairly simple and wouldn't take much doing - something like '1' or 'A' for normal links, and '2' or 'B' for adult links, etc.

Just add a new field to the links table to contain the 'Listing Type' setting then adjust your sort priorities in Links.pm Smile - PS. Don't forget to add it to the Validate table as well, and put in a default 'type'.

Your search results, however, are a different matter altogether since the returned links are sorted, grouped and displayed by 'Category'. The priority mod would still work for your search results (the adult links should still go to the bottom of each returned category group of results), but you'd have a job modifying the search routines to 'push' any categories that contain adult links to the end of the results.

The good news is that you can filter out the adult links using a select field switch, something like; Remove Adult Links (Yes/No) - then if 'Yes' (On) is selected just add a small 'check' routine that 'drops' any links with the adult 'type' setting - the default could be 'Yes (on)' or 'No (off)' whichever you'd prefer.

Hope this helps.

All the best
Shaun