Find Answers and Get Support › Forums › Gwangi – PRO Multi-Purpose Membership, Social Network & BuddyPress Community Theme › Compatible Plugins › BuddyPress › How can we edit Private message?
- This topic has 5 replies, 2 voices, and was last updated 3 years, 6 months ago by Manathan.
-
AuthorPosts
-
AchilleParticipant@coriaas
- 27 Topics
- 70 Posts
Hello Best Team,
First of all I would like to thank you for your support. It’s a real pleasure.
I wanted to know if it’s possible to edit the private messaging so that the client doesn’t have to insert a subject before sending his message to his correspondent?
The current version of the message subject is mandatory.October 6, 2020 at 15:53 #24003@themodactyl- 0 Topics
- 6297 Posts
Hi Achille, 🙂
Unfortunately, I have no idea. ?♂️
As this issue is related with BuddyPress, it’s best if you try to reach the plugin authors. They will be more informed and better suited to help you.
To go further, we invite you to post your request on their support forums:
https://buddypress.org/support/We remain available for all support requests related with the use of your theme.
Best,
October 7, 2020 at 09:09 #24035AchilleParticipant@coriaas- 27 Topics
- 70 Posts
Hi Manathan,
Thank you. Indeed I submitted my concerns on their forum and I received the answer below which I hope will help someone.It has to be implemented in the template. You can adda default “message” subject. This is something which is outside the scope of buddypress.
So we did implement something like this in our theme :
There is a message box option which appears in the members page :
https://prnt.sc/uugfa4
and sending a message from here sends a default subject in the buddypress Messages section in the profile :
https://prnt.sc/uugfv0——————————————————-
We can edit line 952 in wp-content -> plugins -> Buddypress -> bp-messages -> bp-messages-template/** * Get the default value for the Subject field. * * Will get a value out of $_POST['subject'] if available (ie after a * failed submission). * * @return string */ function bp_get_messages_subject_value() { // Sanitized in bp-messages-filters.php. $subject = ! empty( $_POST['subject'] ) ? $_POST['subject'] : 'Hello!'; /** * Filters the default value for the subject field. * * @since 1.0.0 * * @param string $subject The default value for the subject field. */ return apply_filters( 'bp_get_messages_subject_value', $subject ); } /**
October 7, 2020 at 09:36 #24045@themodactyl- 0 Topics
- 6297 Posts
Thank you for your feedback Achille! 🙂
I’m sure it will help some of our client. #SharingIsCaring ??
As we can read, this feature requires custom development work. If you can’t do it yourself, our recommendation is to hire a freelancer to this job for you.
If you’re on a tight budget, we recommend you to require the services from Envato Studio freelancers (https://studio.envato.com/explore/websites-programming). This web platform gives you access to developers who have already experience with theme customizations, and for very competitive prices.
Best,
October 8, 2020 at 09:31 #24085 -
AuthorPosts
The topic ‘How can we edit Private message?’ is closed to new replies.