DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:searchpattern

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:searchpattern [2015-06-28 22:52] – fixed lastupdate date to be a proper date achplugin:searchpattern [2024-05-05 12:24] (current) – [Discussions] Compatibility with more recent versions chtiland
Line 7: Line 7:
 type       : Syntax, Admin type       : Syntax, Admin
 lastupdate : 2013-06-16 lastupdate : 2013-06-16
-compatible : 2009-02-14b2009-12-252010-11-072012-10-13 "Adora Belle"2013-03-06 "Weatherwax RC1"2013-05-10 "Weatherwax"+compatible : LemmingAnteaterRincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, !Hogfather, !Kaos
 depends    :  depends    : 
 conflicts  conflicts 
Line 36: Line 36:
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
 ^ Download latest release | [[http://www.eibler.at/dokuwiki-todo/download/dokuwiki-searchpattern_latest.zip | Latest release 2013-06-16c]] | ^ Download latest release | [[http://www.eibler.at/dokuwiki-todo/download/dokuwiki-searchpattern_latest.zip | Latest release 2013-06-16c]] |
Line 340: Line 340:
   - <del>Integration with [[plugin:todo|Todo]] plugin</del>  --- by [[user>leibler]] //v2013-04-11//    - <del>Integration with [[plugin:todo|Todo]] plugin</del>  --- by [[user>leibler]] //v2013-04-11// 
   - <del>Documentation: Hi leibler, you mention "A new option allows you to hide the table headline with search options (e.g. regex code) in result table". Please state the name of the option, I'd like to use it in a general regex (no '_' plugin). -tw_bert-</del> --- please use the admin menu configuration setting "dispheadl" - a specific handler can overrule this setting because it has full control over the output. I modified the description to clarify. by [[user>leibler]] //v2014-02-02//   - <del>Documentation: Hi leibler, you mention "A new option allows you to hide the table headline with search options (e.g. regex code) in result table". Please state the name of the option, I'd like to use it in a general regex (no '_' plugin). -tw_bert-</del> --- please use the admin menu configuration setting "dispheadl" - a specific handler can overrule this setting because it has full control over the output. I modified the description to clarify. by [[user>leibler]] //v2014-02-02//
 +  - Format a string using different colors following a regex like: (?<=^[A-Z]{2}\|{1})(?=([0-9]*)), text: RA|10556|8|3^4, to color the second field
    
 ===== Discussions ===== ===== Discussions =====
Line 411: Line 412:
 Best regards, Juergen Best regards, Juergen
  
 +Hi,\\
 +My wiki crashed with a blank screen on entry & loss of all files when looking at it with cpanel or filezilla. This was during an attempt to upgrade from Greebo to Hogfather. While rebuilding from scratch it crashed again as I installed SearchPattern plugin, this time with failure to load login. It worked again after I deleted the searchpattern subdir from lib/plugins. I  don't have any idea what is going on but I'm thinking that SearchPattern introduced some fatal condition.
 +
 +I can see that making SearchPattern involved a lot of work, and I really would like a regex capability.  maybe I'll try to install it some later time. //---<<willsteward2016@gmail.com>> 2020.08.26//
 +
 +----
 +As WillSteward posted I also get a non functioning wiki when installing the plugin.  I've tried on two different instances and get the same error although both instances have similar plugins so I've not yet ruled out if there is a clash with another plugin.
 +
 +The error I get is : 
 +
 +''dokuwiki\Exception\FatalException: Declaration of syntax_plugin_searchpattern::handle($match, $state, $pos, &$handler) must be compatible with dokuwiki\Extension\SyntaxPlugin::handle($match, $state, $pos, Doku_Handler $handler)
 +An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the searchpattern plugin.
 +
 +More info has been written to the DokuWiki error log.''
 +
 +This is in a big banner at the top of the page with no other text showing.  It happens on all pages, whether or not they contain the markup for the plugin.  Deleting the plugin folder restores a working wiki.  2022-09-29
 +
 +
 +
 +
 +==== Compatibility with more recent versions ====
 +
 +
 +Hi !
 +
 +I also use //searchparttern//, but some corrections are required to make it works with Dokuwiki Hogfather, Igor, Kaos((added on 2024-05-05)) and also PHP 8.1.
 +
 +  * **Line 255** :
 +    * Replace ''function handle($match, $state, $pos, &$handler){''
 +    * with : ''function handle($match, $state, $pos, Doku_Handler $handler){''
 +  * **Line 373** :
 +    * Replace : ''function render($format, &$renderer, $data) {''
 +    * With : ''function render($format, Doku_Renderer $renderer, $data) {''
 +  * **Line 379**((PHP 8.1 compatibility)) :
 +    * Replace : ''search($wikidata, $conf['datadir'], search_pattern, $data);''
 +    * With : ''search($wikidata, $conf['datadir'], 'search_pattern', $data);''
 +  * **Line 393** ::
 +    * Replace : ''function report($data, &$renderer, $params){''
 +    * With : ''function report($data, Doku_Renderer $renderer, $params){''
 +
 +//By reading these discussions, I've just discovered [[plugin:pagequery]] plugin, gona try it soon :) !//
 +
 +
 +
 + --- [[user>chtiland|chtiland]] //2023-03-05 16:30//
plugin/searchpattern.1435524735.txt.gz · Last modified: 2015-06-28 22:52 by ach

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki