Support » Fixing WordPress » Show commentor’s e-mail address

  • I know that the default is set so that a user’s e-mail address does now show when they comment, but I want it to. I’m not requiring them to give an e-mail, but I’ve had a lot of my readers ask to have their e-mail address be viewable. How can I go about doing this? I also want them to be able to post images in their comments and can’t find out how to make that work. I know it sets me up to be spammed to death, but if it happens, then I’ll disable either or both. If anybody has any insight, I’d appreciate it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • To enable images, edit wp-includes/kses.php and add the following line under, for instance, the 'ins' =>... line:

    'img' => array('src' => array(), 'alt' => array()),

    It sets them i.e. your readers up to be spammed to death 🙂

    If you’re going to post your commenters’ email addresses, be sure they know you’re going to be doing that. People visiting WP blogs have come to expect the default behavior and I know I personally would be ticked if there was no mention that my email address would be laid out for all the illicit spiders to grab.

    That said, you can use echo $comment->comment_author_email; from within the comment loop to echo the address. May your readers have mercy on you :).

    Desipio

    (@desipio)

    Thank you for your help on both questions. It’s my readers who are asking for them. So they will have brought it upon themselves.

    Actually, they never post their real e-mails. They enjoy making up phony e-mail addresses to go with whoever they pretend to be posting as (during Cubs’ games…usually the players making pithy comments about the games) and like to be clever, and often vulgar e-mails. I will make sure to warn the innocent however, not to use real e-mail addresses.

    Again, thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show commentor’s e-mail address’ is closed to new replies.