Shamim Hasan

Forum Replies Created

Viewing 15 posts - 1,651 through 1,665 (of 2,486 total)
  • Author
    Posts
  • in reply to: Announcement not sending emails #16260
    Shamim Hasan
    Keymaster

    I have also activated WP Crontrol and in WP-Cron Events this plugin event callback is showing (see screenshot). So maybe some other plugin/code is removing this.
    Please change “Sending Interval” to 2 minutes and save changes. Then see if that register cron event again. You can do this couple of times (every time change by 1 or 2 minutes)

    Let me know.

    Attachments:
    You must be logged in to view attached files.
    Shamim Hasan
    Keymaster

    Please go to Dashboard > Front End PM PRO > Settings > General > Time delay

    in reply to: Announcement not sending emails #16249
    Shamim Hasan
    Keymaster

    I have tested again now and working correctly.
    Please check following
    1. Your website can run cron. There are many plugins out there to check.
    2. Go to Dashboard > Front End PM PRO > Emails and check all the fields are filled. Eg. Announcement subject, Announcement content.
    3. refresh your website couple of times after time ends. Eg. you set 1 minute. Then after 1 minute refresh your website
    4. Reduce “Emails send per interval” to 10
    5. If you use any customized email template, make sure no errors are there. Also check your server log if any error there.
    6. You can also check https://codex.wordpress.org/Editing_wp-config.php#Alternative_Cron

    Let me know.

    in reply to: Problem with sending emails #16242
    Shamim Hasan
    Keymaster

    instead of 10 use higher priority.

    in reply to: Translate "Read by…" #16238
    Shamim Hasan
    Keymaster

    If you follow that tutorial step by step, any missing string will be there.

    In your case, click update button (right button of top 4 buttons) should do the trick.

    in reply to: Translate "Read by…" #16232
    Shamim Hasan
    Keymaster
    in reply to: Usage with Woocommerce – custom my account item #16200
    Shamim Hasan
    Keymaster

    I have updated above code. Please use this code.

    in reply to: Using admin only – how can admin send emails to anyone? #16198
    Shamim Hasan
    Keymaster

    You can use conditional
    eg.

    add_filter( 'fep_menu_buttons', function( $menu ) {
        if ( isset( $_GET['fepaction'] ) && $_GET['fepaction'] == 'message_box' ){
        $menu['cus_button'] = array(
            'title'		=> __( 'Edit', 'front-end-pm' ),
    	'action'	=> 'edit',
            'class'         => 'fep-button your_unique_class',
    	'priority'	=> 15,
        );
        }
        return $menu;
    });
    
    in reply to: Usage with Woocommerce – custom my account item #16193
    Shamim Hasan
    Keymaster

    add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_query_url_without_esc_filter', function( $url, $args ){
        $url = add_query_arg( $args, 'http://example.com/my-page/messages' ); //your page url
        return $url;
    }, 10, 2 );
    
    in reply to: Usage with Woocommerce – custom my account item #16185
    Shamim Hasan
    Keymaster

    Is it a page? Does this have any page id?

    in reply to: Announcement not sending emails #16184
    Shamim Hasan
    Keymaster

    Please do not commented that out.
    PRO version announcement emails use queue system. read more in https://www.shamimsplugins.com/docs/front-end-pm-pro/getting-started-2/announcement-email-queue/
    See your setup and wait at least that much time. You can reduce time in setup to trigger quickly. As wordpress cron require visitor to work, make sure you have visitor.

    Let me know.

    in reply to: Problem with sending emails #16183
    Shamim Hasan
    Keymaster

    Please use fep_filter_before_email_send filter

    in reply to: Using admin only – how can admin send emails to anyone? #16181
    Shamim Hasan
    Keymaster

    I am sorry, had a typo in code. I have corrected it is last reply. please use that code.

    To add a menu button with unique class add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_menu_buttons', function( $menu ) {
        $menu['cus_button'] = array(
            'title'		=> __( 'Edit', 'front-end-pm' ),
    	'action'	=> 'edit',
            'class'         => 'fep-button your_unique_class',
    	'priority'	=> 15,
        );
        return $menu;
    });
    
    in reply to: Using admin only – how can admin send emails to anyone? #16167
    Shamim Hasan
    Keymaster

    You can use Role to Role block feature. Please go to Front End PM PRO > Settings > Security > Role to Role Block
    Set “From Role” as any role (except Administrator as you want admin to send message ), “To Role” as “All Roles” and “Block For” as “New Message”. This block other role users from sending new message (They can send message to admin, if you set that).

    For changing order add following code in your theme’s (child theme’s if any) functions.php

    add_filter( 'fep_menu_buttons', function( $menu ) {
        $menu['message_box']['priority'] = 1;
        $menu['newmessage']['priority'] = 2;
        $menu['announcements']['priority'] = 3;
        $menu['directory']['priority'] = 4;
        $menu['settings']['priority'] = 5;
        return $menu;
    }, 50 );
    
    in reply to: Problem with sending emails #16165
    Shamim Hasan
    Keymaster

    No need to create legend for that.

    Proceed in following way.

    1. register your email template

    add_filter( 'fep_eb_templates', function( $templates, $where ) {
      $templates['new_message'] = 'Nieuw bericht';
      return $templates;
    }, 10, 2 );
    

    2. Now in emails/new_message.php file use

    $language = get_user_meta( fep_get_userdata( $user_email, 'ID', 'email'), 'icl_admin_language', true );
    
    if( 'fr' == $language ){
        require( fep_locate_template( 'emails/new_message_fr.php' ) );
    }
    

    Let me know.

Viewing 15 posts - 1,651 through 1,665 (of 2,486 total)