Search Unanswered Topics Module (5.1 and 5.2 ready)

Adds search for unanswered topics.

Tested on version 5.1.16 and CVS (till revision 1334) for MySQL. DB-layer for
mysqli and postgresql included but not tested. Please give me a feedback if
this parts are working for you.

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:
------------
1. Unpack the archive.

2. Move the directory "search_unanswered" to the directory "mods" within your
   Phorum installation. Don't change the directory name!

3. Move search-unanswered.php to your phorum-directory. Rename the file if you
   want to use a localised file name (in this case you have to change the file
   name also in the settings).

4. Move search-unanswered.tpl, search-unanswered-form.tpl and
   search-unanswered-form-header.tpl to your template-directory.

5. To show a link to the search unanswered topic page on the list page, edit
   list.tpl and list_threads.tpl. Add the following code just behind the
   &bull;{INCLUDE "loginout_menu"}:

{IF URL->SEARCH_UNANSWERED}&bull;<a class="PhorumNavLink"
href="{URL->SEARCH_UNANSWERED}">{LANG->SEARCH_UNANSWERED}</a>{/IF}

6. To show a search form, edit search.tpl. Add the following lines just before
   the last </table>.

6a. If you're using only the Search Unanswered Topics Module:

  <tr>
    <td>&nbsp;</td>
    <td style="width: 10px">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="PhorumStdBlockHeader PhorumNarrowBlock" style="text-align:
 left;">{INCLUDE "search-unanswered-form-header"}</td>
    <td style="width: 10px">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="PhorumStdBlock PhorumNarrowBlock" style="padding: 10px;">
      {INCLUDE "search-unanswered-form"}
    </td>
    <td style="width: 10px">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>

6b. If you're using the Search Unanswered Topics and Search Hot Topics Modules
    together:

  <tr>
    <td>&nbsp;</td>
    <td style="width: 10px">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="PhorumStdBlockHeader PhorumNarrowBlock" style="text-align:
left;">{INCLUDE "search-unanswered-form-header"}</td>
    <td style="width: 10px">&nbsp;</td>
    <td class="PhorumStdBlockHeader PhorumNarrowBlock" style="text-align:
left;">{INCLUDE "search-hot-topics-form-header"}</td>
  </tr>
  <tr>
    <td class="PhorumStdBlock PhorumNarrowBlock" style="padding: 10px;">
      {INCLUDE "search-unanswered-form"}
    </td>
    <td style="width: 10px">&nbsp;</td>
    <td class="PhorumStdBlock PhorumNarrowBlock" style="padding: 10px;">
      {INCLUDE "search-hot-topics-form"}
    </td>
  </tr>

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

8. Enable the module "Search Unanswered Topics Module".

Update from 1.0 to 1.1:
----------------------
Follow installation instructions. Additional disable and enable the module
once.

Language support:
----------------
This module supports multiple languages.

The following languages are included:

- Englisch
- German (Sie)
- German (Du) male
- German (Du) female

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,114995,114995

Sanity Checks:
-------------
If you have problems with this module login as administrator in Phorum's
administrative interface and go to the "System Sanity Checks" section. Check
for warnings or errors for the Search Unanswered Topics Module.

Changelog:
---------
2006/08/02 version 1.0.0 Initial version by Oliver Riesen (oliver@riesen.org)

2006/08/04 version 1.0.1 by Oliver Riesen (oliver@riesen.org)
- Extended Readme.

2006/08/04 version 1.0.2 by Oliver Riesen (oliver@riesen.org)
- Bug fix: missing match_forum in page links.

2006/09/07 version 1.1.0 by Oliver Riesen (oliver@riesen.org)
- Support for future version 5.2.
- Added change sets
  - 1204 (http://www.phorum.org/cgi-bin/trac.cgi/changeset/1204)
  - 1260 (http://www.phorum.org/cgi-bin/trac.cgi/changeset/1260)
  - 1229 (http://www.phorum.org/cgi-bin/trac.cgi/changeset/1299)
  - 1330 (http://www.phorum.org/cgi-bin/trac.cgi/changeset/1330)
- Added sanity checks
