Replies
Hello Jimmy,
Thank you for the acknowledgment. I am glad to help you.
Merry Christmas…
Regards
Ravi- Ravi on December 22, 2021 at 8:03 am 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 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- Ravi on December 21, 2021 at 9:40 am 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 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- Ravi on December 21, 2021 at 6:48 am 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 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
RaviHello Dale,
Code seems good to me. You can use this.
Regards
Ravi- Ravi on December 20, 2021 at 1:13 pm 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 - Ravi on December 20, 2021 at 11:36 am 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