[Plugin] Advanced Search plugin

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

Post Reply
jerry
Posts: 177
Joined: Fri Jul 25, 2008 8:54 pm
Location: Denmark
Contact:

[Plugin] Advanced Search plugin

Post by jerry » Fri Aug 29, 2008 10:53 am

I developed Advanced Search for some months ago but first when I had seen NMuD’s HighlightSearch I had the idea how to convert it to a plugin.

Advanced Search replace search function in CMSimple with following extentions:
· Search with any combination of arguments “OR” (default), “AND”, “NOT”, and quoted sentences.
· Build in DHTML help.
· Optional Soundex search.
· Optional highlighted search results (uses slightly modified searchhi.js).
· HTML tags and CMSimple scripts are exluded from search results.
· Search box on search result page.

You can try Advanced Search (search for instance for Peter Harteg) and download the plugin on http://jakobsfeld.com/test/?Advanced_Search

Regards Jerry (jj)
jerry/simplesolutions

Till
Posts: 337
Joined: Tue May 20, 2008 7:20 am
Location: Germany: Bremen
Contact:

Re: [Plugin] Advanced Search plugin

Post by Till » Fri Aug 29, 2008 8:52 pm

Hi Jerry,

nice work! If you would have published your version of highlight-search earlier, I wouldn't have spent three days of my life to generate my highlightsearch version. ;)

However, I think this code, which searches through plugins output and is missing in your plugin, is pretty important. There are several plugins which generate output that may be interesting to some people to search for (simpleMultiUser, uBlog, sBlog, simplePress, advancedNews etc.). What do you think of putting it all together, adding a script switch as Holger suggested and putting it up to CMSimplewiki.com?

Till

jerry
Posts: 177
Joined: Fri Jul 25, 2008 8:54 pm
Location: Denmark
Contact:

Re: [Plugin] Advanced Search plugin

Post by jerry » Fri Aug 29, 2008 10:15 pm

Hi Till

If you didn't spend this tree days I woudn't get the idea how to convert advanced search to an plugin and I never published it. So your work was of greet inspiration.

I know that I'm missing search through plugins output but I didn't find out what part of HighlightSearch does the work. I will implemet it if you give me any sugestion how to do it.

Jerry (jj in old forum)
jerry/simplesolutions

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: [Plugin] Advanced Search plugin

Post by Holger » Sat Aug 30, 2008 9:33 am

Till wrote:What do you think of putting it all together, adding a script switch as Holger suggested and putting it up to CMSimplewiki.com?
That should be a great accomplishment :!:

Holger

Till
Posts: 337
Joined: Tue May 20, 2008 7:20 am
Location: Germany: Bremen
Contact:

Re: [Plugin] Advanced Search plugin

Post by Till » Sat Aug 30, 2008 10:04 am

jerry wrote:I will implemet it if you give me any sugestion how to do it.
Hi Jerry,

you can find the original code developed by Softly at: http://www.cmsimple.dk/forum/viewtopic.php?f=12&t=5976.

The part which does the plugin search in HighlightSearch's Search.php is:

Code: Select all

 if (eregi("true", $plugin_cf['highlight_search']['plugin_search'])) {
            $t = preg_replace("/^.*" . $cf['scripting']['regexp'] . ".*$/is", "\\1", $c[$i]);
            template_switch();
            if ($t != '' && $t != $c[$i] && $t != 'remove' && $t != 'hide') {
                $srch = preg_replace("/" . $cf['scripting']['regexp'] . "/is", "", $c[$i]);
                if (!stristr($t, 'header(')) @eval(preg_replace(array("'&(quot|#34);'i", "'&(amp|#38);'i", "'&(apos|#39);'i", "'&(lt|#60);'i", "'&(gt|#62);'i", "'&(nbsp|#160);'i"), array("\"", "&", "'", "<", ">", " "), $t));
                $srch = $output;
            } ;
        }
Good Luck

Till

jerry
Posts: 177
Joined: Fri Jul 25, 2008 8:54 pm
Location: Denmark
Contact:

Re: [Plugin] Advanced Search plugin

Post by jerry » Mon Sep 01, 2008 6:55 pm

Hi

The new version of AdvancedSearch is released on http://jakobsfeld.com/test/?Advanced_Search and ready to be downloaded. The new version includes plugin search an some improvments og phonetic search. The manual/help can be read on the download page and is a part of the plugin.

I can't test all avalaibel plugins and until now I only tested SimpleRss and Svarrers Gallery and both are full searchable but I will apreciate som help from the forum before I move AdvancedSearch to pluginwiki.

Jerry
jerry/simplesolutions

johnjdoe
Posts: 571
Joined: Tue May 20, 2008 6:32 am

Re: [Plugin] Advanced Search plugin

Post by johnjdoe » Tue Sep 02, 2008 6:52 am

Hi Jerry,

why not writing some words about your plugin in www.cmsimpleforum.com ?

jerry
Posts: 177
Joined: Fri Jul 25, 2008 8:54 pm
Location: Denmark
Contact:

Re: [Plugin] Advanced Search plugin

Post by jerry » Tue Sep 02, 2008 7:48 pm

Hi johnjdoe

God idea, done.
jerry/simplesolutions

jerry
Posts: 177
Joined: Fri Jul 25, 2008 8:54 pm
Location: Denmark
Contact:

Re: [Plugin] Advanced Search plugin

Post by jerry » Tue Oct 21, 2008 12:50 pm

Version 1.1.0 with double metaphone phonetic search and som minor changes and bug fixes is available from cmsimplewiki.
jerry/simplesolutions

Post Reply