Messaging to a Group


Home Forums Front End PM PRO Messaging to a Group

This topic is: Resolved
Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • #27556
    Rick Wilson
    Participant

    Brilliant plugin!

    I have amended all the settings so that users cannot message each other.

    I have a group set up called Mentors and this group has three of my users in it.

    I want all other users of my website, who aren’t in any group at all, to be able to send a message to the Mentor group so that any of my three ‘Mentors’ can reply to them.

    Is this possible?

    I absolutely love this plugin 🙂

    #27559
    Rick Wilson
    Participant
    #27562
    Rick Wilson
    Participant

    However,

    I now get this error as per attached screenshot

    Attachments:
    You must be logged in to view attached files.
    #27566
    Rick Wilson
    Participant

    This is the code im using


    add_filter( 'fep_get_user_groups', function( $user_groups, $user_id ){
    $groups = fep_get_option('gm_groups', array());
    if( $groups && is_array( $groups) ){
    foreach ( $groups as $group ) {
    $user_groups[ $group['slug'] ] = $group['name'];
    }
    }
    return $user_groups;
    }, 10, 2);

    add_filter( 'fep_filter_groups_to_send_message', function( $groups ){
    return Fep_Group_Message::init()->get_all_groups();
    });

    #27586
    Shamim Hasan
    Keymaster

    Please use only following code

    add_filter( 'fep_filter_groups_to_send_message', function( $groups ){
    	return Fep_Group_Message::init()->get_all_groups();
    });
    

    Remove other code.

    Let me know.

    #27591
    Rick Wilson
    Participant

    Thanks Shamin,

    I still get the same error: –

    Error: You must select group.

    Best wishes,

    Rick

    #27594
    Shamim Hasan
    Keymaster

    1. How many groups you have?
    2. Please send me full page screenshot of Front End PM PRO > Settings > Recipient and Front End PM PRO > Settings > Security
    3. Which role user you are logged in?

    #27603
    Rick Wilson
    Participant

    Thanks Shamim – you are so helpful!! 🙂

    1. How many groups you have?

    I have 2 – one live and one draft – see attached

    2. Please send me full page screenshot of Front End PM PRO > Settings > Recipient and Front End PM PRO > Settings > Security

    Attached

    3. Which role user you are logged in?

    Customer

    Thanks so much for helping 🙂

    Attachments:
    You must be logged in to view attached files.
    #27611
    Rick Wilson
    Participant

    See these too 🙂

    Attachments:
    You must be logged in to view attached files.
    #27643
    Shamim Hasan
    Keymaster

    I could not reproduce this in my test website. Do you have any more code for this plugin in your website?
    Can you please give me access to your website so that i can try in your website? If yes please use https://www.shamimsplugins.com/sensitive-information/ (provide Website Admin and user credentials)

    #27661
    Rick Wilson
    Participant
    This reply has been marked as private.
    #27672
    Shamim Hasan
    Keymaster

    Please test now.
    You added code in snippets plugin. Also you loaded that code only in front-end. But this plugin send message using ajax. All admin ajax load admin code also. I changed that settings to load both in front-end and back-end. Now it is working.

    #27680
    Rick Wilson
    Participant

    Thanks so much Samim!! You are so helpful 🙂

    #38507
    Rick Wilson
    Participant

    Hi Shamim

    Will that code still work with all the brilliant recent updates?

    Rick

    #38511
    Shamim Hasan
    Keymaster

    Yes, it will.
    Let me know if it doesn’t.

Viewing 15 posts - 1 through 15 (of 16 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.