the url link is just for example and not mine it’s just to show that the link structure contains “compose” and the members id..
anyone? this is on buddypress profiles.. all plugins are deactivated so nothing is interfering as far as I know. When the “Private Message” Button is clicked it does not open the compose message with the user name in the title.. I think it might be a bug?
I also think this is a bug, but while we wait for an official response, I’ve managed to work around it.
Technically, this only happens if you’re using the Nouveau template, legacy still works fine.
There are two steps to fix the issue. Firstly, in your theme folder create the folder(s) buddypress/common/js-templates/messages and inside messages, create index.php.
Into index.php here, copy the contents of the buddypress plugin file (within the plugin folder) bp-templates/buddypress/common/js-templates/messages/index.
Inside the newly copied index.php file, go to line 37, where the input named “send_to” is located and change it to this:
Github gist #1
That was the first step, the second one is to add the following filter to functions.php:
Github Gist #2
That fixed it for me.
The problem seems to be 2 things.
Firstly, the link being generated on for the user list view has “…#compose?r=…”, which is meant to use the compose view as a backbone view I presume, but that ends up not switching to the compose at all, so switching out # for / makes it go to the correct location.
Secondly, the input field has no code (PHP or Javascript within the Backbone engine) that should take the query variable and inject it as the recipients username. The code itself does exist (bp.Nouveau.getLinkParams
), I just don’t know why it wasn’t implemented here somehow.
Hope this helps.
Thanks for the report and suggested fix, @vesterde.
I’ve linked to this thread in this ticket – https://buddypress.trac.wordpress.org/ticket/7908
I’m having perhaps a related issue with messages. When I switch to the old theme the messages work fine. Here is my original post:
_______________________
Greetings!
I just installed BP version 3.1.0 with WooCommerce StoreFront theme on WP 4.9.8 hosted on WPEngine.
When I go to a users profile and click private message, it takes me to the messages tab, but the compose fields do not show. The URL appears to have the proper query string with the users name. Example: compose?r=julesyoga
Could caching be preventing the page from loading perhaps?
Do you know any reason why the page isn’t loading in compose mode and the name isn’t being populated.
site: https://access.julesmitchell.com/
wp version: 4.9.8
Thanks so much!
@keyadigital – I’ve merged your post into this thread since it is more appropriate. Please check the post I made just before for a potential fix.
THANK YOU SO MUCH for this help!
It worked PERFECTLY! We were really in a bind with a new website we just launched.
I hope this is included in the next revisions of BuddyPress!