Re: Dont reply in activity loop if the user is not a member of that group
algunas cosas:
[es tan temprano – no puedo escribir mi respuesta en castellano]
1. You should not change the core BuddyPress files (e.g. bp-activity-templatetags.php). If you do this, you will make it much harder to upgrade your site.
2. If you want to show all activity items on the home page (including the hidden items), you can do this in your theme files (without changing the BuddyPress core files):
– Have you built your own child theme? If not, check the ‘docs’ section of this site for information
– In the activity_loop file in your child theme, include the parameter (‘show_hidden’=>true) in the call to bp_has_activities()
3. No, it’s not a bug to let you reply to an activity item:
– The default logic for privacy / hidden decides whether an activity item is shown in the stream. By default, private / hidden items wouldn’t be shown. You have over-ridden this logic, by changing the template tag to show all items regardless of whether they are hidden or not
– Once an item is shown, you can reply to that item (unless it is a blog or forum item with replies disabled)
4. If you want to show hidden / private items, but disable replies to them if the member is not in the group:
– Try adding an additional check for group membership in the activity-meta section of entry.php in your default theme. I’m not sure if there is enough information in the activity item to let you do this