Replies
- This reply has been marked as private.
- Ravi on November 5, 2019 at 1:29 pm in reply to: [Resolved] Add "featured" content at top of "community activity update" page #26276
Hello
Try this code
add_action( 'bp_before_directory_activity', function() { // Replace item id by your user id. I am assuming logged in user id. echo bp_core_fetch_avatar( array( 'item_id' => 114, 'type' => 'full' ) ); echo '<p>Employee of the month</p>'; } );
- Ravi on November 5, 2019 at 6:53 am in reply to: [Resolved] Add "featured" content at top of "community activity update" page #26264
Hello,
Thank you for posting. If you want to show user image before activity directory. You can use the following code.
add_action( 'bp_before_directory_activity', function() { // Replace item id by your user id. I am assuming logged in user id. echo bp_core_fetch_avatar( array( 'item_id' => bp_loggedin_user_id(), 'type' => 'full' ) ); } );
Regards
Ravi Hi Irene,
Thank you for the reply.I have checked and I can seethe issue. It is the conditional profile field plugin which is causing the error.
Please make sure that you do not put any condition that hides a required field. That will fix it.
You may disable conditional profile field temporary and test the same.
Regards
Ravi- Ravi on October 17, 2019 at 10:03 am in reply to: Filter post comments from group activity feed #25976
Hi Hugo,
Thank you for the clarification.My suggestion will be to ask learndash team. They are the one most probably recording the activity(BuddyPresss does not associate any blog post/comment with group).
They might have already provided a filter. If not, they should be able to easily add a filter and assist you.
Regards
Ravi - Ravi on October 17, 2019 at 5:11 am in reply to: [Resolved] Restrict BP users from viewing other's profile based on role #25964
Hello,
Thank you for posting. Please refer the url:
https://gist.github.com/raviousprime/1a1cbf1ce75b63cae787495c7dc578dbIt allows to restrict user to view others profile based on his role.
Regards
Ravi Hello,
Thank you for posting. It’s bit difficult to add BuddyPress header to MemberPress account page instead of you can add a new Nav item for “Account” for user profile and show account page content to it. Please refer this for adding new tab for content.
https://gist.github.com/raviousprime/dd4edd6875709c8d4cc9a2b9bf044652
Regards
Ravi- Ravi on October 16, 2019 at 5:07 am in reply to: [Resolved] Add new link to the BuddyPress member profile page #25945
Thank you for the acknowledgement.
Regards
Ravi - Ravi on October 15, 2019 at 5:33 am in reply to: Filter post comments from group activity feed #25920
Hello Hugo,
Thank you for posting. Please make me more clear on the following points.
1. Do you want to hide all activity created for post comments or want to hide comments on specific post type.
2. Are you looking for only hide feature or want to restrict user from creating new activity from these posttype.
3. Are you using Blog categories for groups plugin to create post.Regards
Ravi - Ravi on October 15, 2019 at 5:09 am in reply to: [Resolved] Add new link to the BuddyPress member profile page #25919
Hello,
Thank you for posting. Please refer the following link:
https://buddydev.com/add-extra-links-to-buddypress-user-profile-menu-buddypress-group-menu/It will guide you how to add extra link to user profile menu and group menu.
Regards
Ravi