Skip Navigation

[Resolved] Messaging System – is it possible to let a user delete received or sent messages

This support ticket is created 4 years, 1 month 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
- 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 6 replies, has 2 voices.

Last updated by alperenK 4 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1884259
delete-messages.png

Tell us what you are trying to do?
how can I add into the inbox or outbox view a button to delete the message if I user wants to delete it
Is there any documentation that you are following?
nothing found to this topic
Is there a similar example that we can see?
attached a front end picture
What is the link to your site?
hidden link (maintenance on - Minesh is involved in other ticket)

#1885133

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

Can you please share user account details using which I can see few messages on his account.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1885985

Minesh
Supporter

Languages: English (English )

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

What I want is three user access details.

- Admin User
- Sender user
- receiver user

Can you please share all above user access details and I will see what we can do. Also, the delete link will be shown to Admin only? or you want anyone can delete anyone's reply/message?

I have set the next reply to private which means only you and I have access to it.

#1888717

Minesh
Supporter

Languages: English (English )

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

The delete button for Messages should be visible in the views Messages sent & Messages received
--> Admin, Sender and Receiver should be able to delete messages (a user not related with the message should not be able)
==>
Can you please try to add the following shortcode to your sender and receiver view's that will display the Delete link.

[cred-delete-post action='trash' onsuccess='self']Delete[/cred-delete-post]

You can add it at the place where you wanted to display the delete link with your Message Sent and Message Receive views.

Can you please confirm the delete link works.

#1888981
test-with-other-user.jpg
deleted-messages-first-message-id.png

Hi Minesh, your created button is perfectly what I was looking for. But after trying to "delete" posts, in the inbox or outbox I can see the deleted first message ID in the view itself (picture "deleted-messages-first-message-id").

And is it somehow possible to not delete 1 "last child" of the conversation, but to delete the complete conversation like it is shown in picture "test-with-other-user" (--> 3 conversation from different "authors" --> after clicking on delete only 2 conversations should be shown in the view)

For a nother test user I have now the problem, that even when he is receiver or sender, he gets a small dot instead of the button. Attached you can see how it looks on the frontend (picture "test-with-other-user"). As this is a shortcode I could't find any entry in the access manager - is it maybe an access issue?

Thanks a lot for your amazing support helping fixing issues!!

#1891271

Minesh
Supporter

Languages: English (English )

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

It seems you already managed to add delete button as you wanted. If yes, please feel free to mark resolve this ticket. 🙂

Happy New Year in Advance 🙂

#1891693

My issue is resolved now. Thank you!