Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
All notification emails I receive contains "Anonymous" made a comment, even if the user filled in the form with a different name.
Comment | File | Size | Author |
---|---|---|---|
#1 | 833454.patch | 361 bytes | codeforkjeff |
Comments
Comment #1
codeforkjeff CreditAttribution: codeforkjeff commentedIn D7 core, the comment module always populates [comment:name] with "Anonymous" if user isn't registered.
There is a "[comment:author]" token that uses the name value instead. Attached is a patch to change the default template to use this.
For existing installations, go to Configuration screen for comment notify, and manually change "[comment:name]" to "[comment:author]"
Comment #2
gregglesThis was fixed in #952072: [comment:unsubscribe-url] is not working (and a few other token issues).
Thanks codeforkjeff!