Skip Navigation

[Resolved] Messaging system customization

This support ticket is created 4 years, 4 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/Karachi (GMT+05:00)

Author
Posts
#1720265

I am trying to utilize the premade messaging system by Toolset as the reviews module, messaging module, and dispute module for my learning management system,
let's imagine what I wanna state, after an online class complete,
1. We allow an individual tutor and student to write reviews with each other,
it bases the specific class, what is the relationship between the online class post type and messages? parent and child? how do I implement the code?
2. We allow the current tutor who has completed the class with the student, to leave a message to another tutor who will take the class with the same student, the parameter can be transferred from my schedule system, for the messaging system side, what we should do, what customization do I need to do?
3. We allow students to raise a dispute for low-quality classes, it is very similar to reviews, the only difference is after the teacher's response and the student was not stratified with the response, the student can have custom service get involved, how can I achieve this requirement?
In conclusion, could you please let me know what is the relationship between an online class post and reviews, messages, and disputes? how to implement for different 3 requirements, I am going to hire a WP programmer to implement my requirements, the person may be proficient with WordPress, but he is not familiar with Toolset, what suggestions are you going to share with him? Thank you!

#1721325

Hi,

Thank you for contacting us and I'd be happy to assist.

The old messaging system module has been retired as it relied on some legacy features, which are no longer supported or recommended.

To build something like this a fair deal of customization will be required and although 1-1 customization is beyond the scope of support that we provide, we do our best to guide in the right direction, whenever possible.

To suggest the best way forward, I'll need to perform some tests and research on a test website. I'll share my detailed findings, as soon as it completes.

Thank you for your patience.

regards,
Waqar

#1721351

Hi Waqar, thank you for the response and taking your time to research the messaging system, I trust this messaging module can be reuse for my requirement above with some customization, if possible, please give me a guideline about how to perform these.

#1723483

Hi,

Thank you for waiting, while I performed some testing and research around your requirements.

As mentioned earlier, these requirements will require complex customization and the person working on this development will need to be proficient in not just WordPress and PHP, but also in Toolset.
( you'll find the list of our recommended contractors at https://toolset.com/contractors/ )

If your programmer is interested in learning about the Toolset features and customization, here are some key resources that you can share with him:

https://toolset.com/documentation/
https://toolset.com/documentation/post-relationships/
https://toolset.com/documentation/customizing-sites-using-php/functions/
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/
https://toolset.com/documentation/programmer-reference/cred-api/
https://toolset.com/documentation/programmer-reference/views-filters/

As for your specific questions:

> 1. We allow an individual tutor and student to write reviews with each other,
it bases the specific class, what is the relationship between the online class post type and messages? parent and child? how do I implement the code?

- First, you'll need to make sure that a "Student Profile" post exists for every registered student user, and a "Teacher Profile" post exists for every registered teacher user.
( ref: https://toolset.com/documentation/post-relationships/how-to-create-custom-searches-and-relationships-for-users/ )

These two custom post types are needed because WordPress users can't be connected to other post types through post relationships.

Based on this, the list of custom post types will include:

a). Student Profiles
b). Teacher Profiles
c). Classes
d). Messages
e). Message Threads
f). Reviews

The post-relationships will look like this:

a). Classes <-> Student Profiles
A many-to-many relationship, as multiple students can be linked to multiple classes.

b). Teacher Profiles -> Classes
A one-to-many relationship, as one teacher can have many classes, but one class will have only one teacher.

c). Message Threads -> Messages
A one-to-many relationship, as one message thread can have multiple messages.

d). Classes -> Message Threads
A one-to-many relationship, as one class can have multiple message threads.

e). Student Profiles <-> Message Threads
A many-to-many relationship, as multiple students can have multiple message threads.

f). Teacher Profiles <-> Message Threads
A many-to-many relationship, as multiple teachers can have multiple message threads.

g). Classes -> Reviews
A one-to-many relationship, as one class can have multiple reviews.

h). Student Profiles -> Reviews
A one-to-many relationship, as one student can have multiple reviews.

i). Teacher Profiles -> Reviews
A one-to-many relationship, as one teacher can have multiple reviews.

> 2. We allow the current tutor who has completed the class with the student, to leave a message to another tutor who will take the class with the same student, the parameter can be transferred from my schedule system, for the messaging system side, what we should do, what customization do I need to do?

- If you've deployed the structure proposed above, you'll need to first get the list of all classes that a student has completed.

Once you'll have the classes, you'll be able to get the list of related teachers from that and then allow those teachers to start a new message thread between each other.

> 3. We allow students to raise a dispute for low-quality classes, it is very similar to reviews, the only difference is after the teacher's response and the student was not stratified with the response, the student can have custom service get involved, how can I achieve this requirement?

- This can be very similar to the reviews post type and its relevant post-relationships and you can include an additional form in the dispute view, that either party can submit to send an email to the admin or the concerned party informing about the dissatisfaction.

I hope these pointers will help and please let me know if you have any follow-up questions.

You're welcome to start a new ticket for each new question or concern.

regards,
Waqar