Skip Navigation

[Resolved] Messaging system doesn’t work properly

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
- 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 0 reply, has 1 voice.

Last updated by Minesh 4 months ago.

Assisted by: Minesh.

Author
Posts
#2802234
Skärmklipp.PNG

But nowhere in the toolset instructions does it say that it should be done???

#2802239

Minesh
Supporter

Languages: English (English )

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

what you mean? Can you please share brief details rather sending one liner message and what exactly your requiremnt.

Here is the blogpost that shows information how exactly it works:
=> https://toolset.com/2018/11/introducing-toolsets-communication-system-for-professional-listing-sites/

#2802240

I mean that you do with "Custom code" :

"default":"[get_author_id_in_archive]"
to
"default":"[wpv-post-author format='meta' meta='ID']"

#2802241

Minesh
Supporter

Languages: English (English )

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

Its not in custom code but in your new message form:
=> hidden link

See the section "New message form" with the following Doc:
=> https://toolset.com/documentation/legacy-features/miscellaneous/how-to-create-a-messaging-system-with-toolset/#new-message-form

#2802242

Please, find for me that change in the "Custom Code" that you did in the Toolset instruction.

#2802243

Minesh
Supporter

Languages: English (English )

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

I'm not getting you - the only change that I made is I already shared and is in the new message form:
=> hidden link

You will see the following field with your form:

[cred_generic_field field='wpcf-message-to' 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]

The field was there but the default value was: "default":"[get_author_id_in_archive]" that I changed to "default":"[wpv-post-author format='meta' meta='ID']"

And in "Custom Code" section:
=> hidden link
You see all the code snippets - I just activated those snippets. The snippets was inactive.

#2802244
Skärmklipp.PNG

I can't open the first link you send me:
=> hidden link
???

Next.
I already explained in the first message( on the TICKET) I wrote to you, that the messages between the user and the Contractor are visible to everyone.
They must be visible only between the contractor and the user.

#2802250
Skärmklipp.PNG

And more:
If I did everything according to the toolset instructions, why don't I have this kind of communication established, as in the toolset example?

#2802272

Minesh
Supporter

Languages: English (English )

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

Please check the link loggedin as admin:
=> hidden link

I dont think you followed the tutorial:
=> https://toolset.com/documentation/legacy-features/miscellaneous/how-to-create-a-messaging-system-with-toolset/

As it clearly have sections for inbox:
=> https://toolset.com/documentation/legacy-features/miscellaneous/how-to-create-a-messaging-system-with-toolset/#inbox

And output pages:
=> https://toolset.com/documentation/legacy-features/miscellaneous/how-to-create-a-messaging-system-with-toolset/#outbox

So, I've edit the inbox page and added the "Fields and Text" block and added the following code to it:
=> hidden link

[toolset_access role="Guest" operator="allow"]
<p>In order to view your message please <a href="[wpv-bloginfo show='url']account/">log in</a>.</p>
[/toolset_access]

[toolset_access role="Guest" operator="deny"]
[wpv-view name="Messages received" info="[wpv-current-user info='id']"]
[/toolset_access]

The same wy I've edit hte "outbox" page and added the "Fields and Text" block and added the following code to it:
=> hidden link

[toolset_access role="Guest" operator="allow"]
<p>In order to view your message please <a href="[wpv-bloginfo show='url']account/">log in</a>.</p>
[/toolset_access]

[toolset_access role="Guest" operator="deny"]
[wpv-view name="Messages sent"]
[/toolset_access]

Now, the inbox and outbox will be accessible to loggedin users only.

If inbox/outbox pages are accessed by guest user, it will have a message:
=> hidden link
=> hidden link

In order to view your message please log in.
#2802273

Minash! Thank you for all your help and I think you help a lot.
But the toolset instructions are so poorly explained and some important things like code changes should be more visually emphasized step by step.
Because the toolset is advertised as a CMS for creating a site without knowing PHP, javascript...

Once again, I thank you very much!
I hope that next time we can establish a conversation a little faster.
The next step is to pay for the service.
And already I assume that it will be very difficult to do it because of the Toolset's poor instruction.

#2802274

Minesh
Supporter

Languages: English (English )

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

Glad to know that now everythning works as expected.

You're welcome to mark resolve this ticket.