List Moderators Module (5.1 ready)

List the moderators and (optional) administrators in a given forum. On the
index pages the moderators are added to the forum description. On the list
page the moderators are shown in a separate box.

Tested on version 5.1.15 and CVS (till revision 1248)

License:
-------
Free to use, modify, or redistribute this code so long as I am given credit for
the original development somewhere. This code comes with absolutly no warranty.

Installation:
------------
- Unpack the archive.

- Move the directory "listmoderators" to the directory "mods" within your
  Phorum installation.

- Login as administrator in Phorum's administrative interface and go to the
  "Modules" section.

- Enable the module "List Moderators".

- Optional go to "Settings" for this module and change cache time, display
  options and sort order.

- Optional go to "General Settings" and change "Ignore Admin for moderator-
  emails" (last option on this page) to "No" if you want to display also
  administrators in the list of moderators.

Language support:
----------------
This module supports multiple languages (even if it is only one word).

The following languages are included:

- Englisch
- German
- German (Sie)

If you want to translate the module to a new language, you'll have to do the
following:

Copy lang/english.php to lang/yourlang.php (yourlang.php must have the same
name as Phorum's main language file that you use). After this, translate the
strings in lang/yourlang.php.

If you have created a translation for this module, please post a zip file
containing lang/yourlang.php in the module thread at phorum.org, so the
translation can be added to the module package. See:
http://www.phorum.org/phorum5/read.php?16,6228

Template change:
---------------
This module uses the stdblock template on the list page to show the list of
moderators. If you want to change the layout, you'll have to do the following:

1. Copy stdblock.tpl in your template directory to listmoderators.tpl.

2. In listmoderators.php change line 20, replace:
        include phorum_get_template('stdblock');
   with:
        include phorum_get_template('listmoderators');

3. Change the layout in listmoderators.tpl.

Debugging:
---------
If there are missing moderators or administrators in the list of moderators
please try the following:

1. Go to "Settings" for this module and change "Cache Time" to "0" (zero).

2. Go to "General Settings" and change "Enable Caching Userdata" to "No"

3. Go to "General Settings" and change "Ignore Admin for moderator-
  emails" (last option on this page) to "No".

Try again. Now all moderators and administrators should be shown.

Changelog:
---------
2004/05/21 version 1.0.0 by Chris Eaton (tridus@phorum.org)

2006/04/20 version 2.0.0 Oliver Riesen (oliver@riesen.org)
- Correcting error if a forum has no moderator; block is not shown in this case.
- Added national language support.
- Added option in the module settings to display user name or real name.
- Added option in the module settings to sort by user id, user name or real
  name.
- Added option in the module settings to strip parts of the real name (e.g. if
  the real name includes a role like "moderator" or "webmaster").

2006/05/04 version 2.0.1 by Oliver Riesen (oliver@riesen.org)
- Correcting error if there is no real name.

2006/08/09 version 2.1.0 by Oliver Riesen (oliver@riesen.org)
- On the index pages the moderators are added to the forum description.

2006/08/22 version 2.1.1 by Oliver Riesen (oliver@riesen.org)
- Extended documentation. Thanks to Michael Horton.

ToDo:
----
The option "Ignore Admin for moderator-emails" in "General Settings" should
only affect email sending. Therefore the Phorum core function
phorum_db_user_get_moderators should be corrected.
See: http://www.phorum.org/phorum5/read.php?16,6228,115581
