Shamim Hasan
Forum Replies Created
-
AuthorPosts
-
Shamim HasanKeymaster
I see those 2 keys are completely different.
Shamim HasanKeymasterI may go outside of Internet. Next expected available date is 5th march. I will address all 3 questions of your when i am back.
Shamim HasanKeymaster1. Backup your database first.
2. Download version 8.x from https://wordpress.org/plugins/front-end-pm/advanced/ and upload in your website.
3. Visit your website admin area. It should redirect you to update page. If not visit Front End PM > Settings > Update. Wait until finish.
4. Visit your message page and see if you see your messages. It YES, delete database table starting with PREFIX_fep_. If you do not see your messages then do not delete database table. let me know instead.
5. Now update to latest version. After update you should see an admin notice for database update. Click “Proceed”.Let me know.
My next answer may delay as i may go outside of internet. Expected available date 5th march
Shamim HasanKeymasteradd following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_filter_ajax_notification_interval', function( $interval ){ return 2 * MINUTE_IN_SECONDS * 1000; });
This will make request every after 2 minutes. You can change 2 to anything you want.
February 24, 2019 at 3:28 pm in reply to: BUG Block user & File upload Google Chrome Mobile(IOS) #22001Shamim HasanKeymasterThis is not problem with website. It is a bug of IOS mobile. as most of the page with jQuery uses alert and confirm js function, IOS bug freeze that time.
You can google to find more.Shamim HasanKeymasterI have updated above code. Please use this code.
Shamim HasanKeymasterAdd 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.
-
AuthorPosts