Home › Forums › Front End PM PRO › Minor changes to message template
- This topic has 5 replies, 2 voices, and was last updated 4 years, 10 months ago by Shamim Hasan.
- AuthorPosts
- January 20, 2021 at 1:41 pm #42264eyal.rosenParticipant
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.January 20, 2021 at 1:52 pm #42268eyal.rosenParticipantSorry, one more. “Attach more files” (“s” missing). See screenshot.
Much appreciated.
Attachments:You must be logged in to view attached files.January 21, 2021 at 11:11 am #42279Shamim HasanKeymasterNo 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 );January 26, 2021 at 1:08 pm #42352eyal.rosenParticipantAmazing! Thanks 🙂
January 28, 2021 at 2:47 pm #42388eyal.rosenParticipantHi 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.January 30, 2021 at 3:06 pm #42407Shamim HasanKeymasterIf 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. - AuthorPosts
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.