Home › Forums › Front End PM PRO › Messages panel
- This topic has 3 replies, 2 voices, and was last updated 5 years, 7 months ago by Shamim Hasan.
- AuthorPosts
- May 15, 2020 at 11:11 pm #37691tomas hlatkyParticipant
Hi
It is quite confusing. Could i see the names of the users in involved in the message chat rather than the last response name?
Looks like i am chatting with myself…
Thank youAttachments:You must be logged in to view attached files.May 16, 2020 at 12:29 am #37695Shamim HasanKeymasterAs this plugin support multiple recipients, showing other users name is little confusing as there may have more than one receiver. If you support to send message to only one receiver then you can follow following approach.
If you want to show other users avatar add following code in your theme’s (child theme you are using one) functions.php
add_filter( 'fep_remove_own_avatar_from_messagebox', '__return_true' );If you want to show other user name add following code in your theme’s (child theme you are using one) functions.php
add_action( 'fep_message_table_column_content_author', function(){ $participants = fep_get_participants( fep_get_the_id() ); foreach( $participants as $participant ) { if ( get_current_user_id() != $participant ) { ?><span class="fep-message-author"><?php echo fep_user_name( $participant ); ?></span><span class="fep-message-date"><?php echo fep_get_the_date( 'mgs_last_reply_time' ); ?></span><?php break; } } });May 18, 2020 at 3:12 am #37737tomas hlatkyParticipantThis works great.
But when i open one mesage chain, the user name dissapearsAttachments:You must be logged in to view attached files.May 18, 2020 at 1:25 pm #37768Shamim HasanKeymasterRecipients name never shows in that page as multiple recipients issue. If i get a better idea how to show the name including multiple recipients case, i will add that in future version.
If you want now you can edit
view-message-heads.phptemplate following https://sp-test1.arogga.co/docs/front-end-pm-pro/customization-front-end-pm-pro/change-templates/ - 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.