Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
Add following code in your theme’s (child theme’s if any) functions.php
add_action( 'fep_action_validate_form', function( $where, $errors ){ if ( $errors->get_error_message( 'MgsBoxFull' ) ){ $errors->remove( 'MgsBoxFull' ); $errors->add( 'MgsBoxFull', __( 'Your custom message here.', 'front-end-pm' ) ); } }, 15, 2 );
Shamim HasanKeymasterRemove previous code and add following code in your child theme’s functions.php
add_action( 'init', function() { if ( class_exists( 'Fep_Email_Beautify' ) ) { remove_action( 'wp_loaded', array( Fep_Email_Beautify::init(), 'announcement_email_send' ), 12 ); add_filter( 'fep_filter_before_announcement_email_send', array( Fep_Email_Beautify::init(), 'filter_before_email_send' ), 10, 2 ); } }, 12 );
This is a non standard solution. This may break in future.
Shamim HasanKeymasterAdd following code in your theme’s (child theme’s if you are using) functions.php
add_action( 'init', function() { if ( class_exists( 'Fep_Email_Beautify' ) ) { remove_action( 'wp_loaded', array( Fep_Email_Beautify::init(), 'announcement_email_send' ), 12 ); } }, 12 );
February 22, 2019 at 11:03 pm in reply to: Email Notification to Admin for Message sent by New User #21931Shamim HasanKeymasterYou can use
fep_filter_send_email_participants
hook to add your admin user id. That will send email to that user also. You can conditionally add your user id for only first message.February 22, 2019 at 10:58 pm in reply to: BUG Block user & File upload Google Chrome Mobile(IOS) #21929Shamim HasanKeymasterIt seems it is an ios bug.
Please go to this plugins’s block-unblock.js and remove line 5,6 & 7 (remove following code)if ( ! $( element ).hasClass( 'fep_user_blocked' ) && ! confirm( fep_block_unblock_script.confirm.replace( '%s', $( element ).data( 'user_name' ) ) ) ) { return false; }
Then clear your browser cache and test.
February 22, 2019 at 12:45 am in reply to: BUG Block user & File upload Google Chrome Mobile(IOS) #21898Shamim HasanKeymasterSorry for late reply. I had to setup for mobile debugging.
I have tested it with a chrome browser in android phone and working correctly.Can you please deactivate all other plugins and change theme to default theme (eg. tweentysixteen) then test.
Shamim HasanKeymasterYou can use like
<button value="Refresh Page" onClick="window.location.reload()">
February 21, 2019 at 11:52 pm in reply to: Open the messagebox>inbox with only messages from a specified user #21894Shamim HasanKeymasterCurrently you can use
fep_filter_message_query_sql
hook to change sql and return your desire messages.
We cannot pass multiple user id now to query. I have changed the query class so that we can pass multiple user id query. Next version you will get this. Then we will be able to easy achieve this.You can see this changes in https://github.com/shamim2883/front-end-pm/commit/5786895fc0d01c07694c711331201942d2300b15
after this changes we can easily use hook like bellow
add_filter( 'fep_message_query_args', function( $args, $user_id ) { $args['participant_query'][] = array( 'mgs_participant' => 4, //which user messages you want to show with current user 'mgs_deleted' => false, ); return $args; }, 10, 2 );
Shamim HasanKeymasterCurrently you can use
fep_action_announcement_after_added
hook and remove those users usingFEP_Participants::init()->delete( $announcement_id, $participant_id );
To ease this steps i have added a new filter here. Next version you will get this filter. Using this filter you will be able to remove those users before adding to database which will significantly improve performance.
Shamim HasanKeymasterHow many tabs are open of your website during testing?
How many users are testing simultaneously?
Please usefep_filter_ajax_notification_interval
hook and increase the value to300000
and test if that helps.Let me know.
Shamim HasanKeymasterPlease create two test account in your website and send message from one user to another and check you they receive correctly.
Let me know.
Shamim HasanKeymasterCurrently archive message is shown in archive tab also in all other tabs as appropriate.
and thank you for suggestion. I will note it for future consideration.
Shamim HasanKeymasterPlease check your website now.
Shamim HasanKeymasterI think you are not familiar with code.
Do you want me to correct this for you? If yes, please give me your cpanel and admin access. Please use https://www.shamimsplugins.com/sensitive-information/ to send credentials.Shamim HasanKeymasterPlease follow step by step
1. Backup your database first.
2. deletefep_db_version
option from db
3. delete or rename any table starting withPREFIX_fep_
4. Then update to latest version of the plugin of not already
5. Then click “Proceed” when shows database update notice. Then start update. Wait until it finish.Let me know.
-
AuthorPosts