DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:wikisign

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:wikisign [2011-03-19 01:34] – [Bug] 144.49.131.1plugin:wikisign [2015-03-12 01:47] (current) – [Bug] the plugin breaks the download of images kaimartin
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description: Adds support for WP-style signatures by translating "~~~~" into signature/login name + date information.+description: Adds support for wikipedia style signatures by translating "~~~~" into signature/login name + date information.
 author     : FeepingCreature author     : FeepingCreature
 email      : default_357-line@yahoo.de email      : default_357-line@yahoo.de
 type       : action type       : action
 lastupdate : 2008-08-11 lastupdate : 2008-08-11
-compatible : +compatible :
 depends    :  depends    : 
 conflicts  conflicts 
Line 16: Line 16:
  
 Just create a folder in your lib/plugins dir, called "wikisign". In it, create a file called action.php containing the following code: Just create a folder in your lib/plugins dir, called "wikisign". In it, create a file called action.php containing the following code:
-<code php>+<code php wikisign/action.php>
 <?php <?php
  
Line 35: Line 35:
         );         );
     }     }
-    function register(&$controller) {+    function register(Doku_Event_Handler $controller) {
       $controller->register_hook('IO_WIKIPAGE_WRITE', 'BEFORE', $this, 'signtranslate');       $controller->register_hook('IO_WIKIPAGE_WRITE', 'BEFORE', $this, 'signtranslate');
     }     }
Line 93: Line 93:
  
 Give it a shot --johncruise Give it a shot --johncruise
 +
 +> <del>This line works in Hrun. Thank you for the mod.a</del> --- [[user>KaiMartin|KaiMartin]] //2015-02-27 19:18//
 +>> This line produces the desired signature in hrun. However, the plugin breaks the download of images. Images cached in the browser still rendered fine in my set-up (Dokuwiki hrun, firefox 31.5). But new images were not displayed. Seems like there is a major conflict which makes the plugin unusable in its current state. --- [[user>kaimartin|KaiMartin]] //2015-03-12 01:44//
 ===== Requests ===== ===== Requests =====
 How can I change the code to insert a link to the user-page? like ... [[:wiki:user:Admin]] instead of "Admin" How can I change the code to insert a link to the user-page? like ... [[:wiki:user:Admin]] instead of "Admin"
plugin/wikisign.1300494888.txt.gz · Last modified: 2011-03-19 01:34 by 144.49.131.1

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