plugin:replace
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:replace [2011-01-23 20:05] – [Replacement text is not shown] 94.210.200.16 | plugin:replace [2018-05-20 17:13] – Aleksandr | ||
---|---|---|---|
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: | + | downloadurl: |
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | donationurl: | ||
+ | |||
+ | screenshot_img: | ||
---- | ---- | ||
Line 16: | Line 22: | ||
Comments welcome. | Comments welcome. | ||
- | |||
===== Download and Installation ===== | ===== Download and Installation ===== | ||
Line 22: | Line 27: | ||
Download and install the plugin using the [[: | Download and install the plugin using the [[: | ||
- | * [[http://dwp-forge.googlecode.com/files/ | + | * [[https://storage.googleapis.com/ |
===== Version History ===== | ===== Version History ===== | ||
Line 34: | Line 38: | ||
* First release. | * First release. | ||
- | |||
===== Source Code ===== | ===== Source Code ===== | ||
Line 71: | Line 74: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 116: | 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 ==== | ||
- | ==== Feature suggestions ==== | + | 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(' | ||
+ | </ | ||
- | * Please add **mutiple words** support - I would like to hack it but I don't get it *arg* -- //[[xxx.de|Christian]] 2009/12/10 13:05// | + | lang.php (for german) |
+ | <code css> | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | $lang[' | ||
+ | </ | ||
+ | |||
+ | ==== Feature suggestions ==== | ||
+ | |||
+ | | ||
* 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 ' | * 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 ' | ||
- | \\ | + | |
- | \\ | + | |
==== Replacement text is not shown ==== | ==== Replacement text is not shown ==== | ||
Line 163: | Line 182: | ||
---- | ---- | ||
- | Working 2011-01-23. replace.conf needs to look like this to work: \\ | + | Working 2011-01-23. replace.conf needs double |
- | < | + | |
- | brc | + | |
- | ifs | + | |
- | haccp | + | |
- | Brc %%BRC%% | + | |
- | Ifs | + | |
- | Haccp | + | |
- | </ | + | |
original | original | ||
< | < | ||
Line 222: | 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