Home › Forums › Front End PM PRO › How to link the participants name and their avatar to their profile?
Tagged: link to profile
- This topic has 16 replies, 2 voices, and was last updated 5 years, 4 months ago by iou.wedding.
-
AuthorPosts
-
July 12, 2020 at 11:18 am #39203iou.weddingParticipant
Hi,our user’s profile link= https://oursite.com/usrname/
can you help me ?
Thank you!!July 12, 2020 at 11:42 am #39224Shamim HasanKeymasterJuly 12, 2020 at 11:55 am #39226iou.weddingParticipantHi,Thank you for your quick reply,but on oursite,the fep name is nickname,our user profile link is http://mysite.com/username.
So I don’t know how to Modify the code.
Can you help me? Thank you!July 12, 2020 at 12:02 pm #39228Shamim HasanKeymasteradd following code in your theme’s (child theme’s if you are using) functions.php
add_filter( 'fep_filter_user_name', function( $name, $id ){ if ( $name && fep_get_the_id() ) { $name = '<a href="https://yoursite.com/'. fep_get_userdata( $id, 'user_nicename', 'id' ) . '/">' . $name . '</a>'; } return $name; }, 10, 2);July 12, 2020 at 12:22 pm #39230iou.weddingParticipantIt works perfect!
Thank you!
But another question, Can the name of this place not be displayed?
Please refer to the attachment.Attachments:You must be logged in to view attached files.July 12, 2020 at 7:49 pm #39233Shamim HasanKeymasterSo you want to show link to profile only in this attachment marked names, right?
Attachments:You must be logged in to view attached files.July 12, 2020 at 8:02 pm #39236iou.weddingParticipantYes! Thank you!!
July 12, 2020 at 10:06 pm #39241Shamim HasanKeymasteradd 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 } });July 13, 2020 at 8:34 pm #39262iou.weddingParticipantHI,Thank for your work,but it looks nothtin happened.
Sorry, maybe I can’t express well.
I hope the list only shows the avatar, don’t have any text.
Please refer to the attachment.
Thank you!Attachments:You must be logged in to view attached files.July 13, 2020 at 11:01 pm #39266Shamim HasanKeymasterDid you removed previous code then added latest code? You should remove previous code.
Let me know.July 13, 2020 at 11:16 pm #39268iou.weddingParticipantYes,I had remove previous code.
Please refer to the attachment.
Thank you!Attachments:You must be logged in to view attached files.July 13, 2020 at 11:22 pm #39271iou.weddingParticipantAnd When I remove 43-48,the link of the participants name is disappeared.
But the text of list is also not display.July 14, 2020 at 9:09 am #39274Shamim HasanKeymasterPlease remove 43-38 code, I have already given you latest code.
It should link all names (marked in this screenshot only https://www.shamimsplugins.com/support/topic/how-to-link-the-participants-name-and-their-avatar-to-their-profile/#post-39233) to their profile.
Let me know if those names are linked. If not i will need your website access to set it for you.July 14, 2020 at 9:46 am #39276iou.weddingParticipantHi,When I remove those code, in IN BOX,the participants name have links,but in Single mail, the participants don’t have links.
Please refer to tha attachment.Thank you!Attachments:You must be logged in to view attached files.July 14, 2020 at 9:47 am #39282iou.weddingParticipant -
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.