DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:userpagecreate

This is an old revision of the document!


userpagecreate plugin

Compatible with DokuWiki

2009-12-25+, anteater, rincewind, weatherwax

plugin creates a user page or user namespace when a user first logs in

Last updated on
2015-02-26
Provides
Action
Repository
Source

This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.

Similar to userpage

Tagged with home, page, users

A CosmoCode Plugin

Installation

Install the plugin using the Extension Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Configuration

The plugin adds three options to the config manager:

  • target: The user page ID prefix
  • template: The user page template (page or namespace)
  • create_summary: The summary for the page creation(s)

Configuration & Usage

Development

Change Log

Known Bugs and Issues

Please report bugs and issues at: https://github.com/cosmocode/userpagecreate/issues

Discussion

  • More info please!
  • It was nice if you could give some sample configuration. For example, I want the new page to be “user:{$newuserid}:start” – how can I achieve this? — Werner Flamme 2012/07/06 15:02 CEST
    • :!: 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 “plugin userpagecreate target” to “user:”
    • set “plugin userpagecreate target template” to “template:usertemplate:”
    • create the “template:usertemplate:start” and edit it (see the following code example), use the replacement patterns
====== @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.

I added the following to the header_tpl.php file at line 47.

//added
$pageid = "users:home_" . $INFO['client'];
$wlink = wl( $pageid );
echo "<a href='$wlink' class='action'>Userpage </a>";
//end mod

That section now looks like this.

 <?php
                        if (!empty($_SERVER['REMOTE_USER'])) {
                            echo '<li class="user">';
                            tpl_userinfo(); /* 'Logged in as ...' */
                            //added 
                            $pageid = "users:home_" . $INFO['client'];
                            $wlink = wl( $pageid );
                            echo "<a href='$wlink' class='action'>Userpage </a>";
                            //end mod
                            echo '</li>';
                        }
                        tpl_action('admin', 1, 'li');
                        tpl_action('profile', 1, 'li');
                        tpl_action('register', 1, 'li');
                        tpl_action('login', 1, 'li');
                    ?>
plugin/userpagecreate.1424960199.txt.gz · Last modified: 2015-02-26 15:16 by grosse

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