Table of Contents

Users Page Create Plugin

Compatible with DokuWiki

2008-05-05

plugin Autocreate users pages after registration

Last updated on
2008-08-07
Provides
Action

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

Tagged with authentication, create, userpage, users

Download

Description

Sorry for my English :-)

Autocreate users pages after registration. Use plugin parameters for set users namespace (default users).

You can use in template page functions mytpl_userinfo(), mytpl_pageinfo() or change functions in file inc/template.php

If you want see link to userpage to revisions and recent page then change file inc/html.php

 /* string 436 (replace string) */
 /* print (empty($INFO['editor']))?('('.$lang['external_edit'].')'):htmlspecialchars($INFO['editor']); */
 print (empty($INFO['editor']))?('('.$lang['external_edit'].')'):mytpl_userhtmllink($INFO['editor']);
 /* string 480 (replace string) */
 /* print htmlspecialchars($info['user']); */
 print mytpl_userhtmllink($info['user']);
 /* string 575 (replace string) */
 /* print htmlspecialchars($recent['user']); */
 print mytpl_userhtmllink($recent['user']);

If you want see link in toolbar in signature change file inc/toolbar.php and use @USERPAGE@ in parameter signature

 /* string 201 (insert new string) */
 $sig = str_replace('@USERPAGE@',$INFO['usersnamespace'].':'.$_SERVER['REMOTE_USER'],$sig);

Discuss

Is this working when I do not have user registration? I got LDAP auth - the users can't register they are simply coming in using LDAP.

I had to change a line in the action.php: function action_act_preprocess_after: removing the : before $INFO['usersnamespace']

What are the plugin's parameters that I use for configuration?

 в строке 84 нужно убрать :
   
  			/*$pageName=':'.$INFO['usersnamespace'].':'.$_SERVER['REMOTE_USER'];*/
			$pageName= ''.$INFO['usersnamespace'].':'.$_SERVER['REMOTE_USER'];