ich habe mir von hier:
http://www.phpbbhacks.com/download/4458
oben genannten Mod runtergeladen und meiner Meinung nach korrekt eingebaut.
Im ACP ist die entsprechende Option verfügbar und kann von mir ausgeschaltet werden. In der Datenbank verändert sich daraufhin auch der Eintrag. Das funktioniert also soweit. Das Problem ist allerdings, dass der Link zur Registrierung weiterhin auf der Startseite angezeigt wird.
Liegt das daran, dass der Mod schon relativ alt ist und eventuell mit der aktuellen Version von phpbb nicht mehr funktioniert oder habt ihr eine andere Idee wo der Fehler liegen könnte? Wenn ich die modifizierten Dateien hochladen soll, bitte bescheid geben.
Vielen Dank im voraus.
Hier ist der Code des Mods:
Code: Alles auswählen
#################################################################
## MOD Title: Disable Registration mod
## MOD Author: Phydeaux <no@public.email> (Phydeaux) http://www.phpbbhacks.com
## MOD Author email: Phydeaux@zhq2.com // please use the forum at phpbbhacks
## MOD Description:
## This mod simply *Toggles* User Registration from the ACP. If you disable registration,
## the registration icon and link stay hidden permanently. Allowing registration
## returns the icon and link. Of course it has no effect when the user is logged in,
## and it has no effect on registered user logon.
##
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit (4):
## /admin/admin_board.php
## /includes/page_header.php
## /language/*/lang_admin.php {/lang_english/ included}
## /templates/*/admin/board_config_body.tpl {subSilver tested... but no worries}
##
## Included Files (0):
##
##
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## If you've ever admin'd a private board and been frustrated with unwanted registrations...
## "This Mod's For You!" Some may find it helpful when they need to simply slow down or
## temp-halt registration. If this helps you, I'm happy...
##
## Phydeaux
##
##
## /***************************************************************************
## *
## * 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.
## *
## ***************************************************************************/
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD!!!
##############################################################
#-----[ SQL ]--------------------------------------------
#
# Your table prefix may be different... edit this accordingly
# I have used the default table prefix
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('register_disable',0);
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
$disable_board_no = ( !$new['board_disable'] ) ? "checked=\"checked\"" : "";
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Disable Registration Mod
$disable_registration_yes = ( $new['register_disable'] ) ? "checked=\"checked\"" : "";
$disable_registration_no = ( !$new['register_disable'] ) ? "checked=\"checked\"" : "";
// End Disable Registration Mod
#
#-----[ FIND ]------------------------------------------
#
"L_DISABLE_BOARD_EXPLAIN" => $lang['Board_disable_explain'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Disable Registration Mod
"L_DISABLE_REGISTRATION" => $lang['Registration_disable'],
"L_DISABLE_REGISTRATION_EXPLAIN" => $lang['Registration_disable_explain'],
// End Disable Registration Mod
#
#-----[ FIND ]------------------------------------------
#
"S_DISABLE_BOARD_NO" => $disable_board_no,
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Disable Registration Mod
"S_DISABLE_REGISTRATION_YES" => $disable_registration_yes,
"S_DISABLE_REGISTRATION_NO" => $disable_registration_no,
//End Disable Registration Mod
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('switch_user_logged_out', array());
#
#-----[ REPLACE WITH ]------------------------------------------
#
//
// Do we allow registration?
// Disable Registration Mod
if ( !$board_config['disable_register'] )
{
$template->assign_block_vars('switch_user_logged_out', array());
}
//End Disable Registration Mod
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Disable Registration Mod
$lang['Registration_disable'] = 'Disable User Registration';
$lang['Registration_disable_explain'] = 'This will remove the Register icon and link from the board. It is useful for private boards and where Admins prefer to pre-register their users.';
//End Disable Registration
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
# this line is looong... this is the end of the line
name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
#
#-----[ FIND ]------------------------------------------
# this is the following line
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_DISABLE_REGISTRATION}<br /><span class="gensmall">{L_DISABLE_REGISTRATION_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="register_disable" value="1" {S_DISABLE_REGISTRATION_YES} /> {L_YES} <input type="radio" name="register_disable" value="0" {S_DISABLE_REGISTRATION_NO} /> {L_NO}</td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM