test programmer

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 16 total)
  • Author
    Posts
  • in reply to: Visual composer with announcements #19183
    test programmer
    Participant
    This reply has been marked as private.
    in reply to: Extra setting send mail / sms #17502
    test programmer
    Participant

    I’ve tried to do update_post_meta( $announcement_id, '_fep_email_sent', time() ); in the action fep_save_announcement but it still got send.

    in reply to: Extra setting send mail / sms #17499
    test programmer
    Participant

    The save function is not like this?

    add_action( 'fep_save_message', 'before_save_message', 100, 3 );
    
    function before_save_message( $message_id, $message, $update ){
    
    }
    in reply to: Extra setting send mail / sms #17478
    test programmer
    Participant

    I also don’t want to show an error, I want to prevent email sending. How can I do that?

    in reply to: Extra setting send mail / sms #17476
    test programmer
    Participant

    I’m using version 8.4.1. I’m trying to add an announcement in the backend. How can I make sure the checkboxes are added?

    in reply to: 'To' Autocomplete not working on mobile #16642
    test programmer
    Participant

    Hi Matt,

    Any solution? I have the same problem.

    Thanks.

    in reply to: Activation limit #16324
    test programmer
    Participant

    Hi Shamim,
    I didn’t change site… still working on the same. Also i didn’t use the license for another site…

    in reply to: Announcement not sending emails #16276
    test programmer
    Participant

    I’ve tried to change the interval a couple of times but with no result. The event still doesn’t show in the overview.

    Then I tried to reinstall the plugin. After installation the event was shown in the overview. But after applying my settings (that were set before reinstalling) the event is no longer shown in overview.

    What could be the cause of this? Is it an option you take a look in the backoffice?

    in reply to: Announcement not sending emails #16255
    test programmer
    Participant

    1. I’ve installed the WP Crontrol plugin. In the WP-Cron Schedules overview I see the following. There is the fep_ann_email_interval schedule that should run every minute. In the overview of Cron events that you can see here, I don’t see any events related to sending announcement emails.
    2. Template is selected, subject is filled in, content not (because of template).
    3. Done.
    4. Done
    5. Server logs are not showing any errors. Also, wordpress logging is not logging anything.
    6. Added define( 'ALTERNATE_WP_CRON', true ); to wp-config.php but no change.

    It’s really strange, you have any other ideas?

    Attachments:
    You must be logged in to view attached files.
    in reply to: Announcement not sending emails #16243
    test programmer
    Participant

    I’ve set my interval at 1 minute.

    I first tried to send announcements with the setting “Send an e-mail to all users when a new message is place” turned on. When I create an announcement, no mails are sent to the receivers. Also, in the overview of messages it shows “emails sent – 0/2”.

    when I switch the setting off then in the overview it shows “emails sent – “2/2”. But I still don’t receive emails.

    What could be the problem here? (I’ve always waited more than 1 minutes before checking)

    in reply to: Problem with sending emails #16240
    test programmer
    Participant

    I’ve tried this:

    
    add_filter( 'fep_filter_before_email_send', 'change_email_subject', 10, 3 );
    
    function change_email_subject($content, $post, $user_email)
    {
      $current_language = apply_filters( 'wpml_current_language', NULL );
    
      $language = get_user_meta( fep_get_userdata( $user_email, 'ID', 'email'), 'icl_admin_language', true );
    
      // set language of user
      do_action( 'wpml_switch_language', $language );
    
      $subject = "";
    
      if($post->post_type == "fep_message")
      {
          $subject = sprintf( __('ZOUTE GRAND PRIX®: New message', 'zoute_theme' ));
      }
    
      $content['subject'] = $subject;
    
      do_action( 'wpml_switch_language', $current_language );
    
      return $content;
    }
    

    When I try to dump the $content before returning it, the subject is changed correctly. The content of the message itself not (but is changed afterwards with template in /emails folder).

    But when I receive the email, the subject is not changed. It’s overwritten by the subject configured in backoffice.

    Why doesn’t it work?

    in reply to: Problem with sending emails #16169
    test programmer
    Participant

    Thank you! Works perfect! Do you also know how I can change the subject of the mail? So it’s translated?

    in reply to: Problem with sending emails #16160
    test programmer
    Participant

    I now have the following:

    
    add_filter( 'fep_eb_email_legends', 'fep_cus_fep_email_legends', 10, 3);
    
    function fep_cus_fep_email_legends( $legends, $post, $user_email ){
    
        $user = get_user_by( 'email', $user_email );
    
        $language = get_user_meta( (int)$user->ID, 'icl_admin_language', true );
    
        $legends['receiver_language'] = array(
            'description' => __('Receiver language', 'front-end-pm'),
            'where' => array( 'newmessage', 'reply', 'announcement' ), //where this tag will be used
            'replace_with' => $language
        );
    
        return $legends;
    }
    
    add_filter( 'fep_eb_templates', 'fep_cus_fep_eb_templates', 10, 2 );
    
    function fep_cus_fep_eb_templates( $templates, $where )
    {
      $templates['new_message'] = 'Nieuw bericht';
      return $templates;
    }
    

    In my template I have the language by the added field receiver_language.

    But how can I use this in my template in an if structure?

    Is this the way I should do this?

    in reply to: Licence error #16128
    test programmer
    Participant
    This reply has been marked as private.
    in reply to: Licence error #16123
    test programmer
    Participant
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 16 total)