Skip Navigation

[Resolved] Messaging system between users

This support ticket is created 5 years, 9 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 5 years, 8 months ago.

Assisted by: Minesh.

Author
Posts
#1210438
Screenshot_27.png
Screenshot_26.png
Screenshot_25.png
Screenshot_24.png
Screenshot_23.png
Screenshot_22.png

I am trying to:
Hello.
I created a messaging system like in this instruction: https://toolset.com/learn/how-to-create-a-messaging-system-with-toolset/

I have 2 CRED forms:
Listing Request form (#521)
Listing Request form answer (#1641)

and 3 viewes:
Messages received (#1626)
Messages sent (#1628)
Related messages (#1627)

It works, but i have several mistakes.
1. The recieved messages view works with shortcode attribute, like in examlpe:
[wpv-view name="Messages received" user="[wpv-current-user info='id']"]

but it doesn't work correctly. Atribute with user ID doesn't work, but id delete it, of course all users are getting all messages.

2. Related messages also are broken, i cant see the list of all messages with recieved/sent ...
this view also works with shortcode attribute : [wpv-view name="Related messages" message="[types field='first-message-idd' raw='true'][/types]"]

It seems to me that here is some problem with id of the messages and with id shortcode attribute.
But i can't find the problem...
Thanks for any advice...

Admin to the system:
web3d_coldtruck
HX7JIyDIWdYBdwmc

#1210473

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - there are few configuration mistake in passing the correct shortcode attribute name and adding query filter.

I've corrected those with both the views:
=> hidden link
=> hidden link

Could you please check now and confirm it works as expected now.

#1210607
Screenshot_30.png
Screenshot_29.png

Minesh, hello.
Thank you for fast reply and help.
I checked the system, and now the "Recieved messages" stop working totaty.

#1210616

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

#1211318
Screenshot_5.png
Screenshot_4.png
Screenshot_3.png

Minesh hello. Thank you for your helpness, but it's still not working.

I think the problem is with getting right "id" of the post author (with field "message-to-1", when the cred form submitting.

1. This field i use in in cred form with shortcode:

[cred_generic_field field='wpcf-message-to-1' type='hidden' class='' urlparam='']
{
"required":0,
"validate_format":0,
"persist":1,
"generic_type":"user_id",
"default":"[wpv-post-author format='meta' meta='ID']"
}
[/cred_generic_field]

This form is located at the single listing page, and message sending to post author.

And this form is going from single listing page, so we can get the infromation about post author when sending the form (screenshort)

And i'm getting it.

2. This field is used in view for "Message recieved" for query filter with (screenshort)
So view has this shortcode:

[wpv-view name="my-messages-received" info="[wpv-current-user info='id']"]

But it goes empty.
It looks like "info" shortcode doesn't work...

#1211843

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I've changed the custom field query filter and now I can see the message:
=> hidden link

Can you please confirm now you see the correct messages:
=> hidden link