NooTheme Premium WordPress Theme › Forums › JobMonster › Messages – Change displayed name
- This topic has 9 replies, 2 voices, and was last updated 5 years, 1 month ago by dbcstrauss.
-
AuthorPosts
-
5 years, 2 months ago #1081439
Hi guys,
I would like to change the displayed name on the messages board. Instead of appearing the name of the last sender, I would like to have always displayed the name of the person to whom the message is sent.
Because, as you can see in the image below, when you have a lot of messages and it's the company it self the last sending a message it becomes really confusing to look for a certain group of messages.
Cheers,
Daniel C.
5 years, 2 months ago #10814445 years, 2 months ago #1081485Hi tinhbeng, I'm not referring to the name displayed in the list. What I'm saying is that, instead appearing the name of the last person that have sent a message, it would always appear the name of the person to whom the message was sent.
As you can see in my first print, the department was the last one sending a message in those threads, so the in the list si always:
- Human Resources
- Human Resources
- Human Resources
- Human Resources
In a long list of messages, this is really confusing since you're looking for a specific person and that person doesn't even have an avatar, we can't simply find it. So, my question is if we can put the name of the person to whom the message is sent, and then would be like:
- John Doe
- Riahana Dart
- Morty Clinge
- ....
Thanks in advance,
Cheers
5 years, 2 months ago #1081501Hi,
I'm waiting for a response from the author of the plugin "Front End PM".
Hope he can help.
Best regards,
tb.
5 years, 2 months ago #1081553Hi tinhbeng, any news about this?
Cheers,
Daniel C
5 years, 1 month ago #1081629Hey guys,
did the author said anything already?
Cheers,
Daniel C.
5 years, 1 month ago #1081635Hi,
They answered but not really clear.
You can follow this topic in here:
https://wordpress.org/support/plugin/front-end-pm/
Best regards,
tb.
5 years, 1 month ago #1081688Hi, I'm following, but not getting it.
5 years, 1 month ago #1081710Hi,
You can add these lines to functions.php of Child Theme:
function fep_custom_name(){
$a = fep_get_participants( fep_get_the_id() );
$b = get_current_user_id();
$get = $b;
foreach ($a as $v) {
if($v != $b) $get = $v;
}
echo fep_user_name( $get );
}
add_action( 'fep_message_table_column_content_author', 'fep_custom_name');
Hope it helps!.
Best regards,
tb.
5 years, 1 month ago #1081778Hey, all good. Thanks a lot.
Cheers,
Daniel C.
-
AuthorPosts
You must be logged in and have valid license to reply to this topic.