Thanks for the Reply. I also contacted the Theme Developer.
I was wondering if perhaps someone here could tell me where the Private Messaging files/code were in the Core Plugin folder.
In any case, Thanks
wp version – 4.2
Theme – One Community from ThemeForest
Hello All,
I’m having this issues where people can send Private Messages to each other. However, no one can REPLY to a Private Message.
This only happens when using the ONE COMMUNITY THEME, when I switched to the generic TWENTYFIFTEEN THEME then it works perfectly.
Can anyone tell me what FILES I need to be looking at? Can I just copy and paste some code? If so, then where are the necessary files located?
Any help is appreciated.
Best Regards,
-T
Actually, it won’t even show if i make the forum private. The forum has to be public for me to see it.
Hi @caniwigirl
Yes, i tried it from the back-end. The only way I can get a forum to display with a group is if I make the forum public. It will not work for either private or hidden :(.
Hi @danbp, Thanks for joining this discussion.
When I first looked into running BuddyPress on my site a couple years ago, Hidden groups did appear for members of them as outlined by BuddyPress. However, this is no longer the case.
Yes, members can access them if they have the URL for the Hidden Groups’s activity stream…
Yes, members can access them via the forums…
BUT hidden groups do not appear to members of them, moderators, admins or keymasters in any of the group directory pages or member/user profile pages or menus which link to ‘All Groups’ or ‘My Groups’. However, the group count increases to show the number of all groups, be they public, private or hidden.
From https://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/
List of Groups created in the site including time active stamp, group description, number of members and group privacy setting. Only Public and Private Groups are seen in list by regular members. Super/Site Admin sees all groups including Hidden groups. – NOT working
My Groups… List of Groups you are a member of – Public, Private and Hidden (only by you and Super Admin) – NOT working
Is this what you are experiencing @bewitchingfiction?
I have two such groups – both with different memberships.
I have provided the users with the URL but that relies upon them either remembering it or constantly referring to their email.
I have looked at using a further plugin but I have about 9 already for the forum functionality alone, and the more php functions I call during a page load the slower my site becomes (because of the set up of my site at the host level – something I have no control over).
I have also used all the widget slots that I feel comfortable with (about 5 on the page) in order to ensure that the layout is neither too cluttered nor too messy (I find the more stuff you use the less pleasant the site is to look at) – I work for a charity for the visually impaired and one thing we discovered was that users – no matter what their visual capabilities – didn’t like a cluttered page.
I will continue to look, but really my point is that if there is a piece of functionality in something then it should work – UAT isn’t hugely expensive (part of my professional job as it happens) and that is something which would have failed it – it would be nice if there were clear guidelines on which templates (including the core ones) worked with the hidden/private group settings before they were used – I have spent so many hours mucking around with templates only for them to fail at that last hurdle (the groups not appearing) it’s getting rather frustrating.
Hi @bewitchingfiction,
I tried it on some of the default WordPress themes and couldn’t get it to work… and it no-longer works on the previous theme used two years ago when I first configured BuddyPress on our site.
My suggested work-around for you until someone is able to get it going again would be to create a password-protected or private page in WordPress for your mods to chat via the comments function. If you use a plugin that allows menu items to only be shown to mods, then no one will know the page even exists.
I use Nav Menu Roles to manage the visibility of menu items on my site. Unfortunately, it’s not compatible with my theme’s menu… so every time I want to add or change a menu item’s visibility, I have to change to another theme to use it , then change back. Clumsy, but it works! https://wordpress.org/plugins/nav-menu-roles/screenshots/
Hi @donalconlon,
Have you tried going into the group via the back-end instead of editing them from the front-end? This works on my site.
From the Dashboard, select Groups then edit the group you wish to change.
In the Discussion Forum box in the right column, below the Settings box, tick the box Yes, I want this group to have a forum. Then, if you click in the Group Forum: selection box directly below that says (No Forum) A list of all your existing forums (public, private and hidden) should appear for you to select from. Click Save Changes and it should be working.
If you aren’t familiar with the back-end editing or groups, you might be interested to know that you can Add New Members to the group and Manage Member roles here too. Those parts are directly below the Name and Description box. If you can’t see any of these options, you might have to select screen options in the top right and tick their selection boxes to get them to show below.
Hope this helps!
I cannot connect a private/hidden forum to a group. I even tried creating a new (hidden) group, specified that it has a forum. The forum gets created and is assigned to the group through wp-admin. But if I browse to the forum tab in Buddypress, it says the group does not have a forum. The only way i can get a forum to work is if i make it public.
I am finding if i add a public/private forum to a group it will work fine. If i change the forum status to hidden it is no longer available to the group. If i set the forum back to private/public, it is still not part of the forum. The only way I can assign a forum to this group is to create a new one. Less than ideal.
Hi guys,
I’ve made a small (private) plugin where an admin can make a friend connection between two users. For this, i’m using the friends_add_friend (see here) function.
As you can see in the previous Github link, the function accepts a third parameter called $force_accept. The docblock says Buddypress should not send a notification to the user. Problem is, the user keeps on getting emails from WordPress saying ‘x accepted your friend request’. I’m not sure if i’m doing something wrong, or maybe this is a bug in BuddyPress. I don’t want the user to get an email when an admin makes a friend connection between two users.
Thanks for the help!
WP: 4.2 (also had this problem in 4.1)
BP: 2.2.3.1
Hey @danbp,
WordPress provides a function for that. Check out wp_filter_nohtml_kses(). It strips all HTML from the string you provide so there’s no need to use preg_replace().
function hellowed_remove_html_private_messages( $message ) {
$message = wp_filter_nohtml_kses( $message );
return $message;
}
add_filter( 'messages_message_content_before_save', 'hellowed_remove_html_private_messages' );
hi @hellowed,
try this (add to child theme functions.php or better, bp-custom.php) It will remove a and span and h1 html tag
function bpfr_remove_html_from_private_msg($message){
$replacement = '';
return preg_replace( "/ <(span|a|h1)[^>]*>/", $replacement, $message);
}
add_filter('messages_message_content_before_save', 'bpfr_remove_html_from_private_msg');
I want to avoid my users from sending private messages with html codes.
Currently, users can send html tags such as <a> and <span> and receivers of
messages receive them as html tag.
All I want to know is a way to display messages as they are typed.
Don’t know why but… It is working again. Perhaps it was the latest update?
Here is another version of the code that can go into the functions.php that I first stumbled on… and is the one I am currently using.
function bp_guest_redirect() {
global $bp;
if ( bp_is_activity_component() || bp_is_groups_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
// enter the slug or component conditional here
if(!is_user_logged_in()) { // not logged in user
wp_redirect( get_option('siteurl') . '/wp-login.php/' );
} // user will be redirect to any link to want
}
}
add_filter('get_header','bp_guest_redirect',1);
Also, I have set my base category for forums to ‘Private’ so that people must be logged in to get access to the forums under that category, but it still allows me to make those forums ‘Public’. The reason? I don’t want members to have to wait for moderators to approve their request to join each of our discussion forums.
With further testing I have resolved that HIDDEN FORUMS will show for Moderators and Keymasters (as per bbPress documentation).
HIDDEN GROUPS not showing for anyone (keymasters, moderators of group members) in BuddyPress under ‘All Groups’ or ‘My Groups’ tabs. Only Public and Private groups show. The count of groups indicates the appropriate numbers however…
Sorry, but I think this is broken. Everytime a user sends a private message to another user an email is being sent to that user and the site admin containing a copy of the private message. Please check this.
So what op is saying, is that basically taking the notifications from the top right and putting “inbox notifications” on the bottom right of the screen, and when hover / clicked would bring up latest messages, and instead of clicking those bring you to a new bp page, it could ajax load your private messages – and allow for image uploads.. would kind of do what you are talking about.. no fancy chat required.. kind of I guess?
I use quick chat on one site with a dedicated server, and only enable it to work on one page, not show up on every page of the site.. I use av-chat (from nusoft I think) on a busier site.. but with my sites I am not using them in the way the OP is asking about, a mini chat tab on each page.. I just use them as chat rooms on a single page.
Tried many other solutions, paid for many, most fail miserably starting around 20 users.
/random thoughts at 2am
@leanneoleary,
BuddyPress doesn’t handle the Media Library.
BuddyPress doesn’t handle registration.
It’s a bad practice to allow users to upload something to your site until they’re not fully registered. When a user register, WP considers this new account as pending. As long as the user hasn’t activate his account with the activation key, he can only visit the site.
As you installed BuddyPress, i suggest you use your site à la BuddyPress.
If you want your members be able to upload files, use BuddyDrive. Each user can upload files from within his profile page and can share them on different levels (public, private, friends only). And much better as the Media Library default behave, each document belong to his user. BuddyDrive attributes a folder to each user who upload a document.
This is much simplier, well integrated and efficient in a members community as strugling with custom code (and potential errors and security issues).
Hello,
I just updated my buddypress plugin and now I have blank pages in buddypress. No activity, no members – nothing. Is it compatible with s2 member? I also just added that plugin. But even when I deactivated s2 Member, BP is still not showing up. My site is not public so I cannot give you the link. I can give access with a private post. I’m running WP 4.1.1
Thank you.
Hi. Im trying to add a “Featured Groups” widget to my home page in order to better show what my site does. Its just the regular “Groups” widget. My problem is that when i visit my page as an unregistered user, I can click on the group and see all of its activity. I want this to be private unless a user registers. Any suggestions? Thanks
Steve
Hey @mcpeanut,
AWS Pro will do exactly what you are after out of the box, it returns you to exactly where you were on the page, but you might find that you want to disable that as it can be a bit confusing for people. If they click on a link for a blog post for example, it will load the new page but not from the top if that makes sense, so you see the blog post but you may already be halfway down the page and need to scroll back up to read it from the start. This can be fixed with the inbuilt “scroll-to-top” feature though, which is what I use but I’ve removed the hard coded jQuery animation that comes with it.
The messaging issue is that at the moment with AWS Pro activated, the dropdown list of members isn’t firing when you start typing somebody’s name in a private message. I notified the dev about it and he is fixing it for the next update though.
There’s private messages built in, but this is rather old school. You can’t leave the conversation as you can on FB, you can’t upload files to the conversation etc. I am after something like Facebook chat/messaging system.
Personally I would like PM and chat to be separate. But then, things may change also – who can say – please submit issues with lots of real world example at https://buddypress.trac.wordpress.org/report
Some chat solutions worth looking may be https://wordpress.org/plugins/search.php?q=buddypress+chat
BuddyPress Mute allows your members to mute their friends. Muting a person results in all of that person’s activity items being removed from your site-wide activity stream. Some features of the plugin are:
- You can mute and unmute people at any time.
- You can continue to interact with muted members. For instance, sending them a private message remains possible.
- There’s no way of knowing that you’ve been muted.
- Fully ajax’d buttons
It’s similar to how you can mute users on Twitter.
BuddyPress Mute:
https://wordpress.org/plugins/buddypress-mute/
@mcpeanut, exactly. There’s private messages built in, but this is rather old school. You can’t leave the conversation as you can on FB, you can’t upload files to the conversation etc. I am after something like Facebook chat/messaging system.