Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Feed not showing new members

  • @aaronkin

    Participant

    Before i explain this issue I apologize that this is also related to a third party plugin combined with Buddypress, I have contacted their support again and again and they just cant seem to get this resolved. Now its been weeks. I am posting here in HOPE that this is and easy fix that someone can help with.

    I’m using Wp User FrontEnd Pro and thier buddypress addon that allows me to create custom Registration Form for Buddyrpess. But when people register it no longer shows up in the Activity Feed correctly. IT USED TO until I updated Buddypress to 2.1, I’m now on latest BP 2.2.3.1.

    All i see when someone registers is their username and its not linked. You can see three recent members that registered on my site here http://nprnsb.org/ or see the screenshot here http://nprnsb.org/new-members.jpg

    Here are the three code attempts they have tried.

    1.) This was the original that used to work with older version of Buddypress (2.0)

        function on_user_registration( $user_id, $userdata, $form_id ) {
    	         $this->update_user_data( $user_id, $form_id );
    	       if ( function_exists( 'bp_activity_add' ) ) {
    	           bp_activity_add( array(
    	                'user_id'   => $user_id,
    	                'component' => 'xprofile',
    	                'type'      => 'new_member'
    	            ));
    	        }
    	     }
    	}
     // WPUF_BP_Profile
    
    $wpuf_bp = WPUF_BP_Profile::init();

    After Buddypress update to 2.1.1 Only the NAME of the new member would show up (no link, no “became a member” no timestamp).. just their name.
    2.) Here is their attempt to fix which made things worse and did not show ANYTHING in the Activity Feed.

        function on_user_registration( $user_id, $userdata, $form_id ) {
            $this->update_user_data( $user_id, $form_id );
    
            if ( function_exists( 'bp_activity_add' ) ) {
                bp_activity_add( array(
                    'user_id'   => $user_id,
                    'component' => 'members',
                    'type'      => 'new_member'
                ));
            }
        }
    } // WPUF_BP_Profile
    
    $wpuf_bp = WPUF_BP_Profile::init();

    Here their THIRD attempt to fix but this still does now show anything.
    3.)

    function on_user_registration( $user_id, $userdata, $form_id ) {
             $this->update_user_data( $user_id, $form_id );
           if ( function_exists( 'bp_activity_add' ) ) {
               bp_activity_add( array(
                    'user_id'   => $user_id,
                    'component' => 'members',
                    'type'      => 'new_member'
                ));
            }
         }
    }
    add_action( 'plugins_loaded', 'wpuf_bp_init' );
    function wpuf_bp_init() {
        //check dependency for wp_user_frontend
        if ( ! class_exists( 'WP_User_Frontend' ) ) {
            return;
        }
        //check dependency for buddypress
        if ( ! class_exists( 'BuddyPress' ) ) {
            return;
        }
        $wpuf_bp = WPUF_BP_Profile::init();
    }

    I would be very grateful for any info I can pass on to them… Or a FIX would be ideal.

    Thanks for reading.

Viewing 4 replies - 1 through 4 (of 4 total)
  • @shanebp

    Moderator

    I think you’re missing some fields in your bp_activity_add call.

    bp_activity_add()

    @imath

    Moderator

    Well, i think they are complicating their task.

    It seems to me that to be sure BuddyPress will do all what it needs to do, you simply need to use :

    do_action( 'bp_core_activated_user', $user_id );

    eg:

    function on_user_registration( $user_id, $userdata, $form_id ) {
           $this->update_user_data( $user_id, $form_id );
           do_action( 'bp_core_activated_user', $user_id );
    }

    Because we hook to this action to :
    – clear the member count cache
    – create the ‘new_member’ activity
    – Sync WP/BP profile if the xProfile component is active

    If that doesn’t fix the issue. A BuddyPress plugin should always launch itself hooking ‘bp_include’ to be sure every active BuddyPress parts are loaded.

    So instead of add_action( 'plugins_loaded', 'wpuf_bp_init' );
    the plugin developer can try add_action( 'bp_include', 'wpuf_bp_init' );

    @danbp

    Participant

    Merci @imath ! 😉

    @aaronkin

    Participant

    Great! I will pass this info onto the developer and see what they say. I’ll let you know how it goes.

    just for more reference… here is are the Two Support Topics i started with the developer.
    https://wedevs.com/support/topic/registration-form-post-to-bp-activity-new-member/

    Here is the ongoing ticket, Started a New Topic after the Buddypress update prevented it from working again.
    https://wedevs.com/support/topic/buddypress-activity-feed-not-showing-new-members-wpuf-registration-form/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Activity Feed not showing new members’ is closed to new replies.
Skip to toolbar