Replies
- Brajesh Singh on April 17, 2019 at 3:25 pm in reply to: [Resolved] Activity Sitewide stream filter posts by category #22375
Hi Plamen,
Thank you.Please use the code from my last reply. I am addin git below too
function buddydev_disable_activity_blog_comment_recording_conditionally( $enabled, $blog_id, $post_id, $user_id, $comment_id ) { // use $post_id to decide. // set $enabled= false; to stop recording comment. if ( ! in_category( 'community', $post_id ) ) { $enabled = false; } return $enabled; } add_filter( 'bp_activity_post_pre_comment', 'buddydev_disable_activity_blog_comment_recording_conditionally', 20, 5 );It wills top recording activity for comments which are not on posts from ‘community’ category.
Regards
Brajesh - Brajesh Singh on April 17, 2019 at 3:22 pm in reply to: [Resolved] The CSS for how (BuddyDev) BP Deactivate Account page is shown on Buddypress. #22374
Hi Kristian,
Please see
https://buddydev.com/support/forums/topic/the-css-for-how-the-buddyblock-page-is-shown-on-buddypress/#post-22372This plugin does not come with any css. For normal theme it works as it inherits the standard styles. In case of youzer, they add very specific css.
They can add the css for it too if they want. We are unable to provide any css for it.
Regards
Brajesh - Brajesh Singh on April 17, 2019 at 3:20 pm in reply to: [Resolved] The CSS for how the BuddyPress Username Changer page is shown on Buddypress. #22373
Hi Kristian,
This plugin does not contain any css. It inherits from your current theme.We are unable to assist you with Youzer as the issue lies with Youzer.
Please see my reply here.
Regards
Brajesh - Brajesh Singh on April 17, 2019 at 3:17 pm in reply to: [Resolved] The CSS for how the BuddyBlock page is shown on Buddypress. #22372
Hi Kristian,
I am sorry, we do not have any plan to support Youzer.Most of our plugins(except a few major ones), do not include css and they simply inherit from your current theme. Youzer does things in a non standard way making the compatibility an issue.
You will need to get the support from youzer developers as they are the one who override with specific styles.
The last time I checked it 3 weeks ago on a client’s site, their css was too much specific.
Regards
Brajesh - Brajesh Singh on April 17, 2019 at 3:06 pm in reply to: [Resolved] Activity Sitewide stream filter posts by category #22368
Hi Plamen,
Thank you for the kind words.The above code is a sample and you can modify it. For example, I am making a change to allow recording comment from ‘community’ category.
function buddydev_disable_activity_blog_comment_recording_conditionally( $enabled, $blog_id, $post_id, $user_id, $comment_id ) { // use $post_id to decide. // set $enabled= false; to stop recording comment. if ( ! in_category( 'community', $post_id ) ) { $enabled = false; } return $enabled; } add_filter( 'bp_activity_post_pre_comment', 'buddydev_disable_activity_blog_comment_recording_conditionally', 20, 5 );If you can tell me which categories to allow or disallow, I can post the updated code too.
Regards
Brajesh Thank you. Will update here.
- Brajesh Singh on April 17, 2019 at 2:53 pm in reply to: [Resolved] Pics not showing when setting Public View in Settings #22364
Hi Daniel,
Thank you for the update. I am glad you were able to get it work.Best regards
Brajesh - Brajesh Singh on April 17, 2019 at 2:51 pm in reply to: [Resolved] Activity Sitewide stream filter posts by category #22363
Hi Pamen,
I am sorry for the delayed reply.After reding through the codes, I am assuming our goal here to to stop recording comments in certain cases?
If that is the case, BuddyPress provides us with another filterbp_activity_{$post_type}_pre_commentwhere for normal posts the $post_type is ‘post’.
So we can attach to ‘bp_activity_post_pre_comment’.Here is an example code
function buddydev_disable_activity_blog_comment_recording_conditionally( $enabled, $blog_id, $post_id, $user_id, $comment_id ) { // use $post_id to decide. // set $enabled= false; to stop recording comment. return $enabled; } add_filter( 'bp_activity_post_pre_comment', 'buddydev_disable_activity_blog_comment_recording_conditionally', 20, 5 );You may adapt it from there.
Hope it helps.
Regards
Brajesh - Brajesh Singh on April 17, 2019 at 10:20 am in reply to: Simple QUESTION – WordPress / buddypress after suscribe #22356This reply has been marked as private.
- Brajesh Singh on April 17, 2019 at 10:17 am in reply to: [Resolved] Multiple sites/domains, same userbase, & simultaneous updates #22355
Hi,
The answer to all the questions is “yes”.Since you already posted a relevant plugin for login sharing, I will suggest using it and see if that fits you need or not?
The other way around is using a backup plugin and then keep syncing from 1 to another(db+files both) as you need it both way.
Regards
Brajesh