DokuWiki

It's better when it's simple

User Tools

Site Tools


devel:event:common_user_link

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
Last revisionBoth sides next revision
devel:event:common_user_link [2014-03-16 23:50] – [Plugins handling this event] Klap-indevel:event:common_user_link [2018-05-29 17:10] andi
Line 1: Line 1:
 ====== COMMON_USER_LINK ====== ====== COMMON_USER_LINK ======
- 
-[[devel:develonly]] 
  
 ---- dataentry event ---- ---- dataentry event ----
Line 10: Line 8:
 ---- ----
  
-When the [[config:showuseras]] config is set to the user interwiki link, this event is signalled by [[xref>userlink()]] in [[xref>inc/common.php]]. Handlers can use it to implement there own formatted user name instead of the user interwiki link.+When the [[config:showuseras]] config is set to the user interwiki link, this event is signalled by [[xref>userlink()]] in [[xref>inc/common.php]]. Handlers can use it to implement their own formatted user name instead of the user [[:interwiki]] link.
  
 ===== Passed Data ===== ===== Passed Data =====
 +The passed [[xref>Doku_Event]] object has the field: ''$data''.
  
-The passed $data structure:+The ''$data'' field is an array with the structure:
  
   * ''$data['username']'' The unique user name   * ''$data['username']'' The unique user name
Line 24: Line 23:
 The BEFORE event has only the ''username'' and ''textonly'' fields filled. The AFTER event has all field filled. The BEFORE event has only the ''username'' and ''textonly'' fields filled. The AFTER event has all field filled.
    
 +After that the COMMON_USER_LINK event is handled, the formatted user name stored in ''$data['userlink']'' will be returned  by [[xref>userlink()]].
 +
 ===== Plugins handling this event ===== ===== Plugins handling this event =====
  
 The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself. The following plugins are known to handle this event and their source code may be a good start for understanding and implementing a handler yourself.
  
-  * none+  * [[plugin:userhomepage|User HomePage Plugin]]
  
 ===== See also ===== ===== See also =====
  
 +  * [[codesearch>COMMON_USER_LINK|Code related to this event]]
   * The [[config:showuseras]] config let you choice the user interwiki link as the user link format.    * The [[config:showuseras]] config let you choice the user interwiki link as the user link format. 
   * Default the user [[:interwiki|interwiki]] link is configured to refer to '':user:<username>''.   * Default the user [[:interwiki|interwiki]] link is configured to refer to '':user:<username>''.
devel/event/common_user_link.txt · Last modified: 2018-12-08 15:07 by torpedo

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