Replies
- Ravi on January 15, 2020 at 5:48 pm in reply to: [Resolved] BuddyPress Private Message for Non Logged in Users #27352
Hello,
Thank you for posting. It seems you are using Noveau template pack. Please try the following code.
/** * Modify private message button args. * * @param array $buttons Array. * * @return array */ function buddydev_nouveau_filter_private_message_button( $buttons ) { if ( ! isset( $buttons['private_message'] ) || is_user_logged_in() ) { return $buttons; } $buttons['private_message']['must_be_logged_in'] = false; $buttons['private_message']['button_attr']['href'] = wp_login_url( site_url( '?message-redirect=' . bp_displayed_user_id() ) ); return $buttons; } add_filter( 'bp_nouveau_get_members_buttons', 'buddydev_nouveau_filter_private_message_button' ); /** * Redirect to the send message when the user logs in * */ function buddydev_redirect_to_send_message_on_login() { //make sure it is our url set in previous step if ( ! is_user_logged_in() || empty( $_GET['message-redirect'] ) ) { return; } //redirect to PM $user_id = absint( $_GET['message-redirect'] ); //let us make sure that user exists $user = get_user_by('id', $user_id ); //can not PM to invalid user //also you should not send message to yourself if ( ! $user || $user->ID == bp_loggedin_user_id() ) { return ; } $url = bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r=' . $user->user_login ; bp_core_redirect( $url ); } add_action( 'bp_template_redirect', 'buddydev_redirect_to_send_message_on_login' );
Let me know if it works or not.
Regards
Ravi - Ravi on January 15, 2020 at 5:51 am in reply to: [Resolved] Finding BP mail notification language files #27348
Hello Carsten,
Thank you for the acknowledgement. I have tried to find ‘You have unread messages’ string into BuddyPress and It shows empty result. There might be chances that this is coming from other plugin.
Please share a screenshot and let me know if there is other message regarding plugins you are using.Regards
Ravi - Ravi on January 14, 2020 at 5:06 am in reply to: [Resolved] Finding BP mail notification language files #27324
Hello Carsten,
Thank you for posting. In backend Email section search for ‘[{{{site.name}}}] New message from {{sender.name}}’ this is the email BuddyPress use for message templating for unread message. Please check and let me know if it works for you or not.
Regards
Ravi Hello,
Currently BuddyPress does not allow editing inactive user in dashboard.You can still edit the user’s profile from front end if you know their username.
Visit yoursite.com/members/member_username and edit their profile as you please.
Regards
RaviHi,
Thank you for the question. Can you please try after activating the account?.
Regards
Ravi- Ravi on January 8, 2020 at 11:15 am in reply to: [Resolved] Buddypress/BBPress – restrict forum access #27267
Hello Nik,
Thank you for sharing your feedback. I am glad that I could help.
Regards
Ravi - Ravi on January 8, 2020 at 10:47 am in reply to: Setting for Menu name for Buddyblog and Blog Categories for Groups #27263
Hello Mark,
You can change label using “Poedit” software used for translating. Open BuddyBlog ‘buddyblog-en_US.po’ file in this and search for “Blog <span>%d</span>” and add new translation for this. and update.
New label will be show to the tab now.
Regards
Ravi - Ravi on January 8, 2020 at 10:34 am in reply to: Buddyblog & Categories for Groups – Posts list loop template issue #27262
Hello Mark,
Thank you for posting. You can override in given manner.
For BuddyBlog
Copy template form
‘wp-content/plugins/buddyblog/template/buddyblog/posts.php’
to
‘wp-content/themes/twentyseventeen/buddyblog/posts.php’
For Blog category for groups replace ‘buddyblog’ with ‘bcg’
And change template while loop with your theme template index.php or archive.php
Check the url where I have modify loop with theme
https://gist.github.com/raviousprime/7cab3bb232e49ad288bad39204013d2b#file-posts-php-L33
Regards
Ravi - Ravi on January 8, 2020 at 10:10 am in reply to: [Resolved] Buddypress/BBPress – restrict forum access #27261
Hello Nik,
Thank you for the acknowledgement. I am glad that I could help. BBPress donot provide filter to add feedback message. But you can redirect user to forum archive page instead.
add_action( 'bbp_template_redirect', function() { if ( bbp_is_single_forum() && ! bbp_user_can_view_forum() ) { bbp_redirect( bbp_get_forums_url() ); } } );
Regards
Ravi - Ravi on January 7, 2020 at 7:09 am in reply to: [Resolved] Buddypress/BBPress – restrict forum access #27240
Hello Nik,
Thank you for posting. Check the following gist repo it might help you.
https://gist.github.com/raviousprime/05ff9d83d4a76a23ef0ea3a9200ef364
Regards
Ravi