10.03.2010, 14:57
|
#14 (permalink)
|
| PostRank: 2
Registriert seit: 17.06.2006
Beiträge: 73
| Bei mir lief es.
Wo bekommst du die Meldung? Überall wenn du das Plugin hochlädst oder nur auf bestimmten Seiten?
Versuch mal damit... PHP-Code: <?php /* Plugin Name: BuddyPress Lockdown Plugin URI: http://buddypress.org/ Description: Lock down your BuddyPress site if a user is not logged in. Author: Andy Peatling Version: 1.0 Author URI: http://buddypress.org/ Site Wide Only: true */
function bp_lockdown() { global $bp;
if ( BP_REGISTER_SLUG != $bp->current_component && 'wp-login.php' != $bp->current_component && !is_user_logged_in() && !bp_is_front_page() ) bp_core_redirect( site_url( 'wp-login.php' ) ); } add_action( 'bp_init', 'bp_lockdown' ); ?> |
| |