plugin:userpagecreate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
plugin:userpagecreate [2015-02-26 15:50] – [Intial setup] grosse | plugin:userpagecreate [2021-07-15 15:29] – andi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== userpagecreate | + | ====== userpagecreate |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : action | type : action | ||
- | lastupdate : 2015-02-26 | + | lastupdate : 2016-01-24 |
- | compatible : 2009-12-25+, | + | compatible : 2009-12-25+, |
depends | depends | ||
conflicts | conflicts | ||
Line 18: | Line 18: | ||
---- | ---- | ||
- | [[http:// | + | This plugin creates a userpage for users on their first login. |
===== Installation ===== | ===== Installation ===== | ||
+ | |||
+ | [[https:// | ||
+ | |||
Install the plugin using the [[plugin: | Install the plugin using the [[plugin: | ||
Line 29: | Line 33: | ||
* **target**: The user page ID prefix | * **target**: The user page ID prefix | ||
+ | * You probably want to configure a namespace here, using a trailing colon. A common option is to set this to '' | ||
* **template**: | * **template**: | ||
+ | * Either a single page that is copied for the user (eg. '' | ||
+ | * Or a full namespace hierarchy that is copied (eg. '' | ||
+ | * This requires a namespace in the above option | ||
+ | * The template namespace should have [[config: | ||
* **create_summary**: | * **create_summary**: | ||
+ | * The default is probably fine unless you want to localize it | ||
+ | * **delete**: If user pages should be deleted on user deletion | ||
+ | * If you set this, **all** pages for the user, including their old revisions will be deleted permanently when the user is deleted | ||
- | ===== Usage ===== | + | In the template pages, all [[: |
- | ==== Intial setup ==== | + | |
- | - Got to the plugin configuration dialog: admin-menu => configuration => plugin userpagecreate | ||
- | - Configure the namespace where the userpages should be generated, set " | ||
- | - Then define which template is to be used for the new userpage by setting the " | ||
- | - create the e.g. " | ||
- | - **Further patterns can be used if your used auth-backend provides them** (e.g. LDAP) | ||
- | * :!: Please note, that the userpage will be created after the first login (not when the user account is set up!) | ||
==== Template Example ==== | ==== Template Example ==== | ||
Line 48: | Line 53: | ||
In the example below syntax from the plugins [[plugin: | In the example below syntax from the plugins [[plugin: | ||
+ | |||
<code dokuwiki> | <code dokuwiki> | ||
====== @NAME Dashboard ====== | ====== @NAME Dashboard ====== | ||
Line 68: | Line 74: | ||
===== New Blogpost in our company' | ===== New Blogpost in our company' | ||
{{rss> | {{rss> | ||
- | |||
</ | </ | ||
- | ===== Development ===== | ||
- | ==== Change Log ==== | + | ===== Additional Setup ===== |
- | {{rss> | + | Once you have user pages, you probably want to use them whenever user names are displayed in the Wiki. For example in changelog. |
- | ==== Known Bugs and Issues ==== | + | To do so, switch the [[config: |
- | Please report bugs and issues at: https:// | ||
- | ====== Discussion ====== | ||
- | |||
- | * More info please! | ||
- | |||
- | * It was nice if you could give some sample configuration. For example, I want the new page to be " | ||
- | * :!: Please note, that the userpage will be created after the first login (not when the user account is set up!) | ||
- | * Just go to the admin-menu => configuration => plugin userpagecreate | ||
- | * set " | ||
- | * set " | ||
- | * create the " | ||
- | |||
- | < | ||
- | ====== @NAME@ ====== | ||
- | ===== contact details ===== | ||
- | * Username: @USER@ | ||
- | * Mail: [[@MAIL@]] | ||
- | * Member of this wiki since: @DATE@ | ||
- | </ | ||
- | |||
- | * What a pity, it could be a nice feature, but unfortunaly there is no documentation how to configure it or how to use it. | ||
- | |||
- | ==== Placing Link in Header Bar ==== | ||
- | |||
- | I added the following to the header_tpl.php file at line 47. | ||
- | <code php> | ||
- | //added | ||
- | $pageid = " | ||
- | $wlink = wl( $pageid ); | ||
- | echo "<a href=' | ||
- | //end mod | ||
- | </ | ||
- | That section now looks like this. | ||
- | |||
- | <code php> | ||
- | <? | ||
- | if (!empty($_SERVER[' | ||
- | echo '< | ||
- | tpl_userinfo(); | ||
- | // | ||
- | $pageid = " | ||
- | $wlink = wl( $pageid ); | ||
- | echo "<a href=' | ||
- | //end mod | ||
- | echo '</ | ||
- | } | ||
- | tpl_action(' | ||
- | tpl_action(' | ||
- | tpl_action(' | ||
- | tpl_action(' | ||
- | ?> | ||
- | </ | ||
plugin/userpagecreate.txt · Last modified: 2023-10-30 23:42 by Klap-in