plugin:userpagecreate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:userpagecreate [2016-01-24 14:33] – version upped andi | plugin:userpagecreate [2023-10-30 23:42] (current) – Klap-in | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : dokuwiki@cosmocode.de | email : dokuwiki@cosmocode.de | ||
type : action | type : action | ||
- | lastupdate : 2016-01-24 | + | lastupdate : 2021-07-15 |
- | compatible : 2009-12-25+, | + | compatible : Hogfather |
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 30: | 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!) | + | |
Line 75: | Line 77: | ||
</ | </ | ||
- | ===== Development | + | ===== Additional Setup ===== |
- | ==== Change Log ==== | + | Once you have user pages, you probably want to use them whenever user names are displayed in the Wiki. For example in changelog. |
- | {{rss> | + | To do so, switch the [[config:showuseras|showuseras config]] to " |
- | ==== Known Bugs and Issues ==== | ||
- | |||
- | 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.1453642426.txt.gz · Last modified: 2016-01-24 14:33 by andi