Skip Navigation

[Resolved] Messaging system – reply message does not show up

This thread is resolved. Here is a description of the problem and solution.

Problem:

I added toolset messaging system to the site.

On each job offer, premium applicants (role "agence premium") can send a message to the person publishing the job offer (role "porteur de projet").

Now if USER2 wants to reply to USER1, the message appears in USER2's outbox, that's fine, but my problem is:
- USER1 is not notified by email he received a reply message
- USER1 has no message in his inbox

Solution:

I suggest you try these:

https://toolset.com/forums/topic/messaging-system-reply-message-does-not-show-up/#post-1372805

Relevant Documentation:

https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by ericW-5 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1372527

I am building a job site. I added toolset messaging system to the site.

On each job offer, premium applicants (role "agence premium") can send a message to the person publishing the job offer (role "porteur de projet").

This page shows all messages received and sent for the logged in user : hidden link
This page shows all job offers : hidden link
When clicking on a job title in this list the applicant can see the job details and can send a message to apply.

Let's say USER1 is the applicant and USER2 is the person who published the job offer.
When USER1 applies for the job via the messaging system, he sends a message to USER2.
USER2 is notified by email he received a message and he can see the message in his inbox. This works perfect.

Now if USER2 wants to reply to USER1, the message appears in USER2's outbox, that's fine, but my problem is:
- USER1 is not notified by email he received a reply message
- USER1 has no message in his inbox

Can you please help me solve this issue.

#1372533

Thanks in advance

#1372805

Hello,

There isn't such kind of built-in feature within existed "toolset messaging system".

I suggest you try these:
1) Create a custom email field "send-to" for post type "Message"
https://toolset.com/documentation/user-guides/using-custom-fields/

2) Edit the post form for replying the message "USER2 wants to reply to USER1", put above custom email field into form content, and populate field value as the USER1's email address.
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field
value. Optional. Preset value

3) then follow our document to send an email to email address of field "send-to"
https://toolset.com/documentation/user-guides/automated-email-notifications-with-cred/

#1372865

Hello,

I created a new email field "send-to" for post type "message".

I currently have 2 post forms : new message and reply message.

I understand Toolset messaging system provides a "new message" functionnality and a "reply message" functionnality but a messaging system also needs a "REPLY to a reply message" functionnality.

Now I am stuck.
Do you mean I should edit my current "reply message" form ?

If yes, I currently have this code below and I don't understand where I should insert the "send-to" custom field

[credform class='form-dark']
<div class="hidden">[cred_field field='post_title' post='message' value='Re: [wpv-post-title]' urlparam='' class='form-control' output='bootstrap']</div>

[wpv-conditional if="( $(wpcf-message-from) ne '[wpv-current-user info="id"]' )"]
  [cred_generic_field field='wpcf-message-to' type='hidden' class='' urlparam='']
  {
  "required":0,
  "validate_format":0,
  "persist":1,
  "generic_type":"user_id",
  "default":""
  }
  [/cred_generic_field]
[/wpv-conditional]


[wpv-conditional if="( $(wpcf-message-from) eq '[wpv-current-user info="id"]' )"]
  [cred_generic_field field='wpcf-message-to' type='hidden' class='' urlparam='']
  {
  "required":0,
  "validate_format":0,
  "persist":1,
  "generic_type":"user_id",
  "default":"[types field='message-to' output='raw'][/types]"
  }
  [/cred_generic_field]
[/wpv-conditional]

[cred_generic_field field='wpcf-message-from' type='hidden' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"generic_type":"user_id",
"default":"[wpv-current-user info='id']"
}
[/cred_generic_field]

[cred_generic_field field='wpcf-first-message-id' type='hidden' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"default":"[types field='first-message-id']"
}
[/cred_generic_field]

<div class="row align-items-end mt-40">
  <div class="col-md-10">
    
[cred_generic_field field='post_content' type='textarea' placeholder='Ecrire une réponse...' urlparam='']
{
"required":1,
"validate_format":0,
"default":""
}
[/cred_generic_field]
    
  </div>
  <div class="col-md-2">
[cred_field field='form_submit' value='Répondre' urlparam='' class='button-secondary']
  </div>
  </div>

[/credform]

Thanks in advance for your help
Regards

#1372869

I may have found a solution

[wpv-conditional if="( $(wpcf-message-from) ne '[wpv-current-user info="id"]' )"]
[cred_generic_field field='wpcf-message-to' type='hidden' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"generic_type":"user_id",
"default":""
}
[/cred_generic_field]
[/wpv-conditional]

here default shows nothing ""... I inserted "message-from" field.

I keep you posted

#1372875

Q2) Do you mean I should edit my current "reply message" form ?

Yes, as I mentioned above, it should be the post form for replying the message.

Q2) here default shows nothing ""... I inserted "message-from" field.
Since you are editing the post form, I can not check it, please update here when your website is ready for debug.

And if it requires another WordPress user to reply the message, please provide the user's account and where and how I can see the problem you mentioned above.

Private message box enabled again. Thanks

#1372877

My issue is resolved now. Thank you!