hamed

Forum Replies Created

Viewing 8 posts - 16 through 23 (of 23 total)
  • Author
    Posts
  • in reply to: Display the email address of the message sender #44731
    hamed
    Participant

    On the page where the content of the sent message can be seen.

    hamed
    Participant

    Yes,
    Each author has her own page where the titles of the her articles written on the site, can be seen.

    in reply to: Add a new field to form by typing the date #44699
    hamed
    Participant

    Dear Shamim,
    Thank you very much for the help you give me.
    To add the date selection field, I added the following code, but nothing is displayed.

    Can you tell me what I should change?

    add_filter( ‘fep_form_field_output_date’, function( $fields ){
    $fields[‘cus_fep_test’] = [
    ‘type’ => ‘date’,
    ‘where’ => ‘newmessage’,
    ‘priority’ => 12,
    ‘label’ => ‘Test’,
    ];
    return $fields;
    });

    add_action( ‘fep_action_message_after_send’, function( $message_id, $message, $new_message ){
    if ( ! empty( $message[‘cus_fep_test’] ) ) {
    fep_add_meta( $message_id, ‘cus_fep_test’, $message[‘cus_fep_test’], true );
    }
    }, 10, 3);

    add_action( ‘fep_display_after_message’, function(){
    if ( $cus_fep_test = fep_get_meta( fep_get_the_id(), ‘cus_fep_test’, true ) ) {
    echo ‘<div>Test : ‘; echo esc_html( $cus_fep_test ) . ‘</div>’;
    }
    });

    in reply to: email notifications are not received #44697
    hamed
    Participant

    thank you so much.
    that was perfect.

    in reply to: email notifications are not received #44689
    hamed
    Participant

    I saw this page but I don’t understand what to do.
    I want to display the content of the new fields I added to the form in the body of the email.
    For this, which part of the own email tag codes should I change?

    in reply to: email notifications are not received #44667
    hamed
    Participant

    What should I do?

    Attachments:
    You must be logged in to view attached files.
    in reply to: email notifications are not received #44663
    hamed
    Participant

    Thank you for your quick response.
    problem solved.
    Email sending was blocked from the server, so I activated it.

    I use some additional fields in the form.
    I want to display the details of these fields in the email received by people.
    What should I do?

    Attachments:
    You must be logged in to view attached files.
    in reply to: Add select field to form #44653
    hamed
    Participant

    I found the solution.
    I am writing the solution here so that if anyone needs it, it can be used:

    add_filter( ‘fep_form_fields’, function( $fields ){
    $fields[‘cus_fep_textbox41’] = [
    ‘type’ => ‘select’,
    ‘where’ => ‘newmessage’,
    ‘priority’ => 12,
    ‘label’ => ‘Title’,
    ‘options’ => array(
    ‘test1’ => __( ‘Test1’),
    ‘test2’=> __( ‘Test2’),
    ),
    ];
    return $fields;
    });
    add_action( ‘fep_action_message_after_send’, function( $message_id, $message, $new_message ){
    if ( ! empty( $message[‘cus_fep_textbox41’] ) ) {
    fep_add_meta( $message_id, ‘cus_fep_textbox41’, $message[‘cus_fep_textbox41’], true );
    }
    }, 10, 3);
    add_action( ‘fep_display_after_message’, function(){
    if ( $cus_fep_textbox41 = fep_get_meta( fep_get_the_id(), ‘cus_fep_textbox41’, true ) ) {
    echo ‘<div>Ville : ‘; echo esc_html( $cus_fep_textbox41 ) . ‘</div>’;
    }
    });

Viewing 8 posts - 16 through 23 (of 23 total)