Skip to:
Content
Pages
Categories
Search
Top
Bottom

Is it Possible? Only User-Admin-User Private messages.

  • Avatar of LavishDhand
    LavishDhand
    Participant

    @lavishdhand

    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Avatar of LavishDhand
    LavishDhand
    Participant

    @lavishdhand

    Any thoughts on this? anyone?

    Please

    Avatar of LavishDhand
    LavishDhand
    Participant

    @lavishdhand

    I guess it is not possible. However if it is, I will appreciate even some clue or hint on this…

    regards.

    Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Not possible out of the box. You’d have to write the functionality yourself, or hire someone to figure it out for you.

    Avatar of LavishDhand
    LavishDhand
    Participant

    @lavishdhand

    @djpaul Thank you for your reply :)

    Avatar of LavishDhand
    LavishDhand
    Participant

    @lavishdhand

    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

    Avatar of Henry
    Henry
    Participant

    @henrywright-1

    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”
    }

    Avatar of LavishDhand
    LavishDhand
    Participant

    @lavishdhand

    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 :-)

    Avatar of LavishDhand
    LavishDhand
    Participant

    @lavishdhand

    @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

    Avatar of LavishDhand
    LavishDhand
    Participant

    @lavishdhand

    `

    `

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @lavishdhand
    If you want to share your solution then add the code on

    http://pastebin.com/

    And share the link here.

Viewing 10 replies - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.