User Tools

Site Tools


haas:status

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
haas:status [2020/03/12 16:03] – [borked journal, maybe fix] wedgehaas:status [2022/08/28 15:25] – [Other Days] wedge
Line 81: Line 81:
     * http://www.askapache.com/linux/rxvt-xresources.html     * http://www.askapache.com/linux/rxvt-xresources.html
 ======Other Days====== ======Other Days======
 +
 +======August 28th, 2022======
 +=====dokuwiki included pages no edit button (fixed)=====
 +I wanted a read-only base project page, with notes namespace-included content that users could edit.
 +
 +Unfortunately, that particular combination did not work, at least, not until I did some searching and found: https://github.com/dokufreaks/plugin-include/issues/132
 +
 +<code php>
 +function html_secedit($text,$show=true){
 +    global $INFO;
 +
 +    if((isset($INFO) && !$INFO['writable']) || !$show || (isset($INFO) && $INFO['rev'])){
 +        $include_SEC_EDIT_PATTERN = '#<!-- EDIT{(?!.*PLUGIN_INCLUDE).*?} -->#';
 +        return preg_replace($include_SEC_EDIT_PATTERN,'',$text);
 +    }
 +
 +    return preg_replace_callback(SEC_EDIT_PATTERN,
 +                'html_secedit_button', $text);
 +}
 +</code>
 ======March 12th, 2020====== ======March 12th, 2020======
  
haas/status.txt · Last modified: 2022/08/28 16:15 by wedge