###########################################################
# Forum-Hack für Legend of the Green Dragon               #
# Autor: Thibaud Roth <thibaud.roth@betriebsdirektor.de>  #
# Copyright: (c) 2006 Thibaud Roth                        #
# Lizenz: siehe Datei LICENSE                             #
###########################################################

  **********************************************************************
  * This program is free software; you can redistribute it and/or      *
  * modify it under the terms of the GNU General Public License        *
  * as published by the Free Software Foundation; either version 2     *
  * of the License, or (at your option) any later version.             *
  *                                                                    *
  * This program is distributed in the hope that it will be useful,    *
  * but WITHOUT ANY WARRANTY; without even the implied warranty of     *
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the      *
  * GNU General Public License for more details.                       *
  *                                                                    *
  * You should have received a copy of the GNU General Public License  *
  * along with this program; if not, write to the Free Software        *
  * Foundation, Inc., 51 Franklin Street, Fifth Floor,                 *
  * Boston, MA  02110-1301, USA                                        *
  **********************************************************************

===== Beschreibung =====
Dieser Hack bietet ein Forum mit den allernötigsten Funktionen. Es reicht aber aus, wenn man nur Feedback, Fehlermeldungen und ähnliches damit abdecken will. Es hat den großen Vorteil, das niemand abgeschreckt wird, weil er sich – neben dem Spiel – noch ein zweites Mal anmelden muss, wie es bei einem externen Forum der Fall wäre.

===== Installation =====
   1. Lade die Datei forum.php und admin_forum.php in Dein LotGD-Verzeichnis.
   2. Führe, zum Beispiel in PHPMyAdmin, folgende zwei Befehle aus:
      ALTER TABLE `accounts` ADD `forum_lastvisit` INT NOT NULL ;

      CREATE TABLE `forum` (
      `id` int(11) NOT NULL auto_increment,
      `acctid` int(11) NOT NULL default '0',
      `title` varchar(255) NOT NULL default '',
      `text` text NOT NULL,
      `lastreply` int(11) NOT NULL default '0',
      `sub` int(11) NOT NULL default '0',
      `status` int(11) NOT NULL default '0',
      `timestamp` int(11) NOT NULL default '0',
      PRIMARY KEY (`id`)
   3. Öffne die Datei village.php, suche die Zeile (evtl. ~ 74) addnav("In die Felder (Logout)","login.php?op=logout",true); und füge in die nächste Zeile addnav("Forum", "forum.php"); ein.
   4. Öffne die Datei shades.php, suche die Zeile (evtl. ~ 20) addnav("In Ruhmeshalle spuken","hof.php"); und füge in die nächste Zeile addnav("Forum", "forum.php"); ein.
   5. Öffne die Datei dragon.php, suche die Zeile (evtl ~ 141) ,"reputation"=>1 und füge in die nächste Zeile ,"forum_lastvisit"=>1 ein.

===== Support =====
Aktuelle Informationen, eine ausführlichere Anleitung und die neuste Version finden sich auf http://thibaudroth.magicforrest.de/?lotgd/forum
Für Fragen, Fehlermeldungen und Anregungen den Thread zum Forum–Hack auf anpera.net benutzen: http://anpera.homeip.net/forum/viewtopic.php?p=35727
