[Plugin] Advanced Search plugin
Moderator: Tata
[Plugin] Advanced Search plugin
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)
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
Re: [Plugin] Advanced Search plugin
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
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
Re: [Plugin] Advanced Search plugin
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)
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
Re: [Plugin] Advanced Search plugin
That should be a great accomplishmentTill wrote:What do you think of putting it all together, adding a script switch as Holger suggested and putting it up to CMSimplewiki.com?
Holger
Re: [Plugin] Advanced Search plugin
Hi Jerry,jerry wrote:I will implemet it if you give me any sugestion how to do it.
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;
} ;
}
Till
Re: [Plugin] Advanced Search plugin
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
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
Re: [Plugin] Advanced Search plugin
Version 1.1.0 with double metaphone phonetic search and som minor changes and bug fixes is available from cmsimplewiki.
jerry/simplesolutions