Ich habe ein meinem Forum den Login erzwungen mittels folgendem Mods
Jetzt ist mein Problem, jedesmal wenn ich im Adminbereich nach einem User suchen will (ACP->Benutzer->Einstellungen->"Benutzernamen finden") erscheint statt des gewohnten Suchfensters der Forenindex in dem Pop-Up.Login mandatory hat geschrieben: ###############################################
## Hack Title: Login mandatory
## Hack Version: 1.0.0
## Author: Antony Bailey
## Description: Forces a login on all pages, no more guests anywere.
## Compatibility: 2.0.4
##
## Installation Level: Easy
## Installation Time: 5 minute
## Files To Edit: 2
## page_header.php
## usercp_register.php
##
## Files To Make: 1
## page_header_register.php
##
## History:
## 1.0.0: Started work after seeing how much work login required was to install.
## 2.0.0: Fixed major regiter bug, cauing users to be unable to register.
## Author Notes:
## Idea, adapted from that of Bummer. Whom wrote the original login required modification.
## to the best of my knowledge.
##
## Support: http://www.phpbbhacks.com/forums
## Copyright: ©2003 Login mandatory 1.0.0 - Antony Bailey
##
###############################################
## You downloaded this hack from phpBBHacks.com, the #1 source for phpBB related downloads.
## Please visit http://www.phpbbhacks.com/forums for support.
###############################################
##
###############################################
## This hack is released under the GPL License.
## This hack can be freely used, but not distributed, without permission.
## Intellectual Property is retained by the hack author(s) listed above.
###############################################
#
#-----[ COPY ]------------------------------------------
#
page_header.php
#
#-----[ TO ]------------------------------------------
#
page_header_register.php
#
#-----[ OPEN ]------------------------------------------
#
page_header.php
#
#-----[ FIND ]------------------------------------------
#
$u_login_logout = 'login.'.$phpEx;
$l_login_logout = $lang['Login'];
#
#-----[ BEFORE, ADD ]------------------------------------------
#
//
// Let's stop guests, guests are evil.
//
if ( basename( $HTTP_SERVER_VARS['REQUEST_URI'] ) != 'login.php' )
{
$n = "\n";
echo '<HTML>'.$n
.'<HEAD>'.$n
.'<META HTTP-EQUIV="refresh" content="0;URL='.append_sid('login.'.$phpEx).'">'.$n
.'</HEAD>'.$n
.'</HTML>'.$n;
exit;
}
//
// Okay, back to the normal.
//
#
#-----[ OPEN ]------------------------------------------
#
usercp_register.php
#
#-----[ FIND ]------------------------------------------
#
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
show_coppa();
#
#-----[ REPLACE, WITH ]------------------------------------------
#
include($phpbb_root_path . 'includes/page_header_register.'.$phpEx);
show_coppa();
#
#-----[ FIND ]------------------------------------------
#
//
// Default pages
//
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
#
#-----[ REPLACE, WITH ]------------------------------------------
#
//
// Default pages
//
include($phpbb_root_path . 'includes/page_header_register.'.$phpEx);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Was kann man dagegen tun?!
Wenn ich die Sektion
raus nehme, funzt logischerweise wieder alles...//
// Let's stop guests, guests are evil.
//
if ( basename( $HTTP_SERVER_VARS['REQUEST_URI'] ) != 'login.php' )
{
$n = "\n";
echo '<HTML>'.$n
.'<HEAD>'.$n
.'<META HTTP-EQUIV="refresh" content="0;URL='.append_sid('login.'.$phpEx).'">'.$n
.'</HEAD>'.$n
.'</HTML>'.$n;
exit;
}
//
// Okay, back to the normal.
//
Hat da jemand einen Lösungsansatz, oder die Möglichkeit den Effekt des erzwungenen Logins ober eine andere Möglichkeit zu realisieren?!
Bin für denen Vorschlag dankbar.