I am trying to implemented group functionality (referred toolset previous tickets) to user. As we can´t make a relationship between wp user directly. I created a new User post type with name and email custom fields. when new user register it automatically create a post in user post type.
Created Group CPT and have many - to- many relationship with user. Using frontend form the user can create group, add user to group , join and leave other group.
I want to create a messaging for the user /group.
Requirement:
users can send messages to other users and admin can message groups. Individual users can message their own groups.
I created a Message post type and connected with group and user.
I struck how can i select user or group in message form? (as post relationship option is not available in post form)
ex: FORM
message: its a testing
share: group1 or individual user
Please guide me how to achieve this messaging to group /individual.
what you mean by group chat? Do you mean you want to send the single message to multiple users? If yes:
Can I have problem URL and admin access details and also tell me to what users you want to send the message?
*** 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.
Can you please tell me from where using what page you aim to send the message?
Can you please share detailed workflow, like:
- user will login as this user (frontend)
- user will go to this link to send me group message where form is available to send me message to selected group
- as soon as user send message, X users should receive message
- login as X (please share frontend user access details) frontend user to crosscheck
I have set the next reply to private which means only you and I have access to it.
we will take issue one by one. As per our support policy, we entertain only one question per ticket.
This will help other users searching on the forum as well as help us to write correct problem resolution summery for the original issue reported.
For now, with this ticket, I will try to address the fist question:
1)in View [wpv-view name="groupmessage2" postid="191242"]
the post id is entered manually when i try to use [wpv-post-id] like [wpv-view name="groupmessage2" postid="[wpv-post-id] "] it not getting the dynamic current post id
====>
I've created the following content template:
=> hidden link
The above content template will work as a container that will hold the view as: