Home › Forums › Front End PM PRO › Send "username" in email instead of sender
- This topic has 19 replies, 2 voices, and was last updated 8 years, 8 months ago by Shamim Hasan.
-
AuthorPosts
-
February 23, 2017 at 4:36 am #3214Thomas OlejarParticipant
I see that we can send the “sender” in an email, but that shows the name of the person sending… I need to send the “username” for inclusion in an email sent. I tried {{username}} but it didn’t work. Is there a shortcode at all for the sender’s actual “username”?
February 23, 2017 at 10:57 am #3217Shamim HasanKeymasterRight now there is no shortcode for username but you can make one easily. use
fep_eb_email_legendsto make one.February 23, 2017 at 5:46 pm #3220Thomas OlejarParticipanti am sorry, but that doesn’t tell me anything. Use “fep_eb_email_legends” how? Your answer is missing any clear explanation of what to do with those words. Where do I go to use it? I love this plugin, but reading through the support, your answers are often missing a clear step by step on what needs to be done. Please tell me what I do with “fep_eb_email_legends”
February 23, 2017 at 10:57 pm #3225Shamim HasanKeymasterassuming your php version 5.3+
Add following code in your theme’s functions.php (child theme’s if any)add_filter( 'fep_eb_email_legends', function( $legends, $post ){ $legends[ 'sender_username' ] = array( 'description' => __('Sender Username', 'front-end-pm'), 'where' => array( 'newmessage', 'reply' ), 'replace_with' => ! empty( $post->post_author ) ? fep_get_userdata( $post->post_author, 'user_login', 'id' ) : '' ); return $legends; }, 10, 2);Then go to Dashboard > Front End PM > Settings > Emails. use {{sender_username}} to send username in emails.
February 23, 2017 at 11:33 pm #3228Thomas OlejarParticipantThat completely crashed my entire WordPress site! I now have only a blank screen… on tech support with godaddy now trying to recover… you give terrible tech support… you need to state step by step and you don’t!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
February 23, 2017 at 11:44 pm #3231Shamim HasanKeymasterwhat is your php version number?
February 23, 2017 at 11:46 pm #3234Thomas OlejarParticipant5.6
February 23, 2017 at 11:49 pm #3237Thomas OlejarParticipantMy site is completely crashed. I have lost a ton of work because of your lazy replies.
February 23, 2017 at 11:54 pm #3240Shamim HasanKeymasterThis code is tested before giving you.
So either you php version is less then 5.3 or you had added this code in wrong place.
i can assist you if you give me your cpanel or file manager access.February 23, 2017 at 11:56 pm #3243Thomas OlejarParticipantI won’t give that info on here… you have to email me directly. FYI, you didn’t state where to put it… another response from you with not enough info.
February 24, 2017 at 12:03 am #3246Shamim HasanKeymasterIt was clearly written that “Add following code in your theme’s functions.php (child theme’s if any)”
You can create a temporary ftp account for me to access and give that to me. tick “Set as private reply” when reply so that only i and you can see that.February 24, 2017 at 12:06 am #3248Thomas OlejarParticipantThis reply has been marked as private.February 24, 2017 at 12:17 am #3251Thomas OlejarParticipantThis reply has been marked as private.February 24, 2017 at 12:26 am #3254Thomas OlejarParticipantThis reply has been marked as private.February 24, 2017 at 12:34 am #3257Shamim HasanKeymasterdidn’t you tell them that you had added this code before this things happen?
All they had to to is remove this code from where you added and add again in appropriate location, nothing else.Please access your website and remove that code from where you added. Then activate all your plugins and your theme.
Then let me know. I will add that code again in appropriate location for you. -
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.