Home Forums Plugin Support WP User Frontend Pro Registration Form post to BP Activity (new member)

This topic is: resolved

This topic contains 16 replies, has 3 voices, and was last updated by  Nayem 3 years, 11 months ago.

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #32499

    Aaron
    Member
    Post count: 39

    I need my Registration Form to post to the BP Activity that a new member has registered.

    EXAMPLE:
    “Username” became a registered member 1 day, 3 hours ago

    I have read and tried this article but did not work:
    http://wedevs.com/support/topic/post-to-buddypress-actvities/

    I have also tried this but did not work:
    http://docs.wedevs.com/buddypress-activity-wp-user-frontend/

    Thanks,
    Aaron

    #32516

    Nayem
    Moderator
    Post count: 6480

    Hello Aaron,

    I am not clear about your question. Can you please describe me in more details about your needs?. I am here to hear from you.

    Thank you ๐Ÿ™‚

    #32579

    Aaron
    Member
    Post count: 39

    Look at my website here: http://www.nprnsb.org. Look at the right side “Activity Feed”. Any new post gets added to the Activity Feed. I am using WPUF for members to Post which works great. Currently I am using the Default Buddyrpess Registration Form and when a person Becomes a New Member of the site it shows in the Activity Feed just like News Posts. Example: “iwesterik became a registered member 1 day, 4 hours ago”
    Example: activity

    BUT NOW I am using “WPUF Registration Forms” But when a new member registers it does not show in the Activity Feed. How can i have it post to the Acivity Feed when someone becomes a new member.?

    #32638

    Sekander Badsha
    Member
    Post count: 2067

    Hello Aron,

    I need to test this issue and discuss with the developer team. Please allow me a couple of hours.

    #32778

    Aaron
    Member
    Post count: 39

    Hello Sakender, any new information about new member registtration show in the Activity Feed?

    Thanks

    #32789

    Nayem
    Moderator
    Post count: 6480

    Hello Aaron,

    I have already forwarded this issue to our developer team. Hope they will provide me a proper solution for this issue. I will be back to you with the right solution. Please keep patience and allow me some time.

    Thank you ๐Ÿ™‚

    #33096

    Aaron
    Member
    Post count: 39

    Hello Nayem and Sekander, sorry to bother you again but I want to make my website Live but I really need this fixed before i do. Any progress on this?

    Thanks again.

    #33165

    Nayem
    Moderator
    Post count: 6480

    Hello Aaron,

    We have already fixed this. I will provide you some code. Please allow me some time to discuss with our developer about those code.

    Thank you for having patience. ๐Ÿ™‚

    #33192

    Aaron
    Member
    Post count: 39

    Wonderfull News!!!! Thank You.

    #33215

    Nayem
    Moderator
    Post count: 6480

    Hello Aaron,

    Please open wpuf-bp.php file. In line number 207-2011 you will see something like this-

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

    .You have to replace this code with this code-

    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'
    
                ));
    
            }
    
         }
    }

    Pelase check and let me know. Thank you ๐Ÿ™‚

    #33244

    Aaron
    Member
    Post count: 39

    Works Perfect!! Thanks for you support on this.

    #33250

    Nayem
    Moderator
    Post count: 6480

    Hello Aaron,

    If you have no more question then please mark this topic as resolved.

    Thank you ๐Ÿ™‚

    #33425

    Aaron
    Member
    Post count: 39

    Hello again, The new code you gave did not work for one of my new members, They registered today and the Activity Feed did not show “huttonparker became a registered member about 7 hours ago”.

    It did work for this person today:
    you can see this in the Activity Feed –> “huttonparker became a registered member about 7 hours ago”

    But this DID NOT work for this member

    They both used the same Registration Form that assigns the same role “Funder”. So why would it work for one person and not the other?

    Any Ideas?

    #33426

    Aaron
    Member
    Post count: 39

    Here are the links mentioned above….

    Showed new member in Activity Feed for this person… huttonparker

    …but not for this person. fundforsb

    Activity Feed is here and you can see that “huttonparker” shows as new member but not for “fundforsb”.
    NPRNsb.org

    #33459

    Nayem
    Moderator
    Post count: 6480

    Hello Aaron,

    I think there is something missing. It should work for all of your members. Please check carefully and make sure that they have registered correctly and also please check your internal settings. Those code we have provided it should work for everyone. We have checked this in our local site but everything is fine here.

    Thank you ๐Ÿ™‚

Viewing 15 posts - 1 through 15 (of 17 total)

The topic ‘Registration Form post to BP Activity (new member)’ is closed to new replies.