Download: AdvancedSearch
Plugin for CMSimple
Version 1.1.0 (21. 0ct. 2008)
Advanced Search replaces search function of CMSimple with following extensions:
The compressed ZIP-file contains two folders: “cmsimple” and “plugins”. The cmsimple folder contains the modified search function (search.php) which has to be copied into the cmsimple program folder. Before you do so, you should rename the basic file - in case you dislike this plugin. In the “plugins” folder you find the actual AdvancedSearch plugin (”advanced_search”) which you copy into CMSimple‘s plugins folder like any other plugin.
In plugin manager it is possible to change:
Phonetic search uses the algorithm double metaphone (default),metaphone or soundex to calculate the key value of every word in the string. All algorithms create the same key for similar sounding words. The result of metaphone and soundex recognition will be different depending of the language. In advanced search the metaphone and soundex functions are combined with levenshtein function witch defines the minimal number of characters you have to replace insert or delete to transform str1 to str2.
Double metaphone is the most exact algorithm for word recognition and will give most exact results in many languages. If you are lucky then sombody made a double metaphone conversion to your language in this case you can edit the file doublemetaphone.php in data directory of advanced_search. Double Metaphone is a complex search engine and the response time of advanced search will be longer then with with metaphone and soundex. If response time is important on your site then use mataphone or soundex or turn phonetic search off.
Search in Plugins is done by inserting a list of all plugins you want to be searched in the field “plugin search” in AdvancedSearch “Plugin Config”. Not all plugins have a searchable output and this way you can control what plugins you want to be searched. You have to input the function name enclosed in CMSimple tag and use “:” or “;” as separator.
For example to search SimpleRss plugin you have to insert showrss which is the name of the function enclosed in the tag #CMSimple $output.=showrss(”0”);#. For search in both SimpleRSS and Svarrers Gallery insert: showrss: gallery.
Alternative you can set the field “plugin search” to true for searching all available plugins (warning: the result can be unpredictable) or to false to turn search in plugins of.
The AdvancedSearch plugin is tested with CMSimple versions 2.9 and higher and will not work with php versions before 4.3. The plugin will probably function in earlier versions of CMSimple
version 1.1.0 (okt. 2008) Added Double Metaphone search as default. Double Metaphone tries to account for myriad irregularities in English of Slavic, Germanic, Celtic, Greek, French, Italian, Spanish, Chinese, and other origin. Thus it uses a much more complex ruleset for coding than metaphone; for example, it tests for approximately 100 different contexts of the use of the letter C alone.
Added no search on removed pages (#CMSimple remove #) and pages redirecting to othe pages (#CMSimple header(...); #
version 1.0.2 (okt. 2008) onload in searchhi.js replaced by a function addLoadEvent() for compatilibity with other plugins using javascript window.onload.
version 1.0.1 (sept. 2008) include of searchhi.js removed from function advanced_search and made global. No need to intialise in template.htm.
There is no warranty using this plugin. It will be used on everybody’s own risk. We will not assume any liability in case of data losses caused by AdvancedSearch usage.
The idea to this plugin comes from Till.
The code for search through plugin output is based on code developed by Softly.
The original code for highlighting derives from Stuart Langridge and is slightly modified to accept quoted searches.
The php version of double metaphone is created by Stephen Woodbridge.
The original search.php was written by Peter Harteg.
© Jerry Jakobsfeld, August 2008. home page: http://cmsimple.jakobsfeld.com