Replies
- Brajesh Singh on July 25, 2018 at 11:54 pm in reply to: How add new type notification for BuddyPress? #16498
Hi Max,
Welcome to BuddyDev.You can use
bp_notifications_add_notification();to add new type of notifications. Please do note that you will need to register a dummy component and notification callback to make it render the notification.
From your post, It seems you are using some kind of task management plugin. My suggestion will be to ask the developer to add it. It should be a very simple task as they might have some of the notifications already there.
Regards
Brajesh Hi Audiomonk,
You can use
get_edit_profile_url( $user_id)to get the profile edit link.
In your case, you can use the following code
echo "<li><a href='" . get_edit_profile_url( get_current_user_id() ) . "'>" . __( 'Edit my profile', 'clean-login' ) . "</a></li>";Regards
Brajesh- Brajesh Singh on July 25, 2018 at 2:08 pm in reply to: Mediapress uploader shortcode – Uploading Temporarily disabled? #16492
Hi George,
Will it be feasible for you to share the temporary login details with me.It is very strange that the shortcode is behaving this way.
- Brajesh Singh on July 25, 2018 at 2:07 pm in reply to: [Resolved] Hide a specific post category in the activities #16491
Please put the following code to your bp-custom.php
/** * Disable recording posting from a specific category to BuddyPress activity * * @param bool $enabled allow posting? * @param int $blog_id blog id. * @param int $post_id post id. * @param int $user_id user id. * * @return bool */ function buddydev_disable_category_post_from_activity_recording( $enabled, $blog_id, $post_id, $user_id ) { $category_id = 165; $taxonomy = 'category'; if ( has_term( $category_id, $taxonomy, $post_id ) ) { // I could use has_category() but has_terms can be a better example for future customization. $enabled = false; } return $enabled; } add_filter( 'bp_activity_post_pre_publish', 'buddydev_disable_category_post_from_activity_recording', 10, 4 );It will disallow any future recording of posts from that category. It won’t change the activity for already recorded posts though.
Please test and let me know if it works for you or not?
Regards
Brajesh - Brajesh Singh on July 25, 2018 at 1:50 pm in reply to: Limit private messages for PaidMembership Users #16488
Hi Velli,
We don’t offer any solution for the above combination.We do have a message rate limiter(It will not work with Nouveau template).
https://buddydev.com/plugins/bp-private-message-rate-limiter/You may want to customize it or hire someone to do it for you.
Regards
Brajesh - Brajesh Singh on July 25, 2018 at 1:48 pm in reply to: [Resolved] Hide a specific post category in the activities #16487
Hi Velli,
Please share the post type(is it post or a custom post type?) and category(term) id.Regards
Brajesh - This reply has been marked as private.
You are welcome.
Please be aware that using BP better Message will cause a lot of stress on database(too many queries per page in the current version).
- Brajesh Singh on July 25, 2018 at 1:13 pm in reply to: [Resolved] Featured Member: time limit option #16483
Hi Herve,
I will do a re-test today and will get back to you.PS:- In future, If you do not want to wait for the cron to test, you can use the cron control to manually trigger and call the hooked function.
- Brajesh Singh on July 25, 2018 at 1:09 pm in reply to: [Resolved] Xprofile show age in "members-loop" #16482
Hi Theo,
I am sorry I could not reply earlier.Please use this
<?php echo xprofile_get_field_data( "Age", bp_get_member_user_id() );?>For members loop. The problem with it does not seem to be applying the display filter.
Using xprofile_get_field_data works.
Regards
Brajesh