Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,276 through 1,290 (of 2,460 total)
  • Author
    Posts
  • in reply to: Coding issue #22209
    Shamim Hasan
    Keymaster

    I see those 2 keys are completely different.

    in reply to: Inconsistent view of messages with new lines #22107
    Shamim Hasan
    Keymaster

    I may go outside of Internet. Next expected available date is 5th march. I will address all 3 questions of your when i am back.

    in reply to: Missing Basic Functionality #22106
    Shamim Hasan
    Keymaster

    1. 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

    in reply to: Admin-ajax requests #22036
    Shamim Hasan
    Keymaster

    add 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.

    in reply to: BUG Block user & File upload Google Chrome Mobile(IOS) #22001
    Shamim Hasan
    Keymaster

    This 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.

    in reply to: Announcement #21999
    Shamim Hasan
    Keymaster

    I have updated above code. Please use this code.

    in reply to: How to modify error messages? #21994
    Shamim Hasan
    Keymaster

    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 );
    
    in reply to: Announcement #21992
    Shamim Hasan
    Keymaster

    Remove 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.

    in reply to: Announcement #21975
    Shamim Hasan
    Keymaster

    Add 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 );
    
    in reply to: Email Notification to Admin for Message sent by New User #21931
    Shamim Hasan
    Keymaster

    You 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.

    in reply to: BUG Block user & File upload Google Chrome Mobile(IOS) #21929
    Shamim Hasan
    Keymaster

    It 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.

    in reply to: BUG Block user & File upload Google Chrome Mobile(IOS) #21898
    Shamim Hasan
    Keymaster

    Sorry 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.

    in reply to: CPU Utilization #21895
    Shamim Hasan
    Keymaster

    You can use like <button value="Refresh Page" onClick="window.location.reload()">

    Shamim Hasan
    Keymaster

    Currently 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 );
    
    in reply to: Sending messages for large numbers of users #21855
    Shamim Hasan
    Keymaster

    Currently you can use fep_action_announcement_after_added hook and remove those users using FEP_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.

Viewing 15 posts - 1,276 through 1,290 (of 2,460 total)