Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Current version it is not possible without modifying core plugin code.
In future i will try to add this.July 9, 2021 at 10:03 pm in reply to: Remove certain roles from announcement or send to everyone #43350Shamim HasanKeymasterShamim HasanKeymasterPlease add following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_current_user_can', function( $can, $cap, $id ){ if( 'send_reply' !== $cap ) { return $can; } if( $can && $id && fep_is_group_message( $id ) ) { return false; } return $can; }, 10, 3);
Shamim HasanKeymasterDo you want to set this for all group message so that any message to any group can’t be replied?
Shamim HasanKeymasterThis plugin directly does not have profile pic upload capability. It just shows what you have in wp or gravatar setup.
If your profile pic upload not working that seems something wrong with other plugin.
Can you deactivate all other plugins and change theme to default theme then try? Then activate one by one to know which one is not working.Shamim HasanKeymasterHi again,
Yes, If one user delete a message other users cannot reply that message anymore if that option is unchecked.
This feature was added in favor of following situation:
If a user delete a message, that message does not get deleted from database, Just hidden from him. Now another user reply that message without knowing that other user already deleted that message and cannot see this thread anymore. Now that user will think that other user got that message but not replying. Thats why we restricted to send message to that thread anymore.If any admin does not have any issue with this than they can check that option.
This feature was added by user recommendation.
Shamim HasanKeymasterThank you. It seems your message (only one) deleted by another recipient of that message.
Shamim HasanKeymasterMay be any of the recipients blocked you.
You can add yourself in whitelist group in Front End PM PRO > Settings > Security to bypass blockJune 29, 2021 at 12:26 pm in reply to: Allow sending even if not a member of the receiving group? #43282Shamim HasanKeymasterWhat code you have now will allow all users to send message to any group. and except that 3 roles nobody will allowed to send to any group.
If that is ok then you can continue.
Or you can use #43262 code again (i changed a bit there) and remove your last filter.
Let me knowJune 27, 2021 at 8:12 am in reply to: Allow sending even if not a member of the receiving group? #43271Shamim HasanKeymasterCan you please send me all code added for this plugin?
June 24, 2021 at 4:02 pm in reply to: Allow sending even if not a member of the receiving group? #43262Shamim HasanKeymasterPlease change to following
// Allow administrator and manager group to send to other groups add_filter( 'fep_filter_groups_to_send_message', function( $groups ){ if( array_intersect( [ 'administrator', 'administration', 'manager' ], wp_get_current_user()->roles ) ){ return Fep_Group_Message::init()->get_all_groups(); } return $groups; });
Also with your last added code except these 3 roles nobody will be allowed to send a group message.
June 24, 2021 at 12:26 am in reply to: Allow sending even if not a member of the receiving group? #43256Shamim HasanKeymasterSorry for the confusion. Please remove those code and follow https://www.shamimsplugins.com/support/topic/latest-update-breaks-groups/#post-26896 (return conditionally if user in your desire role)
June 23, 2021 at 9:32 pm in reply to: Allow sending even if not a member of the receiving group? #43251Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php.
add_filter( 'fep_get_option', function( $value, $option ){ if( 'can-send-to-group' == $option ){ if( array_intersect( [ 'administrator', 'rolename' ], wp_get_current_user()->roles ) ){ $value = true; } else { $value = false; } } return $value; }, 10, 2 );
after that user with administrator and rolename (you can change to your actual role name) role can send message without being a member.
June 23, 2021 at 3:27 pm in reply to: Allow sending even if not a member of the receiving group? #43246Shamim HasanKeymasterYou can follow https://www.shamimsplugins.com/support/topic/allow-only-admin-to-message-groups/#post-36544
Or if you want to allow multiple user role users to send group message you can follow https://www.shamimsplugins.com/support/topic/question-about-groups-messages/#post-28661 (change roles as you want)Shamim HasanKeymaster -
AuthorPosts