Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Add following code in your theme’s (child theme’s if any) functions.php
add_action( 'admin_menu', function(){ remove_submenu_page( 'fep-all-messages', 'fep-all-messages' ); }, 11 );
Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if any) functions.php
add_action( 'admin_menu', function(){ remove_menu_page( 'fep-all-messages' ); }, 11 );
November 3, 2018 at 11:15 pm in reply to: Viewing Attachment rather than downloading attachment #18763Shamim HasanKeymasterDo you know how to use wordpress hook? You can use
fep_filter_attachment_download_link
filter hook so that you can update this plugin without losing changes.Shamim HasanKeymasterDid you removed that code from your theme’s functions.php?
November 3, 2018 at 10:59 pm in reply to: a not-admin role able to view directory and send new announcement #18759Shamim HasanKeymasterExclude your message/announcement page from caching.
Shamim HasanKeymasterIf we do not save message to database we can not track that message and also when somebody will reply from email we will not know which message they replied to.
October 31, 2018 at 12:02 am in reply to: Send separate message for each member for group message #18683Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if any) functions.php
add_filter( 'fep_directory_arguments', function( $args ){ if ( ! empty( $_GET['fep-search'] ) && in_array( $_GET['fep-search'], [ 'Individual', 'Corporate' ] ) ) { $args['meta_query'][] = [ 'key' => 'group_type', 'value' => $_GET['fep-search'], ]; unset( $args['search'] ); } return $args; });
(untested).
if you search users with Individual or Corporate (case sensitive) then they will be searched with that meta.
October 30, 2018 at 11:46 pm in reply to: Feature request – the ability to set scheduled announcements. #18681Shamim HasanKeymasterThank you for your nice suggestion.
I am already working on that. When design new database for this plugin i already thought of that and make a way so that i can now easily done that.
I am just deciding which code i will use to select date and time. May be next major version you will get this feature.October 30, 2018 at 2:19 pm in reply to: a not-admin role able to view directory and send new announcement #18667Shamim HasanKeymasterPlease let me know following
1. All users of client roles can view directory & add announcements?
2. Please send me capabilities of client role. (which plugin add this role? To know what i mean with capabilities please see https://codex.wordpress.org/Roles_and_Capabilities)Please add following code in your theme’s (child themes if any) functions.php
add_filter( 'fep_admin_cap', function( $admin_cap ){ return 'administrator'; });
If still it does not work then i need to debug your website with php code. You can deactivate all plugins except this and change theme to one of default theme (unmodified). Then test. Then activate one by one.
OR you can give me FTP access (only wp-content directory access is ok) so that i can debug your website. If you give me FTP access please use https://www.shamimsplugins.com/sensitive-information/Shamim HasanKeymasterIt seems you have edited it wrong. You did not deleted red area in left hand side of that github commit.
Please replace all code of class-fep-messages.php with https://github.com/shamim2883/front-end-pm/blob/master/includes/class-fep-messages.phpLet me know.
Shamim HasanKeymasterDid you check Front End PM PRO > Settings > Security > Can permitted users add Announcement from front end?
October 29, 2018 at 10:50 pm in reply to: Send separate message for each member for group message #18642Shamim HasanKeymasterGroup message works in a different way then multiple recipient.
If you want separate message for each members then multiple recipients option is what you want. You can select multiple recipients from Directory and send message to them (Select “Send Message” from Bulk Action dropdown) so that you do not need to type user name one by one. Or you can collect your users ids, Then go to “New Message” and in url paste like&fep_mr_to=1,2,3
(where 1,2,3 is user ids separated by comma) then press “Enter”. This will fill up your “To” field with those users so that you do not need to type one by one.October 29, 2018 at 12:30 pm in reply to: a not-admin role able to view directory and send new announcement #18626Shamim HasanKeymaster1. All users of client roles can view directory & add announcements?
2. Please send me capabilities of client role.Shamim HasanKeymasterPlease make this changes https://github.com/shamim2883/front-end-pm/commit/ffbb4fea311fdb23073adf686f5fcb5893b36fbc
October 29, 2018 at 7:53 am in reply to: a not-admin role able to view directory and send new announcement #18616Shamim HasanKeymasterDo you have any custom code for this plugin?
Did you add that user as whitelisted in Front End PM PRO > Settings > Security? -
AuthorPosts