Hi,
I am trying to build a similar Support System like Toolset Technical support.
The Different is that users no need to be logged in to open a support Ticket.
This is a senareo..
1- anyone on the site can open a support Ticket
2- when submitting a Tickets the user need to add following information (Name/Family/Email/phone) and then the question.
3- when the user click on Submit, two things should happen (a new Support Ticket will be posted in the custom post type "Tickets" and then, A new user as Subscriber will be created)
4- when Displaying the Ticket, all subscriber information should be displayed + Ticket Question.
5- in the Ticket on the bottom it should be possible only for logged in users (like Admin) to add comments answering the questiin on the Ticket.
6- Every comment has the user meta data (Name,Role etc..)
Actually it should look Toolset support forum but only for non logged in user, and also will a Subscriber user Role will be created when submitting a Ticket.
------------
For now i have managed that this way:
I have created post relationship which works ok for now. But i think there should be a better way.
Post relationship doesn't support post type & Users. For this i have created two post types, one for Tickets and one for users who submit a Ticket
CPT - Ticket Subscriber
CPT - Tickets
I have created Post form for creating Subscribers and then redirect to Post form for creating new Ticket.
In the new Ticket form under the question field, the user can choose his subscriber name to connect his name from "Ticket Subscriber" with current Ticket before submitting.
This makes it work fine but not ideal solution. Since Tickets Subscriber are not real Subscriber on the site.
I want that user who submit a Ticket get connected to the Ticke. as well a profile with subscriber role get created for them.