Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    Hi Mohamed,
    here is the code that we use(similar to this)

    
    function buddydev_update_activity_args_on_publish( $args ) {
    
    	if ( $args['component'] !== 'blogs' || $args['type'] !== 'new_blog_post' ) {
    		// change type to yours.
    		return $args;
    	}
    	// It must be post publish. let us check for the post meta.
    	// check if this was saved via BCG.
    	$post_id  = $args['secondary_item_id'];
    	$group_id = get_post_meta( $post_id, '_bcg_group_id', true );
    
    	if ( ! $group_id ) {
    		return;
    	}
    
    	$args['component'] = 'groups';
    	$args['item_id']   = absint( $group_id );
    
    	return $args;
    }
    
    add_action( 'bp_after_activity_add_parse_args', 'buddydev_update_activity_args_on_publish' );
    
    

    You can change this

    
    
    $args['type'] !== 'new_blog_post'
    

    and replace ‘new_blog_post’ with your activity type.

    And it will work. You can put the above code in your bp-custom.php

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: BP MagicVersion: 1.3.0 Feedback #11310

    Hi Thomas,
    My apologies for the delayed reply.

    We will need a few days before we can assist you on this. Things are a bit delayed at the moment since we have just resumed the work after a week of holidays and currently clearing the backlog.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: Posting date is incorrect #11309

    Hi Thomas,
    Thank you.
    We will update it in next 2-3 days. Things are a bit delayed at the moment since we have just resumed the work after a week of holidays.

    Will update before the weekend and message you.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: "BuddyPress Deactivate Account" email notification #11307

    Hi Margarita,
    For now,
    Please open “WCDFE.php” in the wp-change-default-email plugin

    and change line 64 from

    
    add_action( 'init', array(&$this, 'init' ));
    
    

    to

    
    
    $this->init();
    

    That should do it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    Thank you Margarita. Glad we have finally resolved it 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    The reason is your activity type for the generated activity is not “new_blog_post” . We filter on this type to set the groups component

    Thank you for the email and I have seen that you are using a different type. I will send you some guideline tonight or tomorrow to how to get it working with your custom code.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    Hi Mohamed,
    I have marked your reply as private since it contained the email address. Also, have sent you the plugin.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    There was an issue and i have managed to get it work. Before going for release, I want to cleanup a few more things.

    If you need it urgently, please let me know and I will send a copy via email. Also, I haven’t tested it with the CPT but post(They should be same), so your feedback will help.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25285
    Brajesh Singh on in reply to: Error when activating Buddyblog #11271

    Thank you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25285

    Hi,
    We do have a converter for the older version of MediaPress.

    I will ask one of our teammate to try and check if it works. Its festive holidays here(I am working but my team is on leave), so please remind me next week and we can assist you with it.

    PS:- Any idea how many media files are there?

    Thank you
    Brajesh