Home › Forums › Front End PM PRO › Messaging to a Group
- This topic has 15 replies, 2 voices, and was last updated 5 years, 6 months ago by Rick Wilson.
- AuthorPosts
- August 1, 2019 at 4:42 pm #27556Rick WilsonParticipant
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 🙂
August 1, 2019 at 5:17 pm #27559Rick WilsonParticipantI worked it out from here 🙂
https://sp-test1.arogga.co/support/topic/latest-update-breaks-groups/
August 1, 2019 at 5:24 pm #27562Rick WilsonParticipantHowever,
I now get this error as per attached screenshot
Attachments:You must be logged in to view attached files.August 1, 2019 at 5:27 pm #27566Rick WilsonParticipantThis 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();
});August 2, 2019 at 1:56 am #27586Shamim HasanKeymasterPlease 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.
August 2, 2019 at 3:41 am #27591Rick WilsonParticipantThanks Shamin,
I still get the same error: –
Error: You must select group.
Best wishes,
Rick
August 2, 2019 at 10:04 am #27594Shamim HasanKeymaster1. 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?August 2, 2019 at 3:53 pm #27603Rick WilsonParticipantThanks 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.August 2, 2019 at 3:55 pm #27611Rick WilsonParticipantAugust 3, 2019 at 1:03 am #27643Shamim HasanKeymasterI 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://sp-test1.arogga.co/sensitive-information/ (provide Website Admin and user credentials)August 3, 2019 at 12:35 pm #27661Rick WilsonParticipantThis reply has been marked as private.August 3, 2019 at 3:04 pm #27672Shamim HasanKeymasterPlease 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.August 3, 2019 at 4:22 pm #27680Rick WilsonParticipantThanks so much Samim!! You are so helpful 🙂
June 14, 2020 at 9:54 pm #38507Rick WilsonParticipantHi Shamim
Will that code still work with all the brilliant recent updates?
Rick
June 15, 2020 at 11:16 am #38511Shamim HasanKeymasterYes, it will.
Let me know if it doesn’t. - AuthorPosts
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.