Reply To: How to link the participants name and their avatar to their profile?


Home Forums Front End PM PRO How to link the participants name and their avatar to their profile? Reply To: How to link the participants name and their avatar to their profile?

#39241
Shamim Hasan
Keymaster

add following code in your theme’s (child theme’s if you are using) functions.php

add_action( 'fep_message_table_column_content_author', function(){
    if( 'threaded' === fep_get_message_view() ){
		?><span class="fep-message-author"><a href="https://yoursite.com/<?php echo fep_get_userdata( fep_get_message_field( 'mgs_last_reply_by' ), 'user_nicename', 'id' );?>/"><?php echo fep_user_name( fep_get_message_field( 'mgs_last_reply_by' ) ); ?></a></span><span class="fep-message-date"><?php echo fep_get_the_date( 'mgs_last_reply_time' ); ?></span><?php
	} else {
		?><span class="fep-message-author"><a href="https://yoursite.com/<?php echo fep_get_userdata( fep_get_message_field( 'mgs_author' ), 'user_nicename', 'id' );?>/"><?php echo fep_user_name( fep_get_message_field( 'mgs_author' ) ); ?></a></span><span class="fep-message-date"><?php echo fep_get_the_date( 'created' ); ?></span><?php
	}
});