• Resolved coskel

    (@coskel)


    I am using an Alex King theme, heavily tweaked, and want to display the commentors’ email in the comments. My blog is migrating over from Blogger, so the regular commentors are already used to it, and have built up quite the community amongst themselves.

    How do I display the commentors’ emails as a link?

    Thanks in advance all – this forum has been a great source of information!

Viewing 8 replies - 1 through 8 (of 8 total)
  • You want other people’s email addresses as clear links ?

    Not the best idea if you want them to be your friends ??

    You probably want to use the comment_author_email() template tag.

    Thread Starter coskel

    (@coskel)

    skippy I agree, but I’m doing this for someone else, who is migrating from Blogger and using Haloscan.
    so where do I put this code? in the admin tool, or in the archives page? the comment page?

    All template tags go inside your template files.

    See also Stepping Into Templates.

    Thread Starter coskel

    (@coskel)

    thanks – I looked through all of that stuff 4 ahours ago before I turned to the forum- I am by no means an advanced PHP programmer – I was hoping someone would be able to tell me which page it goes in, and where in that page – reading through those notes only tells me that it goes in “The Loop”.

    That isn’t enough information – I find those pages useless, because they don’t tell you how to do anything, they only tell you the rules.

    Comments are displayed using the comments.php file in your theme directory. If you want to display each user’s email address, you can edit your comments.php file to look something like this:

    <cite><?php comment_author_link() ?> (<?php comment_author_email(); ?>)</cite> Says:

    Thread Starter coskel

    (@coskel)

    ok, wow thats cool – it shows the email address now, but not as a link…

    Thread Starter coskel

    (@coskel)

    ignore that – I fixed it. ?? you rock, thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘have email display in comments’ is closed to new replies.