Creating anonymous wiki when there is no login and users

Assuming that one or more admins might still want to login, but all other users should not be confused with the login feature.

Theme

Create this theme plugin and install in your wiki/data/plugin/theme/

   1 # -*- coding: iso-8859-1 -*-
   2 """
   3     Anonymous theme - login and user name removed
   4 
   5     @copyright: (c) 2003-2004 by Nir Soffer, Thomas Waldmann
   6     @license: GNU GPL, see COPYING for details.
   7 """
   8 
   9 from MoinMoin.theme import modern
  10 
  11 class Theme(modern.Theme):
  12     name = "anonymous"
  13     
  14     def username(self, d):
  15         """ Remove username and preferences link """
  16         return ''
  17 
  18 def execute(request):
  19     return Theme(request)

Create anonymous htdocs directory by coping modern files:

cp -r /prefix/share/moin/htdocs/modern /prefix/share/moin/htdocs/anonymous

Configuration

In farmconfig, or wikiconfig, set:

    theme_default = 'anonymous'

If you want to prevent all users from selecting a standard theme, set:

    theme_force = 1

User Privacy

All edits will be shown by user IP - if you think about user privacy, you should add this to your config:

    show_hosts = 0

Problems

This is easy to setup, but I don't see any benefits. Users may want to login to use many features available to registered user only. How those user can login if they don't have a login link?

Maybe the problem here will be solved by adding a WhyRegister page - Wikipedia has such page. We can add such page linked from the login ad create account pages.

Wikipedia has also this tooltip when you hover on the login link:

-- NirSoffer 2005-05-16 12:29:49

MoinMoin: AnonymousTheme (last edited 2007-10-29 19:13:01 by localhost)