Skip Navigation

[Résolu] Messaging system between users

This support ticket is created Il y a 5 années et 9 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 5 réponses, a 2 voix.

Dernière mise à jour par Minesh Il y a 5 années et 9 mois.

Assisté par: Minesh.

Auteur
Publications
#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

Les langues: Anglais (English )

Fuseau horaire: 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:
=> lien caché
=> lien caché

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

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

Can you please check now: lien caché

#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

Les langues: Anglais (English )

Fuseau horaire: Asia/Kolkata (GMT+05:30)

I've changed the custom field query filter and now I can see the message:
=> lien caché

Can you please confirm now you see the correct messages:
=> lien caché