Hello,
I’ve noticed today that if Member A posts to a private group to which he is a member, Member B who is not a member of that private group can still see the “blurb” in the site activity stream. Is this expected behavior?
[EDIT] Mistakenly reported.
actually didn’t take it as criticism, it’s just a difficult area support forums for OS apps are run by volunteers, the ones that can answer questions effectively are more than often working pros so haven’t that much time for in depth help.
There are a few private forums or sites dedicated to BP you could try buddydev or bp-tricks? but not sure of the level of support those can offer.
Hi, I run a community and I would like to show content in my sidebar to only a select few individuals. I can’t seem to figure out how to do this. I don’t want to do it by role, I want to do it by username or id or these members are also part of a private group so I could do it that way too. I’m using widget logic to add the widget and so far I tried this
bp_is_my_profile() && bp_group_is_member(’29’)
I thought it was working as both my accounts I use as admin and part of that group can see the content but another member informed me they can not see the content.
Hi,
I would like users to have the option of adding their email address to their public profile (when I say public profile, the entire Buddypress community on my website is private), without them having to enter their email address a second time on the registration page (i.e. in a text box that I have created for email).
I wonder if there is a way of having a checkbox next to the mandatory email address field on the registration page which says something like “check to display email address on your profile page”. Failing this, as it’s a closed community and we all have each other’s email addresses, is there a way of automatically adding a user’s email address to their profile?
Thanks,
Nick
Almost forgot:
WordPress v 3.3.1
BuddyPress v 1.5.4
Is it possible to send PMs to all the members of a given group? (And if so, how?)
Outside of using groups forums, I’m trying to determine exactly how WordPress/BuddyPress actually utilizes groups.
Thanks
Hi Boone!
I used your code to show only Public groups on the groups directory page however my issue is that when people use the search box on the directory, even private groups show up! Can you please help me stop private groups from showing up in the search results as well?
Hello aces,
I ran across the code and I thought it was a “this will work with any bp install kind of thing” clearly I was wrong.
Your code worked perfectly.
Thank you.
You don’t say what your add action is hooked to ( or what the line number refers to ). Do you have a `’walled_garden’` hook in your template?
I would suggest trying the following (I use something similiar but allow access to groups and forums):
`
function sh_walled_garden()
{
global $bp;
if( bp_is_register_page() || bp_is_activation_page() )
return;
if( ! bp_is_blog_page() && ! is_user_logged_in() )
bp_core_redirect( bp_get_signup_page() );
}
add_action( ‘bp_init’, ‘sh_walled_garden’ );
`
I also substitute `add_action( ‘wp_loaded’, ‘sh_walled_garden’ );` on a different site….
`bp_init` and `wp_loaded` are “native” to buddypress/wordpress so you don’t need to create your own template hook….
This is in a bp-custom-php file – using buddypress v1.5.5 as I haven’t upgraded to 1.5.6 yet….
Hello, Iam tring to make my bp site privet with the following code snippet:
function sh_walled_garden()
{
global $bp;
if ( bp_is_register_page() || bp_is_activation_page() )
return;
if( ! bp_is_blog_page() && ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .'/'. BP_REGISTER_SLUG );
}
add_action( 'walled_garden', 'sh_walled_garden' );
I get the error:
Parse error: syntax error, unexpected ‘/’ in /hsphereXXX on line 245
Any ideas on how to fix this
Thanks
Ignore that, I had a look at the messages_new_message function and realised it should be sending a notification so I guessed the issue was I was testing using the same id for uploader and denyer, i changed to another uploader and it worked perfectly 
Thanks so much for that, it’s used within a plugin so I used:
`
function bp_send_image_denied_message($sender_id, $recip_id, $subject, $message) {
global $bp;
if ( $thread_id = messages_new_message( array(‘sender_id’ => $sender_id, ‘subject’ => $subject, ‘content’ => $message, ‘recipients’ => $recip_id ) ) ) {
bp_core_add_message( __( ‘Image Denied Message was sent.’, ‘buddypress’ ) );
} else {
bp_core_add_message( __( ‘There was an error sending that Private Message.’, ‘buddypress’ ), ‘error’ );
}
} `
and pass the required bits, the only thing it’s not doing is adding a notification item, is there an easy way to add that?
Again, thanks a lot, I would have spent ages trying to figure that out.
The function is messages_new_message()
> when an image is denied an email is sent out to the user
So you have a function or some code that does that, yes?
Then you could use parts of the below in that code or call it as a function
`
function bp_send_image_denied_message() {
global $bp;
//check_admin_referer(message_check”); // adjust if needed
$sender_id = $bp->loggedin_user->id; // moderator id ?
$recip_id = $bp->displayed_user->id; // denied image user id ?
if ( $thread_id = messages_new_message( array(‘sender_id’ => $sender_id, ‘subject’ => ‘Image Denied, ‘content’ => ‘why it was denied], ‘recipients’ => $recip_id ) ) ) {
bp_core_add_message( __( ‘Image Denied Message was sent.’, ‘buddypress’ ) );
bp_core_redirect( $bp->displayed_user->domain ); // adjust as needed
} else {
bp_core_add_message( __( ‘There was an error sending that Private Message.’, ‘buddypress’ ), ‘error’ );
}
}
add_action( ‘wp’, ‘bp_send_image_denied_message’, 3 );
`
Is there a function that can be used to send a private message?
Currently on my site when an image is denied an email is sent out to the user telling them, however this can often end up in the users spam folder, and the user can’t respond directly to the person denying the image.
What I would like to do instead is when an image is denied, automatically send a private message from the moderator to the contributor, does anyone know of a function (I tried looking through the plugin source, but couldn’t really find anything useful) or can help me do this?
Hi
I have last versions of all..
WordPress mutlisite, with buddypress and many other plugins,
one important plugin for me is WPMUdev’s Multi-domains
it allow my (future) users to register a subsite to other domains than main.
the other domains all work and point to the main site
I could create a subsite with another domain from dashboard, but not from the user front “create” page, even if another domain is shown in the dropdown, the subsite will register under the main domain. This behavious appears only when buddypress is installed.
I posted support question in the WPMUdev’s forum, and the developer VeBailovity suggested in the meantime to comment out :
`if ( is_subdomain_install() )
$domain = $blogname . ‘.’ . preg_replace( ‘|^www.|’, ”, $current_site->domain );`
lines 556-557 in /wp-content/plugins/buddypress/bp-blogs/bp-blogs-template.php
my questions are :
– why buddypress needs to force on main domain?
– if I comment out, it gives another behaviour: it tells me WordPress is already installed and does not complete the subsite creation (no admin user created)
if necessary and for reference :
– plugin : http://premium.wpmudev.org/project/multi-domains/
– in the support topic http://premium.wpmudev.org/forums/topic/multi-domain-private-and-single-sign-on-features?replies=40#post-231355
Thanks once again Hugo, you always have the solution!
I was doing the sort of digging you describe yesterday in fact and was able to find out how to add a “Follow” button which may interest users of Andy’s plugin BuddyPress Followers:
bp_follow_add_follow_button( bp_displayed_user_id() );
I don’t think this is very easy to do, if at all. The reason being groups are pretty much hardcoded to three types of membership status: public, private, hidden. You could add some checks to only permit display of the activity list page, but you’d need to somehow keep track of if the user has “joined” the group.
I say “joined” because the user will have already joined the group — but you need a secondary type of group membership. You could store such a setting in group meta.
This is the first time I’ve ever heard anyone ask to send messages without a subject. It’s mandatory.
As a workaround, you could edit the messages templates, and replace the input text box (for the subject) with a input type of “hidden”, and set value to something like e.g. “private message”. It’s not foolproof, as a smart user could still change the subject, but I get the impression you wouldn’t be that bothered in that case 
bp_member_add_friend_button() you would find that by looking in the bp-friends-tamplate.php and to find it was in that file meant looking at the members loop to see how the action buttons are handled and tracing the do_action handle back to that template file you’ll then realise ‘bp_member_add_friend_button()’ echoes bp_get_add_friend_button() with passed args so you then need to trace that function to see further how the friends button works.
In the profile we trace back to functions.php and find ‘bp_add_friend_button()’ that traces to various files, bp-friends-template.php the one of interest again.
OK i have managed to find
bp_send_private_message_link and bp_send_private_message_link()
This covers points 1 and 3 above.
Does anyone know if there is a template tag for Add Friend button?
Hi,
Ive been looking top to bottom for an answer of this question, can’t find it anywhere.
The problem: when a new user signs up to buddypress and groups that are set to public, they can already see the content.
All I am wanting to do is simply change something that ensures I can create groups with the public visibility however to subscribe to the activity feed the user needs to become a member to that particular group (like the private group but without a request to join required). It sounds like the fix would be small and simple however I cant find it anywhere, the idea is kind of like Facebook pages where once you like a page you subscribe to the updates.
Any help would be appreciated.
Thanks,
Billy
Looks like JS hiding all the buttons from this test user – though I can see all those links in source.