Hi -
I'm wanting to create a plugin that will filter out certain links from search results (and builds) and am not sure where to start...
I've added a column in the Links table named "Hide"... I want to "hide" all links from searches and also in the directory listings, new, cool, top rated, etc. that have this column marked as 'Yes'. Basically, I want normal LinksSQL functions to completely ignore these links as if they did not exist.
I have a feeling that this should be extremely easy to do, however I'm not clear on what hooks to use, nor how to manipulate the input/output to essentially "strip" hidden links from search and build results...
For example, would I use the "search_results" hook? And, if so, do I completely hijack the search procedure or should I try to alter the values of results after the regular search is performed?
And for builds, I'm afraid I don't even know where to begin! Perhaps modifying output to the "site_html_[templatename]" hooks?
(Note: I'm using dynamic pages)
Or maybe I'm making this more complicated than it needs to be...?
In any case, if anyone can give me a few pointers, I'd be very grateful.
Thanks,
Matt G
I'm wanting to create a plugin that will filter out certain links from search results (and builds) and am not sure where to start...
I've added a column in the Links table named "Hide"... I want to "hide" all links from searches and also in the directory listings, new, cool, top rated, etc. that have this column marked as 'Yes'. Basically, I want normal LinksSQL functions to completely ignore these links as if they did not exist.
I have a feeling that this should be extremely easy to do, however I'm not clear on what hooks to use, nor how to manipulate the input/output to essentially "strip" hidden links from search and build results...
For example, would I use the "search_results" hook? And, if so, do I completely hijack the search procedure or should I try to alter the values of results after the regular search is performed?
And for builds, I'm afraid I don't even know where to begin! Perhaps modifying output to the "site_html_[templatename]" hooks?
(Note: I'm using dynamic pages)
Or maybe I'm making this more complicated than it needs to be...?
In any case, if anyone can give me a few pointers, I'd be very grateful.

Thanks,
Matt G