Home › Forums › Front End PM PRO › Role to Role block is working for Group
Tagged: Role to Role Block
- This topic has 10 replies, 3 voices, and was last updated 7 years, 7 months ago by David Hudgins.
- AuthorPosts
- April 29, 2018 at 11:25 am #13775VITTHAL AMBIKEParticipant
When added 3 kind of user role say A B C , i already block to sent message From A To B,
But when in group all 3 user role user are exists , then message sent from A also reaches to B , instead of reaching C,
because there is role to role block From A to B.Please resolve
April 29, 2018 at 5:19 pm #13787Shamim HasanKeymasterRole to role block is applicable only when sending direct message. Eg. if you block A to B role then A will not be able to send direct message to B.
It is not applicable when sending group or admin message.April 29, 2018 at 6:18 pm #13793VITTHAL AMBIKEParticipantIt means, My purchase will have no value.
Please give solution at least which will work around. Understand My Scenarios first. here is—
Employer Group need to send Message to Candidates Groups and vice versa ,
it should be separate by another Employer and another candidates.Please tell solution for bulk user message without adding same other user role.
April 29, 2018 at 6:54 pm #13796Shamim HasanKeymasterSo you want your Employer and Candidates can message to any group without joining that group, right?
April 29, 2018 at 8:32 pm #13811VITTHAL AMBIKEParticipantyes
April 30, 2018 at 12:06 am #13829Shamim HasanKeymasterCurrently there is no hook for this. Next version i will try to add some hook so that this can be achieved.
April 30, 2018 at 11:04 am #13865Shamim HasanKeymasterPlease go to class-fep-group-message.php line 320 and change
return $user_groups;toreturn apply_filters( 'fep_get_user_groups', $user_groups, $user_id );(this hook will be added to next version, so you will not be needed this change for next version)Then add following code in your theme’s (child theme’s if any) functions.php
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);This will allow you to send message to any group without joining that group.
May 1, 2018 at 10:59 am #13881VITTHAL AMBIKEParticipantwill it work now?,
because i changing line 320 , site geting blank ,
then i tried to put code first in function.php it also giving me error on site,
what to do?
May 1, 2018 at 9:58 pm #13893Shamim HasanKeymasterdid you replace code exactly what i gave you? Please recheck.
If still not working please give me screenshot of what you have changed.
Also let me know your PHP version.May 2, 2018 at 12:22 am #13897VITTHAL AMBIKEParticipantok, it worked fine now.
Thanks for.May 4, 2018 at 10:11 pm #14026David HudginsParticipantWell done! Thank you for this fix. I have made these additions and can confirm this works.
- 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.