Hi everyone!
I want to dedicate one page (eg :users:USERNAME) and one namespace (eg :users:USERNAME:*) to every user in my wiki. I found out that something as
"user wildcards" exists and I was very disappointed when I got to know that they don't work. It would totally solve my problem, but I couldn't make it work.
This is what I tried (besides a few other attempts)...
I edited the ACL file to look like this...
# acl.auth.php
# <?php exit()?>
# Don't modify the lines above
#
# Access Control Lists
#
# Auto-generated by install script
# Date: Sat, 05 Sep 2009 12:24:53 +0200
* @ALL 0
* @moderator 16
* @user 16
users:%USER%:* %USER% 16
users:* @user 1
users:%USER% %USER% 2
Then I deleted the server's and browser's caches, logged in as regular user (not admin) and tried to edit page :users:USERNAME and create a new page in :users:USERNAME: namespace. But I didn't succeed.
Is there anybody who can confirm that his user wildcards work?
Another possible solution of my problem is something like what userspagecreate plugin does. It creates one special rule for every user newly registered. I managed to change the code of that plugin to add two ACL rules per user. That should do the job. But there are a few minuses:
A) My wiki has about a thousand of users and it's expected to grow. Actually I expect it to have about a few thousands (eg 4000) of users in a few years. So 4000 * 2 gives us 8k of ACL rules. Isn't that pretty much? I expect dokuwiki to have some performance issues then (am I right?). Not to mention that the file would be pretty messy.
B) When user is deleted (it happens) "his" rules are not deleted as well. When user is created by admin (not by classic registration) the rules are not created. And so on. But this kind of problems should probably be solvable by more changes in the code. The "A" problem is bigger I guess.
Thanks for any advice you can give me.