BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Logout and redirect to Register #42226

    Hello Jimmy,

    Thank you for the acknowledgment. I am glad to help you.

    Merry Christmas…

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Activity Shorcode feature not working #42202

    Hello Doss,

    Try the following shortcode:

    
    // Replace 33 with your forum id.
    
    [activity-stream secondary_id=33 action=bbp_topic_create]
    

    Please check and let me know if it works or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Logout and redirect to Register #42201

    Hello Jimmy,

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

    
    /**
     * Make a WordPress site Private, works with/Without BuddyPress
     *
     * @author sbrajesh
     * @global string $pagenow
     *
     */
    function buddydev_private_site() {
    
    	// Do not restrict logged in users.
    	if ( is_user_logged_in() ) {
    		return;
    	}
    
    	//first exclude the wp-login.php
    	//register
    	//activate
    	global $pagenow;
    
    	// If we are here, the user is not logged in, so let us check for exclusion.
    	// We selectively exclude pages from the list.
    
    	// Are we on login page?.
    	if ( $pagenow == 'wp-login.php' ) {
    		return;
    	}
    
    	// Handle Special case of BuddyPress registration/Login.
    	if ( function_exists( 'is_buddypress' ) && is_buddypress() ) {
    
    		if ( bp_is_activation_page() || bp_is_register_page() ) {
    			return;
    		}
    	}
    
    	$redirect_url = wp_registration_url();
    
    	wp_safe_redirect( $redirect_url );
    
    	exit( 0 );
    }
    
    add_action( 'template_redirect', 'buddydev_private_site', 0 );
    
    

    It will redirect users to the register page except for wp-login.php, and ‘activate’

    Please check and let me know if it helps.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Activity Shorcode feature not working #42180

    Hello Doss,

    Thank you for the acknowledgment. Please let me know your forum with id ‘55117’ is a group forum means associated with any group or a normal bbPress forum so that I can check on my local development server.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Update the user xprofile field #42174

    Hello Vlad,

    Thank you for posting here. Please look at the following function you can use to save the xprofile field value.

    https://github.com/buddypress/buddypress/blob/master/src/bp-xprofile/bp-xprofile-functions.php#L432

    Please check

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BP Activity Shorcode feature not working #42173

    Hello Doss,

    Thank you for using the plugin. Shortcode attribute ‘forum_id’ is not supported by this plugin instead use ‘primary_id’ as per the list of supported attributes. You can check the list of supported attributes here:

    https://buddydev.com/plugins/bp-activity-shortcode/

    Please let me know if it resolves the issue or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Logout and redirect to Register #42167

    Hello Jimmy,

    Do you want to redirect visitors to the home page or login page? The current version of code redirects users to the login page.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Display BP User ID by Shortcode #42159

    Hello Dale,

    Code seems good to me. You can use this.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Extended friendship request and Friendship Restrictions #42158

    Hello GRB,

    Please upgrade your plugin and give it a try. Please let me know if the issue is resolved or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Extended friendship request and Friendship Restrictions #42155

    Hello GRB,

    Sorry for the delayed reply. I have checked and found the issue it is the nonce action that is causing the issue. we will fix this in the newer version of the plugin and let you know.

    Regards
    Ravi