Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,306 through 1,320 (of 2,484 total)
  • Author
    Posts
  • 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.

    in reply to: CPU Utilization #21853
    Shamim Hasan
    Keymaster

    How many tabs are open of your website during testing?
    How many users are testing simultaneously?
    Please use fep_filter_ajax_notification_interval hook and increase the value to 300000 and test if that helps.

    Let me know.

    in reply to: Email settings … help (please) #21851
    Shamim Hasan
    Keymaster

    Please create two test account in your website and send message from one user to another and check you they receive correctly.

    Let me know.

    in reply to: Archive bug? #21849
    Shamim Hasan
    Keymaster

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

    in reply to: Nothing works #21718
    Shamim Hasan
    Keymaster

    Please check your website now.

    in reply to: Nothing works #21706
    Shamim Hasan
    Keymaster

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

    in reply to: Nothing works #21701
    Shamim Hasan
    Keymaster

    Please follow step by step

    1. Backup your database first.
    2. delete fep_db_version option from db
    3. delete or rename any table starting with PREFIX_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.

Viewing 15 posts - 1,306 through 1,320 (of 2,484 total)