BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #43031

    Hello Niculae,

    Thank you for reporting the issue. I will look at it and will update you soon.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Modifying bbPress Notify Admins #42993

    Hello,

    Thank you for the acknowledgment. I am glad that I could help.

    You can put the code either in bp-custom.php if you are using BuddyPress or in the child theme functions.php file.

    What is the ‘bp-custom.php’ file have a look here?
    https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Pay Per Post by selling access with WooCommerce #42984

    Hello Niculae,

    Please try the following code:

    
    add_action( 'woocommerce_order_status_completed', function () {
    	add_filter( 'gamipress_user_deserves_trigger', '__return_true' );
    }, 9 );
    
    add_action( 'wp_ajax_bblpro_submit_post', function () {
    	add_filter( 'gamipress_user_deserves_trigger', '__return_false' );
    }, 9 );
    
    

    Please let me know if it helps or not

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Link to the group in the text of the post #42966

    Hello Vlad,

    Try the following code:

    
    add_filter( 'the_content', function ( $content ) {
    
    	if ( ! function_exists( 'groups_get_group' ) ) {
    		return $content;
    	}
    
    	global $post;
    
    	$group_id = get_post_meta( $post->ID, '_bcg_group_id', true );
    	$group    = empty( $group_id ) ? '' : groups_get_group( $group_id );
    
    	if ( $group ) {
    		$content = $content . sprintf( 'Associated Group: <a href="%s">%s</a>', bp_get_group_permalink( $group ), bp_get_group_name( $group ) );
    	}
    
    	return $content;
    } );
    
    

    it will append the associated group link with the post content.

    Please let me know if it helps or not.

    Regards
    Ravi

    • This reply was modified 3 years, 5 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Anonymous posting in youzify/buddypress #42944

    Hello Vasudev,

    Thank you for the acknowledgment. I am glad that I could help.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Anonymous posting in youzify/buddypress #42942

    Hello,

    Sorry for the incovenenience. Please try the following code:

    
    add_filter( 'bp_get_activity_action', function ( $action, $activity ) {
    
    	if ( function_exists( 'bp_anonymous_activity' ) && bp_anonymous_activity()->is_anonymous_activity( $activity->id ) ) {
    		$action = $activity->action;
    	}
    
    	return $action;
    }, 99, 2 );
    
    

    it will modify only if the activity is anonymous.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Anonymous posting in youzify/buddypress #42940

    Hello Vasudev,

    use bp-custom.php. For more info look at here:

    https://buddydev.com/docs/buddypress-guides/what-is-bp-custom-php/

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Anonymous posting in youzify/buddypress #42937

    Hello Vasudev,

    Thank you for clarifying. Please try the following code:

    
    add_filter( 'bp_get_activity_action', function ( $action, $activity ) {
    	return $activity->action;
    }, 99, 2 );
    
    

    Please let me know if it helps or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Modifying bbPress Notify Admins #42936

    Hello,

    Thank you for the acknowledgment. Please use the following code:

    
    /**
     * Modify Notifying users
     *
     * @return array
     */
    function buddydev_modify_notifying_users() {
    	return get_users( array( 'role__in' => array( 'bbp_moderator' ) ) );
    }
    add_filter( 'bbp_notify_admin_topic_notifiable_users', 'buddydev_modify_notifying_users' );
    add_filter( 'bbp_notify_admin_reply_notifiable_users', 'buddydev_modify_notifying_users' );
    
    

    It will notify forum moderators instead of Admins and Keymasters. Please let me know if helps or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Adding excerpts to BuddyBoss forum page? #42934

    Hello Mark,

    Thank you for the details. You can override the BuddyBoss theme template file in the child theme and call the function directly.

    Please let me know if you need further assistance.

    Regards
    Ravi