Is it Possible? Only User-Admin-User Private messages.
-
I’m using BuddyPress as a searchable directory of people where I want to use Private Message component but only as User-Admin-User.
Users can only send messages (and reply) to admin(s).
Admin(s) can send messages to ‘all in one go’ and ‘individuals’.Any ideas on how can this be achieved?
Thanks for the help.
-
Any thoughts on this? anyone?
Please
I guess it is not possible. However if it is, I will appreciate even some clue or hint on this…
regards.
Not possible out of the box. You’d have to write the functionality yourself, or hire someone to figure it out for you.
@djpaul Thank you for your reply
Hello @djpaul ,
I see there is a ‘Send a Reply’ box bebeath every message received and the receiver can easily type a reply here and send it. To send a reply the receiver do not need to visit ‘/messages/compose/’ which I have restricted using S2member plugin.
I have successfully achieved the solution. I have kept composing messages for myself (admin) only. All my users can reply back to me and cannot message each other.
The problem that I’m facing is a little strange, the receiver does successfully reply to my message and I do receive the reply however as soon as this happens the user finds himself logged out!
NOTE : Only a user (subscriber) other than admin logs out while replying. When I use the same box to reply to a message I do not log out!!!
Any thoughts?
Thanks
Couldn’t you make the To field a hidden input with a value of ‘admin’ with a conditional to check if the user is a member (and not the admin themself)?
e.g in compose.php change the text input to something like:
if ( !is_super_admin() ) {
input type=”hidden” name=”send-to-input” value=”admin”} else {
input type=”text” name=”send-to-input”
}I’m sorry I really don’t understand coding, however I am grateful for the solution you have provided. I will try to find a way to use this.
Thank you very much 🙂
@henrywright-1 Thank you very much, I used the below code and it worked like a charm. Your hint worked for me 🙂
Don’t know why the code is not shwoing here
`
`
@lavishdhand
If you want to share your solution then add the code on
http://pastebin.com/
And share the link here.
- The topic ‘Is it Possible? Only User-Admin-User Private messages.’ is closed to new replies.