• Resolved judgeholden

    (@judgeholden)


    Hi there,
    I just started using and love your plugin’s functions, but had one small question. I want to edit the comment reply notification emails slightly, just to make them more engaging for the reader.
    The main thing I’m trying to accomplish is putting the first and last name of the user at the top of the email. I tried

    $username = wp_get_current_user();
     $message .= "Hi <br/><br/>$username</a>";

    trying to have the message appear but the wp_get_current_user() function doesn’t seem to work here. I am a novice in WordPress and PHP in general, so excuse me for butchering your elegant code, but I was just wondering if you had a quick suggestion or snippet as to how to have a personalized greeting per user at the beginning of each email.
    Thanks!
    Ian

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter judgeholden

    (@judgeholden)

    Also, please ignore the <br> and tags, I’ll fix that once I get the functionality correct.

    doctorofcredit

    (@doctorofcredit)

    Let me know if you have any success, I’d love to be able to put the post title into the e-mail subject field as well.

    Thread Starter judgeholden

    (@judgeholden)

    Hi DoctorofCredit,

    I’ve only had success inputting static info, like a picture, etc. No variables like username, sadly. I also posted this on the GVectors forum, and their response was similar: “wpDiscuz uses static phrases on mail generation, so there is no way to add variables in it yet. However we’ll take this under consideration and add it in future releases.”

    I’m sure more adept coders could break it down and figure it out. It’s in the WPDiscuzEmailHelper PHP file if you want to have a go at it. Good luck!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Customizing the Comment Notification Email’ is closed to new replies.