Minor changes to message template


Home Forums Front End PM PRO Minor changes to message template

This topic is: Resolved
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #42264
    eyal.rosen
    Participant

    Hi,

    I’d like to make the following changes (see attached image). Can you please guide me?

    Much appreciated

    Attachments:
    You must be logged in to view attached files.
    #42268
    eyal.rosen
    Participant

    Sorry, one more. “Attach more files” (“s” missing). See screenshot.

    Much appreciated.

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

    No 1 & 2: You can wait for the next release as we already added a space there. Or you can add a space in https://github.com/shamim2883/front-end-pm/blob/25abae8891de1707324e54575eacbc3551a6eeca/templates/view-message-content.php#L53

    No 5: You can wait for the next release as we already added a “s” there. Or you can add a “s” in https://github.com/shamim2883/front-end-pm/blob/25abae8891de1707324e54575eacbc3551a6eeca/includes/class-fep-form.php#L368

    (Both in this plugin in your website’s copy)

    For no 3 & 4: add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'fep_filter_read_receipt_individual', function( $mgs_read, $mgs_participant ){
        return '<div class="fep-read-receipt-individual">' . sprintf( __( 'Read by %1$s on %2$s GMT', 'front-end-pm' ), fep_user_name( $mgs_participant ), get_date_from_gmt( date( 'Y-m-d H:i:s', $mgs_read ), get_option( 'date_format' ) . ' ' . get_option( 'time_format' ) ) ) . '</div>';
    }, 10, 2 );
    
    #42352
    eyal.rosen
    Participant

    Amazing! Thanks 🙂

    #42388
    eyal.rosen
    Participant

    Hi Shamim,

    We implemented your code for #3 & #4. It has issues. please see the attached image.

    Regards.

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

    If you remove this code does name shows?
    Can you please give me a screenshot of the code where you added?
    To show GMT+-X please add that after GMT in the code above.

Viewing 6 posts - 1 through 6 (of 6 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.