plugin:replace
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:replace [2009-12-01 13:06] – added suggestions section and the suggestion to add multiple words support to the plugin - I really need that 84.59.190.253 | plugin:replace [2018-06-05 22:56] (current) – [Download and Installation] Klap-in | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== replace | + | ====== replace |
---- plugin ---- | ---- plugin ---- | ||
Line 5: | Line 5: | ||
author | author | ||
email : letssurf@gmail.com | email : letssurf@gmail.com | ||
- | type : | + | type : |
lastupdate : 2009-04-13 | lastupdate : 2009-04-13 | ||
compatible : 2009-02-14 | compatible : 2009-02-14 | ||
+ | similar | ||
tags : search, replace | tags : search, replace | ||
+ | |||
+ | downloadurl: | ||
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
Line 14: | Line 22: | ||
Comments welcome. | Comments welcome. | ||
- | |||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
- | Download | + | Search |
- | + | ||
- | * [[http:// | + | |
+ | * [[https:// | ||
===== Version History ===== | ===== Version History ===== | ||
Line 32: | Line 38: | ||
* First release. | * First release. | ||
- | |||
===== Source Code ===== | ===== Source Code ===== | ||
Line 69: | Line 74: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 114: | Line 119: | ||
?> | ?> | ||
</ | </ | ||
+ | |||
===== Comments ===== | ===== Comments ===== | ||
+ | |||
Thank you very much for this plugin. For me it has been extremely helpful. (For beginners: Copy the PHP code into dokuwiki/ | Thank you very much for this plugin. For me it has been extremely helpful. (For beginners: Copy the PHP code into dokuwiki/ | ||
+ | ==== Integration with confmanager-plugin ==== | ||
+ | |||
+ | To modify replace.conf via admin-menu install [[confmanager|confmanager-plugin]] and modify following lines: | ||
+ | |||
+ | admn.php (line 9): add " | ||
+ | <code php> | ||
+ | var $cnffiles = array(' | ||
+ | </ | ||
+ | |||
+ | lang.php (for german) | ||
+ | <code css> | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | </ | ||
==== Feature suggestions ==== | ==== Feature suggestions ==== | ||
+ | * Please add **mutiple words** support - I would like to hack it but I don't get it *arg* -- //Christian 2009/12/10 13:05// | ||
+ | * Any way to do the replace within a source line? I would like to do the substitution for copy-pasting into multiple conf files. I guess I'm looking to also include the ' | ||
- | * Please add **mutiple words** support - I would like to hack it but I don't get it *arg* -- // | ||
- | \\ | ||
- | \\ | ||
==== Replacement text is not shown ==== | ==== Replacement text is not shown ==== | ||
Line 158: | Line 179: | ||
Fixed in version 2009-04-13. No extensive testing, I was just looking for a similar feature for another plugin and got curious if it's possible to make this one to work. Seems so. --- // | Fixed in version 2009-04-13. No extensive testing, I was just looking for a similar feature for another plugin and got curious if it's possible to make this one to work. Seems so. --- // | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Working 2011-01-23. replace.conf needs double % before and after replacement text. (sry example replace.conf breaks page formatting). | ||
+ | original | ||
+ | < | ||
+ | start brc Brc bRc brC end \\ | ||
+ | start haccp ifs ifs6 brc5 end | ||
+ | </ | ||
+ | replaced | ||
+ | < | ||
+ | start BRC BRC bRc brC end | ||
+ | start HACCP IFS IFS6 BRC5 end | ||
+ | </ | ||
==== Plugin (2009-04-13) fails at line 74 ==== | ==== Plugin (2009-04-13) fails at line 74 ==== | ||
Line 198: | Line 233: | ||
</ | </ | ||
+ | |||
+ | ==== Bugfix for special chars (2012/ | ||
+ | |||
+ | <code php> | ||
+ | <?php | ||
+ | |||
+ | function preConnect() { | ||
+ | if(!count($this-> | ||
+ | $replacers = array_map(' | ||
+ | // removed ' | ||
+ | $this-> | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | [[robert.jaeckel@verwaltung.uni-halle.de|Robert Jäckel]] |
plugin/replace.txt · Last modified: 2018-06-05 22:56 by Klap-in