Seite 1 von 1
Strafpunkte & Verwarnungssystem
Verfasst: 24.04.2006 15:45
von Lohgock-Trainer
Ich bräuchte ein Strafpunkt und Verwarnungssystem. Es sollte ungefähr so laufen:
Ein Moderator kann einem User Strafpunkte geben können. Diese werden dann in eine Liste geschrieben. Bei einer bestimmten Anzahl von Strafpunkten wird der User gesperrt. Bei jedem Strafpunkt bekommt der User per PM gesagt das er einen Strafpunkt bekommen hat. Natürlich müsste man auch diese Punkte wieder abziehen können.
Das Verwarnugssystem läuft ebenfalls so. Nur wird alles in eine Verwarnliste geschrieben
Verfasst: 24.04.2006 15:53
von Kroate
Verfasst: 24.04.2006 16:19
von Kroate
Die ganzen Links sind TOD kann uns einer vielleicht einenfunktionierenden Link geben..und eine Deutsche Version vielleicht
Verfasst: 24.04.2006 16:43
von Eoleon
Verfasst: 24.04.2006 17:02
von Kroate
So jetzt will ich das installieren aber ich weiß nicht was hier von mir verlangt wird
- <?php
#########################################################
## SQL commands to phpBB2
## Author: Niels Chr. Rød
## Nickname: Niels Chr. Denmark
## Web: http://mods.db9.dk
## Email: ncr@db9.dk
##
## Ver 1.0.9
##
## phpBB2 database update script for mods
## this file is intended to use with phpBB2, when installing mods
## after so you may delete this file, but only admin can use so it really doesen't matter
## The script will look what prefix you are using, and use the existing DB defined by congig.php
## The execution of this script's included SQL is harmless, so you can run it as meny times you like
## note, though that the users last visit, will be set back to his/her last login,
## but that is a minor cosmetic isue, that will correct it self next time the use logs in
##
## the following example are from my mods, and you can add some self, for other mods if you like
## you will after execution get a list over those commands that are run with succes and those with warnings !
## delete the sample lines if you are using it only for other mods
##
#########################################################
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
###################################################################################################
##
## put the SQL commands below here, the SQL commands listed below are only exampels, substitude them with the one you need ##
##
###################################################################################################
$sql=array(
'INSERT INTO '.AUTHS_DEF_TABLE.' ( `auth_type` , `auth_name` , `auth_order` ) VALUES ("f", "auth_bluecard", "150")',
'INSERT INTO '.AUTHS_DEF_TABLE.' ( `auth_type` , `auth_name` , `auth_order` ) VALUES ("f", "auth_greencard", "160")',
'INSERT INTO '.AUTHS_DEF_TABLE.' ( `auth_type` , `auth_name` , `auth_order` ) VALUES ("f", "auth_yellowcard", "170")',
'INSERT INTO '.AUTHS_DEF_TABLE.' ( `auth_type` , `auth_name` , `auth_order` ) VALUES ("f", "auth_redcard", "180")',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("bluecard_limit", "3")',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("bluecard_limit_2", "1")',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("max_user_bancard", "10")',
'INSERT INTO '.CONFIG_TABLE.' (config_name, config_value) VALUES ("report_forum", "0")',
'ALTER TABLE '.USERS_TABLE.' ADD user_warnings SMALLINT (5) DEFAULT "0"',
'ALTER TABLE '.POSTS_TABLE.' ADD post_bluecard TINYINT (1)'
);
$mods = array (
'Yellow Card Mod','Yellow Card Mod','Yellow Card Mod','Yellow Card Mod',
'Yellow Card Mod','Yellow Card Mod','Yellow Card Mod','Yellow Card Mod',
'Yellow Card Mod','Yellow Card Mod'
);
Hier die yellow card version 1.4.9
http://mods.db9.dk/viewtopic.php?t=8&si ... cbae6b74df
Verfasst: 24.04.2006 17:10
von Lohgock-Trainer
Du musst MySQL Tabellen ändern, hinzufügen!
Verfasst: 24.04.2006 17:38
von BB-BF-BM
siehe
KB:phpmyadmin
KB:modsfaq
und Link:kb
Verfasst: 25.04.2006 16:02
von Kroate
Jo Danke^^
