Plugin URI: https://github.com/shanebp/BP-Profile-Message-UX
Tested up to: WP 3.5, BP 1.6.x and 1.7beta2
This plugin replaces the functionality for the Public Message and Private Message buttons on profile pages.
== Description ==
BP Profile Message UX is a BuddyPress plugin.
Default behavior for the buttons is to take you to your own profile – to compose and send messages from there.
Why ?
Why not stay on the profile page you are viewing ?
Fortunately, BuddyPress makes it easy to replace the functionality for those buttons.
With this plugin you can stay on a profile page and send messages.
It uses the ‘thickbox’ code built into WordPress.
It uses the default wp-thickbox styling – so it’s not pretty but you can style it any way you want.
you may found these kind of information in the language pot file
#: bp-messages/bp-messages-template.php:657
msgid “Private Message”
#: bp-activity/bp-activity-template.php:2430
msgid “Public Message”
etc
I mean file which says: Mention this user in a new public message, this will send the user a notification to get their attention.
Ok @hnla thanks, I mean where it says :`<a href="” title=””>`
Not the functions. I have checked member-header.php but not there.
what am trying to do is list mention and private message under Add friend button as li .
I know how to do it but dont know where to locate the file anymore.
Regards
Hi,
Can someone please point me into the file where i can locate generic button : private message, public message, Mention.
I have been pulling my hair since morning checking every files but i cant seems to find it.
Thanks for your help.
Oh Sorry, I understand that the link is not used.
So this:
(a) href = “/ news / pmaction newmessage = & to = ” target = “_blank”> send message (a)
Hallo @talha8877
Excuse me, my English is not so good, unfortunately.
I used the plugin Cartpauj PM Plugin from Mingle, as I have found as yet no viable solution to the buttons (message etc) of the BuddyPress insertion into posts / Articels.
So now I turn off the message part of BuddyPress and linking all the Cartpauj PM, which works wonderfully, except out of BuddyPress. There does not work.
Of Cartpauj in single.php just the link:
<a href = "/ news / pmaction newmessage = & to = “> Send
. put But as I said, the link works in BuddyPress indeed, but does not with the member users, which I will write. Since I’m still looking for a solution. Evtentuell with: bp user id, funktioiert might not.
So who has a solution to integrate Cartpauj PM in buddybress, bring it on.
That´s it
Thank you
In previous versions of BuddyPress, when I am writing the usernames to send a private message to, once I have typed a few characters of the username, a button appears below the send to box to select their username. This then puts their name to the left of the text box.
In the current version, this does not seem to work. I am using the Custom Community theme and I have updated global.js to the latest from the BuddyPress default theme.
Hi @strangerrj,
How do you generate the /the_messaging_page/ part in php?
@chouf1,
I used it just like that inside the template but it didn’t return anything. But if I only use an action hook like
`add_action( ‘the_content’, ‘bp_add_friend_button’, 5 );`
Then the same button appears in all the posts. First I thought this worked but when I clicked the button all the buttons in all the posts became ‘cancel friendship request’
Hello, I received the solution from houseofstrauss: https://wordpress.org/support/topic/get-the-user-id-for-pm-plugin?replies=2
Thanx @houseofstrauss
Is it also possible to integrate in buddypress the member header? The link work, but he does not detect the user from buddypress, the user I want to mail.
And is it possible in the same window e.g. in Thickbox to open Colorbox or Lightbox?
this link is:
a href=”the_messaging_page/?pmaction=newmessage&to=<?php the_author_ID(); PM me
the_author_ID is not correctly for Buddypress.
Thanx Greetings R.
Looking to do something similar, but I’m using the buddypress follow me plugin. I would like to display the “follow” button on my childsite’s sidebar.
By default, add as friend works only on the profile template or on the member template. So if you want to add this button into a post or in the post meta, it won’t work, i believe.
You should call the good template part first and probably need to add the appropriate action hook, yes.
Did you use the statement if ( bp_is_active( ‘friends’ ) ) before `bp_add_friend_button ?
`
Hi Chouf,
Thanks for the response. Although I’m having hard time connecting the dots.
I’d already used
`bp_add_friend_button( $user_ids[‘users’][$i]->id ) ?>`
directly in my code but it didn’t return any results.
Do I need to use an action hook to display it in posts?
Hi!
I’m wondering if anybody figured out how to add a template tag for Add Friend button?
Cheers
Hello Henry, my Englisch is not so good. Sorry.
I do have 2 Problems, maybe you can help me: 1. send private message and 2. send public message doesn’t work but not like on the buddypress page itself. If for example click the private message, the message page opens without the address User name field, but it appears only an mempty field. Where is the mistake? And this could be handled and dissolve in an jquery colorbox or fancybox manner?
Thanks R.
Hi
An ordinary user & member of a private group gets the above error message when clicking on the ‘Forum Directory’ menu item.
There are Forum Topics (indeed this user just successfully created one). Logged in as a site admin the same Forum Directory button produces a full list of site forums.
Any idea what is going wrong?
Thanks
There was a bug with bp-default theme shipped with bp 1.6+ and any theme which is based on bp-default or copies functions from it has the same bug.
Here is a way to fix that.
First look for this code(or similar) in your themes functions.php
if ( !is_admin() ) {
// Register buttons for the relevant component templates
// Friends button
if ( bp_is_active( 'friends' ) )
add_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 );
// Activity button
if ( bp_is_active( 'activity' ) )
add_action( 'bp_member_header_actions', 'bp_send_public_message_button', 20 );
// Messages button
if ( bp_is_active( 'messages' ) )
add_action( 'bp_member_header_actions', 'bp_send_private_message_button', 20 );
and change this line
if(!is_admin()){
to this
if ( !is_admin()||(is_admin()&&defined('DOING_AJAX')) ) {
and it will work.
My custom theme Buddypress (1.6.1)/Wordpress (3.4.2) site was working perfectly fine. There was a Post Update button and activities were sticking.
Yesterday I updated Jetpack, BP Menus, Post Topics, Google Analytics, WP Facebook AutoConnect paid. The Post Update button disappeared. I solved that problem disabling BP Menus v2.0.3. I only allow registration of Buddypress accounts through Facebook. Now some accounts can post perfectly fine – their post will stick on the website. However I’ve noticed with some other accounts that when they try and post simple text the post appears to go through and have been submitted, however the post disappears once the user refreshes the page.
I’ve noticed that users whose post disappears on the Activity Stream can still send private messages and those work fine.
Any ideas on what is causing this problem and how I can fix it?
=== BuddyPress NeoFollow ===
Contributors: EthanVan, MegaInfo
Requires at least: WordPress 3.4, BuddyPress 1.5
Tested up to: WordPress 3.4.2 / BuddyPress 1.6.1
Stable Version: 1.0
BuddyPress NeoFollow allows members to follow other members’ activity.
This newest follow plugin creates two button classes; one for the profile page and one for the members directory.
By using two CSS button classes we eliminate the overlapping button problem in the members directory that has been plaguing users of the previous follow plugins without effecting the follow button on the members’ profile pages.
This plugin is compatible with Private Message Followers Only and uses the same data as BuddyPress Followers and BuddyPress FollowMe so you can transition to it seamlessly.
Download the plugin here: http://ethanvandal.com/bp-plugins/bp-neofollow.zip
You will also need to download the required BuddyPress child theme to eliminate the overlapping button problem.
Download the child theme here: http://ethanvandal.com/bp-themes/bp-neofollow-bc.zip
This child theme invokes the use of the BP Default theme but can be modified to use any BuddyPress theme. If you need to use this with another theme please ask around on the BuddyPress.org forums. I do not guarantee support for use with other themes however, I will try and help out as much as I can.
This is a repost due to inappropriate attack comments from yesterday which resulted in the thread being locked.
Constructive feedback always appreciated. 
Hi. Whenever any member send a message through compose or sends a message via their profile private message button, another member including me (admin) gets it so It’s like a group conversation. This issue started a day ago. Please help.
On trying to invite users to a private group, I have no button that allows me to do it.
If I request to be in that group with another user account, In the admin/requests tab I see the request, and I press accept, and it gives me a message asking me if I was sure I wanted to do this, with only a try again button, which I pressed and takes me back to the group page, without having accepted anyone.
I am using WordPress version: 3.4.2; buddypress version 1.6.1 on a clean instalation and the default theme.
Thank you,
Raul.
Hi .. I think I am having the same problem
I am running Buddypress 1.6 and WordPress 3.4.1
I am finding the Add Friend feature is not working and the reply to message functionality (when I try and reply to a message it isn’t working.)
When I click on Add friend it just appears to remove the button and the friend pending button doesn’t appear and it doesn’t active the friend request
When I try and reply to a message I type in the message and click on the send reply and it just clears the message window.
I am not sure how to uninstall/remove the CDN version of jQuery. Can you please point to some instructions on how to do this?
I’m having a similar problem. I’m running BP 1.6 on WP 3.4.1 network.
I can write new PMs to any member and it all works great, but when I hit ‘Send Reply’ button the text box empties itself out and the reply is never actually sent as a message.
I used Firebug and discovered that the POST data is all there, but the AJAX/jQuery isn’t doing it’s job. Here’s why I see in the Firebug console:
`POST http://bannedatheists.us/wp-admin/admin-ajax.php`
which is supposed to be handled by `http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js?ver=3.4.1`
Moreover, I just noticed that the jQuery ‘Friend’ buttons aren’t working, either… URG! I’ve been disabling plugins like a madman but so far nada. HELP!