Replies
Hi David,
1. Yes. You will need to enable it in the settings of the plugin though.
2. Please use the following code./** * Redirect user on login. * * @param string $redirect_to_calculated the page where user is about to be redirected. * @param string $redirect_url_specified actual specified redirect. * @param WP_User $user user. * * @return string */ function buddydev_redirect_on_login( $redirect_to_calculated, $redirect_url_specified, $user ) { if ( ! $user || is_wp_error( $user ) ) { return $redirect_to_calculated; } // If the redirect is not specified, assume it to be dashboard. if ( empty( $redirect_to_calculated ) ) { $redirect_to_calculated = admin_url(); } // Where do you want to redirect. // You can change it to anything. $redirect_to = bp_core_get_user_domain( $user->ID ); // for example, to redirect to user's group page, you will use // $redirect_to = bp_core_get_user_domain( $user->ID ) . 'groups/'; return $redirect_to; } add_filter( 'login_redirect', 'buddydev_redirect_on_login', 101, 3 );The above code redirects to profile. You can change $redirect_to to point to anywhere.
For example, To redirect to member directory, you can change it to.$redirect_to = bp_get_activity_directory_permalink();Regards
Brajesh- Brajesh Singh on October 15, 2018 at 3:46 am in reply to: Code Snippet 'Add Xprofile fields to the member code' #18065
Hi Carsten,
I have looked into it. There is a bug in bp_member_profile_data and it does not passes the field id. Since the field id is not available, the custom fields plugin is unable to know whether age is required or date.There is a solution. Inside the members loop you can use
<?php echo xprofile_get_field_data( 'Date Field Name', bp_get_member_user_id() );?>That will give the correct data.
For efficiency, you can replace the field name with id too.Regards
Brajesh - Brajesh Singh on October 15, 2018 at 3:29 am in reply to: [Resolved] Moderation tools support for posts? #18064
Hi Richard,
Hope you are doing well.We will be most probably releasing the posts support today or tomorrow. It is in testing phase and I am looking forward to release within next 24-48 hours.
Regards
Brajesh - Brajesh Singh on October 14, 2018 at 1:33 am in reply to: [Resolved] Adding User Role or a member type as new visibilty level #18061
Hi Michael,
I am sorry for the confusion.You don’t need to change anything in the code. It is not working as it is unable to find the labels[‘Recruiter’]
Is your goal to limit the available visibilities to only certain member types(like only Recruiter is available as a visibility level?)
The code in the blog post will automatically take the singular label for all member types.
Regards
Brajesh Hi David ,
Thank you for asking.The current version allows you to select which activities you want to convert into stream.
– You can use sitewide activity directory as the friends/groups/users stream
– You can add extra tab on profile for stream.Both are optional and you can chose any on or both.
Regards
Brajesh- Brajesh Singh on October 12, 2018 at 4:10 pm in reply to: [Resolved] How to disable public and private messages for specific users #18052
- Brajesh Singh on October 12, 2018 at 4:10 pm in reply to: [Resolved] Add icon to buddy circle #18051
Thank you Edgar.
All the Best.Regards
Brajesh - Brajesh Singh on October 12, 2018 at 3:42 pm in reply to: [Resolved] BP Force Profile Photo expanded to Force Profile #18050
Glad that you found it.
Regards
Brajesh - Brajesh Singh on October 12, 2018 at 3:38 pm in reply to: [Resolved] Check if there is a translation issue of plugin BuddyPress Ajax Registration #18049
Hi Thorsten,
is is resolved or do you still have issues?Thank you
Brajesh - Brajesh Singh on October 12, 2018 at 3:19 pm in reply to: [Resolved] Allow user to upload images #18048
Hi Saxena,
I am sorry to hear about your fever. Please take rest.Yes, the release is available from WordPress.org report.
Get well soon.
Brajesh