I asked a bit too soon… A little more searching and I found your explanation here. Setting the default component seems to have done the trick. Thanks for the code samples!
Hi @danbp,
This is the situation:
I’m not asking you to act privately. I’m simply trying to give you a password to be able to log in because, if not, you will need to pay a membership fee to log in.
Sorry, i don’t act privately on user’s site.
If you’re unable to solve your issue, hire somebody who can help you on BP Job Board.
So I’m using the ‘messages_message_before_save’ action to block a user from sending private messages to certain members. This function isn’t being called if the sender has already started a conversation with the user that is blocking them.
Is there another hook that should be used?
Hi,
I’m implementing a custom AJAX handler which calls messages_new_message() to send a private message on behalf of a user.
This sort of works, in that the message is getting sent, and email notification triggered etc. However, none of my code in the callback placed after the messages_new_message call gets executed.
I tried to pin it down and it seems like something’s going wrong at the do_action line right before messages_new_message’s return:
do_action_ref_array( 'messages_message_sent', array( &$message ) );
If I insert an error_log call above that line, it gets executed. If I insert one after, it doesn’t.
I had a look at each of the actions added to that hook in the BuddyPress source and couldn’t find anything triggering a redirect or calling wp_die() or anything, and I checked that no other plugins I have installed are hooking onto that.
I’m a bit stumped. Is there some reason that calling messages_new_message() from an AJAX handler would fail, or some way I can debug this further?
Thanks in advance for any help!
Your snippet use some deprecated code. (bp_is_page( BP_MEMBERS_SLUG )
since 1.8)
Here a similar one who let you make BP almost private…
function bpfr_guest_redirect() {
global $bp;
// enter conditional here
if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_members_component() || is_bbpress() ) {
// not logged in user - user will be redirect to any link to want
if( !is_user_logged_in() ) {
//wp_redirect( get_option('siteurl') ); //back to homepage
//wp_redirect( get_option('siteurl') . '/intranet' ); // back to whatever page
wp_redirect( get_option('siteurl') . '/register' ); // back to register page
}
}
}
add_filter( 'get_header', 'bpfr_guest_redirect', 1 );
Hi guys,
I’m currently rocking a Social Network Site on WordPress.
Link: netz-mitteldeutschland.de
Everything is fine except this one big fat problem: Some of the post types are not showing up when the user is not logged in.
The pourpose of the site is that user can log in if they want to. There is some paid membership option to let the user gain access to different features like submitting jobs or submitting their company so that it can be displayed in the listings. This is acomplished via the s2member – plugin (free version)
When the user is logged out he/she should see the normal homepage and when logged in an overview of all functions of the network, which is functioning just fine as well.
On the homepage there should be a display of the most recent posts, joblistings and partner companys as well. I use a carousel to accomplish this. In my admin settings I need to check the post type for them and it works all fine when logged in but when logged out I always get an “no items found” error where the listings should be.
It’s kinda strange since these post types are not limited or marked as private or need some membershiplevel to access them. But they are showing up in my sidebar without a problem.
I searched a long time in the support forums of both BuddyPress and WordPress but did not find an solution for my problem.
I already tried to
– disable the BP Simple Privat Plugin
– viewing the site in different browsers (Google Chrome, Opera, Safari, IE, Firefox)
– checked the gerneral and read/write settings
– checked the buddypress settings for site tracking
– checked the visibility of each individual site
– save the permalinks again
– cleared the cache
– deactivated the plugins
– switched to another theme
but nothing works. Has anyone an idea?
Thanks for the help.
System Info:
Wordpress Version 4.6.1
Plugin Info:
BuddyPress Version 2.7.2
BP Simple Private Version 1.3
s2Memeber Framework Version 161129
Visual Composer Version 4.12.1 + Addons
Socialize Plugin Version 2.1
Theme:
Socialize Version 2.17.1 with child theme
There’s a few different ways you could go about this, there’s a few privacy plugins that will hide different aspect of the site from public view. One is BP Registration Options, this installs new member moderation (so you can choose who to allow on you site) and BuddyPress privacy, where the BuddyPress pages are all private, but the WordPress pages and posts are still public.
If that’s not private enough for you then there’s BP Simple Private which allows you to hide all aspects of your site apart from the homepage.
You could have normal users simply subscribe to a mailing list, there no need to have them as site members, then you could run the BuddyPress install as private, so that one logged in members see those pages.
Hi
We recently tried bbPress along with the bbP private groups option, and it worked well; however, it affected our theme and caused some parts of our site to malfunction. As such, we’ve had to disable bbP and this other Plugin. So, we’re going to need another option, and BuddyPress seems to be really good. Can someone confirm whether it will work in allowing us to create private group (to which we would assign users) and then assign specific groups to specific forums?
Or will we need another plugin? If so, any recommendations?
Many thanks in advance.
I know I’m missing something easy here but cannot find it…
People only join my site through a Woocommerce order. Once they are joined they can request to join Private groups in BuddyPress. It looks like when someone signs up the billing_first_name and billing_last_name from Woo copy to the “Name” field in WP, but only the billing_first_name goes to the “Name” field in the BuddyPress Extended Profile.
How can I get the BP Extended Profile name to use first and last name and match WP and Woo?
Thanks,
Andrew
Hem… you’re free to use BuddyPress to your needs, but i guess there is a moment where you reach the software limit.
If you publish private activities in the public activity stream, what do you expect ? To compromise privacy or the way the software works ?
As with 99,9% of software, you have to answer by Yes or No to each option you find. For groups, you have 3 options: 1 OR 2 OR 3 and not a bit of each, depending the current wind speed ! It’s private or it’s public, but not Y and N.
So far i know, hidden group members see the hidden group activities when they are on their group activity page. A group is hidden means that “public” can’t see/access to it, so you can’t see those activities on the site activity page.
Hello @danbp
I tested it and you are right. 🙂 Every group post is visible in the “All Members” section except for private oder hidden groups.
And my groups are hidden. Is it possible, to let hidden groups post into “All Members”?
Thanks and greetings!
I am setting up the user access management, and i would like to restrict group admin viewing their own group at the backend and not all of them. Is there any way to set this up? For instance:
Group 1 admin can only view Group 1’s details and etc
Group 1 admin cannot view Group 2, Group 3 and etc details
My current Group admin in Group 1 can view all the group and hope I could get some help 🙂
Cheers
Hi,
I would out the Private Message Button in a WordPress Page that I use as Dashboard for the members of my website.
I would be able to create a Shortcode to Add the “Private Message” Button to the make to make any member able to send me a Private Message directly to me (only to me from the Dashboard).
1 – The first problem that I have is that I don’t know how to make the button to make eveyrbody able to contact me.
2 – I would use it like a shortcode to insert it everywhere it is necessary.
Please, how can I do it?
I really need support to do it.
Kind regards
G. Aloe
I had the same issue, and since I couldn’t find a solution, I had to make one myself. I thought I’d share.
Add the following to your functions file
function fix_private_message_login() {
Global $bp;
if (isset($bp->canonical_stack['component']) && $bp->canonical_stack['component'] == 'messages' && !is_user_logged_in()) {
header('Location: ' . get_site_url() . '/wp-login.php?redirect_to=' . $_SERVER['REQUEST_URI']);
die();
}
}
add_action('bp_do_404', 'fix_private_message_login');
If you’re admin, you will most likely be redirected to the admin panel after login (instead of the message), however for all other users, it will redirect you to the message.
Hi @excel1,
such URL is odd and shouldn’t appear on a correctly install setup:
example.com/index.php/beispielbeitrag/
In brief, your install WP at the site root which is: exemple.com
BP is a wp plugin and by the way, will also be at the root.
And as wp is also a blog, that blog is also at example.com
(on a page defined in wp’s Read settings).
This means that you can create a page for the blog and name it “besipielbeitrag” and asign this page to posts in WP settings. And make it private or whatever.
BP members or groups will be at exemple.com/members/
or example.com/groups/
and the users at example.com/members/USERNAME/
index.php is one of the files in a theme, but has nothing to do with BP pages or a dedicated blog page.
Also, if emxampel.com
and example.com
are 2 URL for the same site, or if you installed wp in emxampel.com and BP in example.com, BP won’t work.
I would recomend you to read attentively the install guide from the begin.
Hello BP-Supporters,
I set up a Blog on a private link: http://emxampel.com
I changed my Blog url / place to: http://example.com
All worked without one:
Buddpress worked on http://example.com/beispielbeitrag/
But my URl changes i need to change perma link:
http://example.com/index.php/beispielbeitrag/
all worked but buddypress dont took these URL on the groups and members.
Right now, a logged in wp user can see forums that he cannot access. I want the list of forums to show only forums that this user is a member of. If I set the forum to “hidden” it doesn’t show up at all. If I set the forum to “Private” it still shows up in the list of forums.
If the user is not logged in, it shows the public forums but says the user must be logged to create a new topic or reply to a topic. This I am fine with, but if the user is logged in, I don’t want them to be aware of forums that they cannot participate in.
How do I configure this?
Each group has the option to have an associated forum.
Groups can be public, private or hidden.
There can also be site-wide or ‘general’ forums.
Forums require the use of an additional plugin: bbPress.
I also want people who are workshop leaders to be able to see and post to any forum.
You make them members of all groups.
If you’d rather not, then you’ll need to write some custom code.
Hi,
I have installed a buddypress for an educational community in catalan lenguage. I added all the students with CSV. Everything seems to works great.
Some teachers ask me if there is an option to filter all the private inbox messages by user. We realise that if we search a user name in the inbox search, It doesn’t show all the messages with its user, just some of them.
I don’t know is the problem can be related wht the users names that some of them contains accents. But the problem persist with all kind of names.
Is there any way to simplify this search option or to solve this problem?
We are using the last version of wp, extensions and twenty sixteen theme.
Thanks a lot
For option 1 it sounds like you want to set up a private network – not allowing non-logged in users to view profile details etc.
There’s a few options as to how to go about this, here’s a few:
http://buddyuser.com/category/plugin-review/private-network
For option 2, one option might be to display the registration form in a widget area on the front page, it’s possible to only display this widget for logged out users:
http://buddyuser.com/plugin-review-buddy-registration-widget
Hi,
Is there a way to set your profile pic to private – or to lock it – but only let specified members see it?
I’m really hoping there is!
Andy