Replies
Hi Keith,
BuddyPress Activities can have only 2 privacy either visible to all or only visible to the poster(It may change if the Core developers decide to add ebtetr privacy in future).For MediaPress, if an item is accessible to all(including non logged), Its activity is set public otherwise it is set as private.
What you are seeing is the correct listing for a logged in users only gallery.
Regards
BrajeshHi Tosin,
I won’t be able to look into it and assist as we have a moderation plugin coming this week and I am investing my time on that. Once the plugin is available and you still feel you need to use this code, Please feel free to post back and I or one of our team members will help.At the moment, I am just trying to avoid any duplicate effort.
Thank you
Brajesh- Brajesh Singh on April 16, 2018 at 5:06 pm in reply to: [Resolved] Prevent buddypress unfollow function for specified users #14536
Marking it closed in favour of
https://buddydev.com/support/forums/topic/prevent-buddypress-unfollow-function-for-specified-users-2/- This reply was modified 8 years, 3 months ago by
Brajesh Singh.
- This reply was modified 8 years, 3 months ago by
- Brajesh Singh on April 16, 2018 at 5:05 pm in reply to: [Resolved] Prevent buddypress unfollow function for specified users #14535
Please use the following code to hide the button
/** * @param array $args button args. * @param int $leader_id leader to be followed. * @param int $follower_id follower id. * * @return mixed */ function buddydev_hide_unfollow_button_for_users( $args, $leader_id, $follower_id ) { if ( 'following' !== $args['id'] ) { return $args; } // user ids who can not be unfollowed. $special_user_ids = array( 1,2,3,67 ); if ( in_array( $leader_id, $special_user_ids ) ) { $args['id'] = ''; } return $args; } add_filter( 'bp_follow_get_add_follow_button', 'buddydev_hide_unfollow_button_for_users', 10, 3 );It only hides the button but does not do anything else to stop unfollowing.
Regards
Brajesh - Brajesh Singh on April 16, 2018 at 4:42 pm in reply to: [Resolved] "Links xprofile" & NEW PLUGIN #14533
Hi Julia,
That was expected. Specially on the edit page. BuddyPress doe snot give any specific error on the profile edit page. That’s why I asked you to put a message in the description.The better and accessible way will need too much code for a simple task like this.
2. sure, You can use any of the available javascript plugins to do that. I don’t have enough time to find a library and post the code. I will leave it upto you to find and use it.
Regards
Brajesh - Brajesh Singh on April 16, 2018 at 4:38 pm in reply to: BP Limit Friends Request + Rate Limit Private Message + Rate Limit User Activity #14532
Thank you.
- Brajesh Singh on April 16, 2018 at 4:38 pm in reply to: [Resolved] Hide current logged in user and admin #14530
You are welcome.
- Brajesh Singh on April 16, 2018 at 4:37 pm in reply to: [Resolved] “Write something to {displayed_user_name}” disabled #14529
HI Julia,
If it is not there, please Contact your theme developers. That is the most common place to have these.Regards
Brajesh - Brajesh Singh on April 16, 2018 at 4:23 pm in reply to: [Resolved] Redirect admin URL profile and setting profile to 404 & dropdown profile tabs #14528
Hi Julia,
I am not sure what your questions are. Can you please help me understand them better.A few things that I understood, I will answer here:-
Profile Tabs:- The navigation is managed by your theme or BuddyPress template pack. It can be vertical or horizontal based on which theme you are using. There is not much that we can do on our part.
Reload too many time:- I am not sure what do you mean by this? Why will that be an seo issue? Is it about BuddyPress or one of our plugins?
Thank you
Brajesh Hi David,
Welcome to BuddyDev.A. What is the criteria for redirecting users from profile to author page?
1) A logged in user should be able to visit their own profile?
2) Other visiting a user’s profile get redirected to author page for the displayed user?B. There is no such plugin available. You are looking for something like google circle. We do have a similar plugin but it is unfinished. We did it by creating custom tables for labelling Friend groups. The Labels are specific to Users.
C. That will be very easy. If you can get the point B working, a simple pre_get_posts filter like above will do it.
Also, BP profile Visibility or Blog Categories for Groups won’t be much help with this.
Best Regards
Brajesh