Hi @sprocketbuddy,
Take a look at this plugin by @imath;
https://github.com/imath/altctrl-public-group
I believe it goes along with your needs. He found rather than hacking/rewritting permission things for private groups that it was easier to utilize a public group and just lock it down with more controls.
There’s a demo here;
Cheers
Private group options are
- Only users who request membership and are accepted can join the group.
- This group will be listed in the groups directory and in search results.
- Group content and activity will only be visible to members of the group.
To modify option 3, you can code something.
Read from here.
I want to change privat group setting. Its third option should work like public group. I want Group content and activity will be visible to any site member of private group. Is there any way to change this setting eithrt from admin or using coding?
I want to show the content of private group like public group.
Hi is any way we can limit the private message to friends only?
I had my first spam message today!
Update.
– The group list private/hidden can now be seen in the edit mode of the topic. Although the group stops access to actually posting the topic onto the group the users doesn’t have access to. So as far as I can tell, although direct url access I haven’t tested, the user cannot read the private forums, topics from a group.
things that eed to be resolved
– removing the groups list forums from the edit mode as showing all the private and hidden group on the site isn’t ideal.
– the user can now see and view any private forums that are in non-group forums.
– possible direct url access to the group forums.
Hello,
I was experiencing the same issue, although this is quite an old topic now, I thought I would add my bit.
– So site admin gets to see all the topics, and forums from all groups types without issue
– normal user just see’s the public groups on their profile. – fine for someone that is viewing their profile but not for the user, who would like to see all relevant stuff from the site on one place.
– I have found adding the capability to read private topics, and hiddden topics to the subscriber role sorts out the problem. Using the “members” plugin to scope the roles out.
This is after building a clean site and going through all these setups to ensure it was not custom development that has caused any issues.
– So now I need to now if the user can now see all private forums/topics from all hidden groups / private groups at any point. This would obviously be a major problem for users with private content.
I will look into this further, but it is frustrating that these points are not covered in bbpress setup as a few lines of information on this would have cleared up this issue straight away. I do value the fact everyone is doing this in their spare time though.
Do you have the private messages component activated?
Okay I managed to create a add friend button using some code found on this website.. but im still a little stuck on creating a send private message button? any help would be great! thank you!
Hello does anyone know how to display links on wordpress post pages for the author of the posts buddypress profile link, send the author a private message and add friend with an if statement to check that the user isnt the author and if so echo nothing?
Would be extremely helpful!
Thank you!
WordPress Version 4.4.3
BuddPress Version 2.4.3
link – http://dev.inclusivetech.net/hammydowns/
Although you need to be logged in to see the button on the listings page.
Ok so obviously I have researched this matter on these forums before and have found useful
advice that i have used to make the button work. The one issue I am having trouble with
is pre-filling the messages subject field with the title of the item they wish to
message the user about.
The link works well and the user(Send To) field that the message is being sent to is correctly filled in after clicking on the button to message that person, similar to visiting a members profile page and then clicking private message.
I created the bp-custom.php file to achieve putting the link on the listings page. The code in there is as follows:
function bp_custom_get_send_private_message_link($to_id,$subject=false,$message=false) {
//if user is not logged, do not prepare the link
if ( !is_user_logged_in() )
return false;
$compose_url=bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?';
if($to_id)
$compose_url.=('r=' . bp_core_get_username( $to_id ));
if($subject)
$compose_url.=('&subject='.$subject);
/*if($message)
$compose_url.=("&content=".$message);*/
return wp_nonce_url( $compose_url ) ;
}
//for auto populating message content
add_filter(‘bp_get_messages_content_value’,’bp_custom_message_content_value’);
function bp_custom_message_content_value($content){
if(!empty ($content))
return $content;
$content=$_REQUEST[‘content’];
return $content;
}
Again this works well but for some reason this line of code does not seem to be effecting my messages
subject field at all. $compose_url.=(‘&subject=’.$subject);
I am calling the function correctly and the resulting http address is http://dev.inclusivetech.net/hammydowns/members/admin/messages/compose/?r=tvolmari&subject=Leather+Wallet&_wpnonce=181a9404ae
so I can see the subject title is being passed but it won’t populate my messages subject field.
Does anyone have any possible advice on how to solve this??? Or maybe a least a new direction
I should start to look at to figure it out? I’m starting to run out of idea’s.. haha
Any help would be appreciated thx
Hi, to my understanding currently when installing Buddypress on a multisite subdomain installation groups that are hidden or private on one subdomain are public on another subdomain by default. Can someone help me see the logic or could this be changed for future releases? If I have a hidden group should it not be hidden on all subdomains as that is the purpose otherwise I would make them public. Is this difficult to implement or not the intention of Buddypress?
I was using the code example at https://codex.buddypress.org/developer/bp_user_query/#code-examples and found it works great for removing users from the Member’s Directory list based on an xprofile field.
However, when I change the order using the default Order By dropdown it seems the user that is removed comes back. I’m using the 2014 theme and default BP templates. Is there something else that needs to be done to get that to persist?
Debug wise, I’ve tried add
The POST source from Firebug below mentions a couple things about scope and filter but I’m not sure if that’s the place to look and why the action bp_before_directory_members doesn’t seem to fire on the Order By update:
action=members_filter&cookie=bp-activity-oldestpage=1&bp-members-scope=all&bp-members-filter
=active&object=members&filter=active&search_terms=&scope=all&page=1&template=
Thanks!
function bp_custom_get_send_private_message_link($to_id,$subject=false,$message=false) {
//if user is not logged, do not prepare the link
if ( !is_user_logged_in() )
return false;
$compose_url=bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?';
if($to_id)
$compose_url.=('r=' . bp_core_get_username( $to_id ));
if($subject)
$compose_url.=('&subject='.$subject);
/*if($message)
$compose_url.=("&content=".$message);*/
return wp_nonce_url( $compose_url ) ;
}
//for auto populating message content
add_filter(‘bp_get_messages_content_value’,’bp_custom_message_content_value’);
function bp_custom_message_content_value($content){
if(!empty ($content))
return $content;
$content=$_REQUEST[‘content’];
return $content;
}
WordPress Version 4.4.3
BuddPress Version 2.4.3
link – http://dev.inclusivetech.net/hammydowns/
Although you need to be logged in to see the button on the listings page.
Ok so obviously I have researched this matter on these forums before and have found useful
advice that i have used to make the button work. The one issue I am having trouble with
is pre-filling the messages subject field with the title of the item they wish to
message the user about.
The link works well and the user(Send To) field that the message is being sent to is correctly filled in after clicking on the button to message that person, similar to visiting a members profile page and then clicking private message.
I created the bp-custom.php file to achieve putting the link on the listings page. The code in there is as follows:
function bp_custom_get_send_private_message_link($to_id,$subject=false,$message=false) {
//if user is not logged, do not prepare the link
if ( !is_user_logged_in() )
return false;
$compose_url=bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?';
if($to_id)
$compose_url.=('r=' . bp_core_get_username( $to_id ));
if($subject)
$compose_url.=('&subject='.$subject);
/*if($message)
$compose_url.=("&content=".$message);*/
return wp_nonce_url( $compose_url ) ;
}
//for auto populating message content
add_filter(‘bp_get_messages_content_value’,’bp_custom_message_content_value’);
function bp_custom_message_content_value($content){
if(!empty ($content))
return $content;
$content=$_REQUEST[‘content’];
return $content;
}
Again this works well but for some reason this line of code does not seem to be effecting my messages
subject field at all. $compose_url.=('&subject='.$subject);
I am calling the function correctly and the resulting http address is http://dev.inclusivetech.net/hammydowns/members/admin/messages/compose/?r=tvolmari&subject=Leather+Wallet&_wpnonce=181a9404ae
so I can see the subject title is being passed but it won’t populate my messages subject field.
Does anyone have any possible advice on how to solve this??? Or maybe a least a new direction
I should start to look at to figure it out? I’m starting to run out of idea’s.. haha
Any help would be appreciated thx 🙂
Yes, just doubled checked, it’s in the correct place and the private and hidden groups are still there.
Thanks @shanebp. Yes, I contacted LearnDash over night and they suggested we look BuddyPress.
They said:
“I would look into BuddyPress. This has private groups and you can associate courses with different groups as well as allow each group have a private forum. You can find our add-on for BuddyPress here:
http://support.learndash.com/buddypress/”
I had a question about associating courses with different groups. I could only associate a course with 1 group. Is it possible to associate a course with multiple groups?
We would have the course Creative Writing
And multiple groups that we’d like to associate with it. Is that possible?
What does the association actually do? Do we need to associate the group with a course?
Thanks for your help!
Have you tried making the groups Private?
Have you asked LearnDash?
They have a BP extension, afaik.
And may be able to make suggestions.
I’ve tried doing that and removing everything related to the Private and Hidden options, but it hasn’t changed on the group creation page, still exactly the same.
Hi,
I’m looking for something like this too. So far, the closest thing is attached an audio file to the private message. Speakpipe is good but only directly to the owner of the site. It will be nice if there is a plugin to exchange private voice message.
Anyone?
Further testing:
– I’ve changed to TwentyFifteen theme
– deactivated all plugins except for BuddyPress and bbPress
I still can’t see topics that the user should be able to see. And they can access a private forum they aren’t a member of.
Where do I even begin to figure out what is going wrong with this site?
I just ran 2 forum repairs:
– Recalculate private and hidden forums
– Repair BuddyPress Group Forum relationships
and now I have a different problem. I’ve actually been experiencing this problem on and off now for about 2 weeks and I’m starting to pull my hair out!
So now if I go to the forum list (at the category level) I can see that there are topics in the child forums. But when I click through to the child forum it tells me “Oh bother! No topics were found here!” This is for a group that the user is a member of. There are definitely topics in that forum.
If I change the user from a Participant to a Moderator they can see the topics.
If I change them back to a Participant and then toggle the forum from private to public to private they can see the topics again. I have done this toggling of forum visibility several times over the past week and it only lasts for a day or two, then I’m back at this problem.
Create a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\groups\create.php
Then, in your template overload, remove the html for the Private and Hidden options.
HI. I have the following structure:
– Private Group
– – Private Forum Category
– – – Private Forum
– – – Private Forum
– – – Private Forum
So, a private group that has a forum. The top level forum is of type category, then the child forums are all private forums.
If a user that is not a member visits the Group or Forum Category they cannot see anything and are shown the option to request membership.
But if they go directly to the child forum they can access it and post. Even though they are not a member of the group.
I have the latest versions of WordPress, BuddyPress and bbPress as at today.
Obviously it’s an issue if non-members can access a private forum so I’d really appreciate any help to resolve this issue, thanks!
Hi,
In the privacy options on the group creation page, I’d like to have the private and hidden group options taken out, as I only want users to have their posts public. How would I go about doing this?
http://thenetwork.cavcaventures.org
I’m on WordPress version 4.5.1 and BuddyPress version 2.5.2