WordPress.org

Ready to get started?Download WordPress

Forums

Show commentor's e-mail address (5 posts)

  1. Desipio
    Member
    Posted 9 years ago #

    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.

  2. ColdForged
    Member
    Posted 9 years ago #

    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()),

  3. moshu
    Member
    Posted 9 years ago #

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

  4. ColdForged
    Member
    Posted 9 years ago #

    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 :).

  5. Desipio
    Member
    Posted 9 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.