Send "username" in email instead of sender


Home Forums Front End PM PRO Send "username" in email instead of sender

This topic is: Resolved
Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #3214
    Thomas Olejar
    Participant

    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”?

    #3217
    Shamim Hasan
    Keymaster

    Right now there is no shortcode for username but you can make one easily. use fep_eb_email_legends to make one.

    #3220
    Thomas Olejar
    Participant

    i 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”

    #3225
    Shamim Hasan
    Keymaster

    assuming 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.

    #3228
    Thomas Olejar
    Participant

    That 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!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    #3231
    Shamim Hasan
    Keymaster

    what is your php version number?

    #3234
    Thomas Olejar
    Participant

    5.6

    #3237
    Thomas Olejar
    Participant

    My site is completely crashed. I have lost a ton of work because of your lazy replies.

    #3240
    Shamim Hasan
    Keymaster

    This 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.

    #3243
    Thomas Olejar
    Participant

    I 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.

    #3246
    Shamim Hasan
    Keymaster

    It 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.

    #3248
    Thomas Olejar
    Participant
    This reply has been marked as private.
    #3251
    Thomas Olejar
    Participant
    This reply has been marked as private.
    #3254
    Thomas Olejar
    Participant
    This reply has been marked as private.
    #3257
    Shamim Hasan
    Keymaster

    didn’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.

Viewing 15 posts - 1 through 15 (of 20 total)

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.