Viewing 4 replies - 31 through 34 (of 34 total)
  • OK I will try to verify what caused the blocking… but what is about behaviour in my first post?… could this be reproduced?

    Sorry!!!… IP Blocking caused by WP-Activity (found in phpMyAdmin)…
    but behaviour in different browsers seems to be reproducible…

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    A couple things to keep in mind. The registering user won’t have the same browser session as you, already logged in, so they should be getting redirected properly as expected.

    Our plugin doesn’t prevent the activation key from going out. They’re able to click it, activate the account, log into the site, BUT they can’t, or at least shouldn’t be able to, access the BuddyPress areas, by the impression that I’ve noted people get. Your Contact page would still be able to be seen.

    I am not the original plugin author, I have stepped in as a primary contributor though.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    One thing that I’m thinking/realizing is that this isn’t a perfect block like I was thinking it was supposed to be.

    Here’s a snippet of the code from includes/core.php

    if ( $bp_moderate == 1 && $user_ID > 0 ) {
    	$user = get_userdata($user_ID);
    	if ( 69 == $user->user_status ) {
    		//hide friend buttons
    		add_filter( 'bp_get_add_friend_button', '__return_false' );
    		add_filter( 'bp_get_send_public_message_button', '__return_false' );
    		add_filter( 'bp_get_send_message_button', '__return_false' );
    		//hide group buttons
    		add_filter( 'bp_user_can_create_groups', '__return_false' );
    		add_filter( 'bp_get_group_join_button', '__return_false' );
    		//hide activity comment buttons
    		add_filter( 'bp_activity_can_comment_reply', '__return_false' );
    		add_filter( 'bp_activity_can_comment', '__return_false' );
    		add_filter( 'bp_acomment_name', '__return_false' );
    		//redirect messages page back to profile (dont want blocked members contacting other members)
    		add_filter( 'bp_get_options_nav_invite', '__return_false' );
    		add_filter( 'bp_get_options_nav_compose', '__return_false' );
    		if ( $bp->current_component == 'messages' ) {
    			wp_redirect( $bp->loggedin_user->domain );
    			exit();
    		}
    	//set global to false
    	} else {
    		$bp_moderate = false;
    	}
    }

    In short, this is hiding UI elements, but not preventing access. I probably miss-communicated this at times, as I’m realizing better what this plugin does and doesn’t do.

    I also think that this could be due for a change. I know I have added some code for bbPress, which is closely coupled, but separate, from BuddyPress. It uses map_meta_cap to prevent reading of the the bbPress section, and it should be able to be used with BuddyPress as well. However, I really want to get this tested and nailed down before I push up.

Viewing 4 replies - 31 through 34 (of 34 total)
  • The topic ‘Activation causing problems’ is closed to new replies.