WordPress Plugin: Sexy Comments

Unhappy with my theme's comment display, I recently re-coded a sexier comment display as a plugin so others can sexify their comments as well.

Download the plugin.

Features

  • Forum-thread-like comment layout: User information to the left, comment to the right.
  • Author post highlighting
  • Altered Trackback/Pingback Display Formating
  • Avatars
    • Either display/hide avatars
    • Select your avatar service of choice (Gravatar is the only option until I find more avatar services)
    • Specify maximum avatar dimension
    • Customize default/trackback avatars
  • "Number of Comments" Message Customization
  • CSS Overriding

Installation

  1. Download and unzip the sexycomments.zip
  2. Place sexycomments folder in your wp-content/plugins directory
  3. Log in to your WordPress admin panel and activate the plugin, then visit the SexyComments submenu of the plugins tab.
  4. Customize the settings until you have something that works for you.
  5. Locate the template file(s) in your theme that loops over and displays comments. Remove that comment output loop and replace with:
    PHP:
    1. <?php sexycomments_print($comments); ?>

    NOTE: Be sure not to touch the section that generates the form for adding comments! This plugin does not re-create the comment creation form.

  6. Lastly, consider disabling the plugin CSS and taking the example CSS provided and customize it to suit your theme's color scheme.
  7. You should be all set, now! w00t w00t! Go make a Gravatar account if you don't already have one and upload an avatar.

Discuss This Article


76 Responses to “WordPress Plugin: Sexy Comments”

  1. AvatarMatt
    Author Comment

    Yay. This is an example of the display of Sexy Comments.

    Reply to this comment.
    1
  2. AvatarTimothy

    I like it, but you know what you need to program now….A Sexy Party (cue Stewie’s Sexy Party Music - Family Guy)

    Reply to this comment.
    2
  3. pingback pingback:
    spiralbound.net » Sexy Comments WordPress Plugin

    [...] proud to be the first to test out Matt’s new Sexy Comments plugin. Since the comments on a few of my stories have taken on feel similar to that of a discussion [...]

    Reply to this comment.
    3
  4. pingback pingback:
    Armenian Eagle » Stewie’s Sexy Party Mix (Family Guy)

    [...] response to Matt’s new plugin, it made me think of Family Guy and I just had to post this mix that I found online. [...]

    Reply to this comment.
    4
  5. AvatarZach

    I’m not consistently getting the gravatars to render… Thoughts?

    Reply to this comment.
    5
  6. AvatarMatt
    Author Comment

    @Zach

    The problem, sadly, falls with Gravatar and their service. It seems to be a little unreliable at times. The next version of SexyComments will cache the avatars. I’ll be working on that over the next week.

    Reply to this comment.
    6
  7. Avatartyler

    Nice plugin Matt. Will be building support for this plugin into my Unwakeable wordpress theme.

    Reply to this comment.
    7
  8. AvatarDave

    Hi
    Im trying to get this plugin working on my blog but being new to wordpress cant find the code in my theme to edit. I am using the default theme which seems to be based on the kubrick theme. Any help on the code i need to edit to display this plugin

    Thanks in advance
    Dave

    Reply to this comment.
    8
  9. AvatarMatt
    Author Comment

    @Dave

    Sure. In Kubrick (and most themes), the file you want to edit is comments.php. Find the section that looks like:


    < ?php if ($comments) : ?>
    <h3 id="comments">< ?php comments_number('No Responses', 'One Response', '% Responses' );?> to “< ?php the_title(); ?>”</h3>

    <ol class="commentlist">

    < ?php foreach ($comments as $comment) : ?>

    <li class="<?php echo $oddcomment; ?>" id="comment-< ?php comment_ID() ?>">
    <cite>< ?php comment_author_link() ?></cite> Says:
    < ?php if ($comment->comment_approved == '0') : ?>
    <em>Your comment is awaiting moderation.</em>
    < ?php endif; ?>
    <br />

    <small class="commentmetadata"><a href="#comment-<?php comment_ID() ? rel="nofollow">" title="">< ?php comment_date('F jS, Y') ?> at < ?php comment_time() ?></a> < ?php edit_comment_link('e','',''); ?></small>

    < ?php comment_text() ?>

    </li>

    < ?php /* Changes every other comment to a different class */
    if ('alt' == $oddcomment) $oddcomment = '';
    else $oddcomment = 'alt';
    ?>

    < ?php endforeach; /* end for each comment */ ?>

    </ol>

    < ?php else : // this is displayed if there are no comments so far ?>

    < ?php if ('open' == $post->comment_status) : ?>
    <!-- If comments are open, but there are no comments. -->

    < ?php else : // comments are closed ?>
    <!-- If comments are closed. -->
    <p class="nocomments">Comments are closed.</p>

    < ?php endif; ?>
    < ?php endif; ?>

    Remove that and replace it with the sexycomments function call. I would suggest making saving a copy of comments.php prior to deleting the code, however.

    Reply to this comment.
    9
  10. AvatarDave

    thanks for that it worked perfectly also will i have to edit comments-popup.php aswell or will just comments.php do it aswell

    Reply to this comment.
    10
  11. AvatarJohn Martin

    Hi Matt,

    Is there any way to get long URLs to break rather than extend thru the columns? Someone left a long URL on a comment to one of my posts and it hangs out past the column width. Mostly asthetic but figured I’d ask.

    URL: http://www.whitemountaintech.net/wordpress/2007/04/11/pbwiki-yackpack-voice-enabled-wiki/

    John

    Reply to this comment.
    11
  12. AvatarMatt
    Author Comment

    @Dave

    No, comments-popup.php can remain as-is.

    @John

    Oooo, good catch. I’ll see what I can do with that :D

    Reply to this comment.
    12
  13. Avatarfionatheartist

    Urm I replaced the code as shown above with the sexy comments and it hasn’t made any difference to my comments. I have activated it in the plugins.

    Help….

    Many Thanks,

    Fi

    Reply to this comment.
    13
  14. AvatarMatt
    Author Comment

    @fionaheartist

    I know this is an odd question to ask…but…Are you sure you replaced the code in the appropriate theme? (I’ve been prone to editing the wrong theme from time to time). Do you have a page with comments that I can see?

    Reply to this comment.
    14
  15. pingback pingback:
    SODEVE » Wordpress Plugins used at SODEVE

    [...] Sexy Comments [...]

    Reply to this comment.
    15
  16. Avatarjackson

    just upgraded my WP and i’m wondering where I should replace the code for

    sexy comments

    looks very cool.

    is it just in comments.php

    ?

    Reply to this comment.
    16
  17. Avataredwin

    Very cool plugin for wordpress

    Reply to this comment.
    17
  18. AvatarFlash Buddy

    Sexy! I like the name. I gave ‘er a go with poor results, then coming back here I think I see light at the end of the tunnel. I’ll install it at HQ Cod so would somebody come over and leave me a comment as test?

    Reply to this comment.
    18
  19. AvatarMatt
    Author Comment

    @Jackson

    Yeah, do the code replace in your comments.php file

    @Flash Buddy

    It appears you have removed your reply box so I can’t add a comment to your stories :(

    Reply to this comment.
    19
  20. pingback pingback:
    مجانين المصادر المفتوحة » Blog Archive » ما هي Gravatar ؟

    [...] Gravatars2: وهي نسخة معدلة ومطورة من الإضافة الأصلية. Sexy Comments: وهي إضافة متقدمة تقوم بإستبدال نظام التعليقات كلية [...]

    Reply to this comment.
    20
  21. AvatarTom Wigley

    Hi matt
    im currently using the pool theme and am having a bit of trouble finding what part to delete from the comments theme file
    could you give me a hand?
    it seems quite different from the code you have posted before

    Reply to this comment.
    21
  22. AvatarMax

    Hey when im using your sexy comments it wont show up my gravatar even though i have enabled the avatar support and i have a gravatar account could it be gravatar or my site or you script?

    Reply to this comment.
    22
  23. AvatarMax

    Don’t worry its working now i dont no what happened

    Reply to this comment.
    23
  24. AvatarBucky

    The plugin seems to be working great aside from one problem.

    The only gravatar that seems to be showing is my own. All of the gravatars from other peoples comments are now just the grey shadow man.

    Any ideas as to what is going on?

    Reply to this comment.
    24
  25. AvatarBucky

    And apparently, my gravatar isn’t showing up in your comment section..?

    Reply to this comment.
    25
  26. AvatarBucky

    Also, I got this error when activating the plugin.

    I think I will switch back to what I had until I can get help figuring this out… ?

    The Sexy Comments plugin is now initialized.

    Warning: Cannot modify header information - headers already sent by (output started at —/html/wp-content/plugins/sexycomments/sexycomments.php:169) in —/html/wp-includes/pluggable.php on line 275

    Reply to this comment.
    26
  27. AvatarBucky

    Just wondering if you could incorporate mybloglog.com avatars into this plugin?

    They are used a lot more than gravatar.

    This plugin uses them, if it is of any help to you….

    http://www.napolux.com/2006/12/14/myavatars-a-wordpress-plugin-for-mybloglog/

    That is currently the plugin that I use to get avatars, but I like the layout of yours much better. I would love to see the mybloglog avatars integrated. :)

    Reply to this comment.
    27
  28. AvatarSmokey

    One question, where do I find the comment output loop, so I can replace it? I’m still a little new to WP, so I am still learing….LOVE the plug-in BTW.

    Reply to this comment.
    28
  29. Avatartron

    Very sexiful! ;-)

    Reply to this comment.
    29
  30. AvatarUnsilenced

    Oooh, I think I just did it - a bit of trial and error, but it seems to work great. Fantastic plugin Matt, thanks.

    Reply to this comment.
    30
  31. AvatarBiggie

    Sexy Comments are turning up in my comments, but in a super-small font. Suggestions for what to do?

    Reply to this comment.
    31
  32. Avatarantis3ptick

    hello thanks good job, but i want to list trackback between comments can i disable trackbacks?

    Reply to this comment.
    32
  33. AvatarNishanthe

    Cool plugin. Thanks. :)
    -Nish

    Reply to this comment.
    33
  34. Avatarmusicmixingguru

    does this work with mybloglog avatar?

    Reply to this comment.
    34
  35. Avatarflex

    thanks very much for this plugin matt. even though i’m not an coding-crack i managed to replace the code as needed and made a few cheanges to the appearance. but one problem is left: the font-size of the normal text is a bit small and i’m not sure how to make it bigger.
    do i have to create a new div-tag with an font-size 1em for the normal text?

    Reply to this comment.
    35
  36. Avatarmusicmixingguru

    hey i got it to work but i have both gravatar and mybloglog avatr running at the same time. could you tweek it and have two versions. for mybloglog and one for gravatar. i just added the code to your php and it shows but so does yours. let me know

    Reply to this comment.
    36
  37. AvatarJay

    It’d be nice if this plugin added a spot for users to have an uploaded avatar under their profile without having to sign up for the Gravatar service. I want sexy comments but without the middleman.

    Reply to this comment.
    37
  38. AvatarSean

    What’s up? Just testing to see if my Gravater is working. It hasn’t been working on my site….

    Reply to this comment.
    38
  39. AvatarSean

    Can anyone help me? My Gravater isn’t working on my site. I’m positive I set it up right….any suggestions?

    Reply to this comment.
    39
  40. AvatarAllen

    When I try to activate this plugin i get the stupid “Plugin could not be activated because it triggered a fatal error.”

    Does anyone know how to get around this?

    Reply to this comment.
    40
  41. AvatarSean

    Gravatar isn’t working for me. Anyone else?

    Help?

    Reply to this comment.
    41
  42. AvatarTimothy Haroutunian

    My gravatar is not working on my site and in a minute I will see if it working on yours.

    Am I missing something?

    Reply to this comment.
    42
  43. AvatarDains

    Hi, is Sexy Comments compatible with WP 2.2.1? Getting the “Plugin could not be activated because it triggered a fatal error.” message. BTW, I’m using WAMP on my local machine as a test site whilst I get a VPS set up.

    If anyone knows of a way to dump the error logs to see what’s happening, I’d be glad to post them up.

    Reply to this comment.
    43
  44. pingback pingback:
    Paint Nailish » Plug-in Hell…

    [...] here….not one single WordPress plug-in that I have attempted to use has worked. I tried the SexyComments that Heather is using on her site - which actually works partially if I want two sets of [...]

    Reply to this comment.
    44
  45. Avatarhmw

    Disregard my ping above - I got it ;-)

    Reply to this comment.
    45
  46. Avatarprodigal

    awesome plugin , pitty that gravatar isent working :\

    Reply to this comment.
    46
  47. Avatarrootherb

    Gravatars are not working for me too

    Reply to this comment.
    47
  48. AvatarTerence

    Hi, is it possible to use my own webspace to store all the avatars instead of using gravatar. Would like to see that in the next version =)

    Reply to this comment.
    48
  49. AvatarGuest

    Comments text on the right column does not show on the Page section. ANy solution?

    Reply to this comment.
    49
  50. Avatarjonamerica

    I downloaded and installed Sexy Comments 1.4 from wordpress.org, however when I click on the settings for Sexy Comments nothing shows up except the word ‘Settings’, in other words, none of the settings show up. I can’t find another version of 1.4 to download anywhere, so I’m not sure if this is a bug in the file that Wordpress.org has or if it’s something that’s known.

    Any ideas?

    Reply to this comment.
    50
  51. Avatarfsdf
    51
  52. pingback pingback:
    WP Plugins DB » Plugin Details » Sexy Comments

    [...] Visit [...]

    Reply to this comment.
    52
  53. Avatartra la la

    my test comment

    Reply to this comment.
    53
  54. Avatartra la la

    I downloaded and installed Sexy Comments 1.4 from wordpress.org, however when I click on the settings for Sexy Comments nothing shows up except the word ‘Settings’, in other words, none of the settings show up. I can’t find another version of 1.4 to download anywhere, so I’m not sure if this is a bug in the file that Wordpress.org has or if it’s something that’s known.
    Any ideas?

    My test comment

    Reply to this comment.
    54
  55. Avatartra la la

    I downloaded and installed Sexy Comments 1.4 from wordpress.org, however when I click on the settings for Sexy Comments nothing shows up except the word ‘Settings’, in other words, none of the settings show up. I can’t find another version of 1.4 to download anywhere, so I’m not sure if this is a bug in the file that Wordpress.org has or if it’s something that’s known.
    Any ideas?

    My test comment

    my comment in response to this comment

    Reply to this comment.
    55
  56. Avatarbingo

    I downloaded and installed Sexy Comments 1.4 from wordpress.org, however when I click on the settings for Sexy Comments nothing shows up except the word ‘Settings’, in other words, none of the settings show up. I can’t find another version of 1.4 to download anywhere, so I’m not sure if this is a bug in the file that Wordpress.org has or if it’s something that’s known.
    Any ideas?

    My test comment

    so whats news

    Reply to this comment.
    56
  57. Avatarandrew

    I downloaded and installed Sexy Comments 1.4 from wordpress.org, however when I click on the settings for Sexy Comments nothing shows up except the word ‘Settings’, in other words, none of the settings show up. I can’t find another version of 1.4 to download anywhere, so I’m not sure if this is a bug in the file that Wordpress.org has or if it’s something that’s known.
    Any ideas?

    My test comment
    my comment in response to this comment

    is that good enough?

    Reply to this comment.
    57
  58. Avatarnmbmn

    @Dave
    No, comments-popup.php can remain as-is.
    @John
    Oooo, good catch. I’ll see what I can do with that :D

    I downloaded and installed Sexy Comments 1.4 from wordpress.org, however when I click on the settings for Sexy Comments nothing shows up except the word ‘Settings’, in other words, none of the settings show up. I can’t find another version of 1.4 to download anywhere, so I’m not sure if this is a bug in the file that Wordpress.org has or if it’s something that’s known.
    Any ideas?

    My test comment
    so whats news
    wah wah

    Reply to this comment.
    58
  59. pingback pingback:
    BLOGBURGER: WordPress & SEO take away » Commenti Sexy!

    [...] Plugin Home | Download [...]

    Reply to this comment.
    59
  60. AvatarAntonia
    60
  61. pingback pingback:
    slayer’s blog - Let’s blog about Internet,Mobile Phones, Webdesign and development » Blog Archive » Chameleon - Wordpress theme with unqiue features - arriving on 15th dec 2007

    [...] the comments we will use sexy-comments plugin along with Karma [...]

    Reply to this comment.
    61
  62. Avatariddaa

    saol baci.tekrar teşekkür.eyw tekrar.bu ne dir anlamadım neye teşekkür ediyorum anlamadım ama edelim bakalım.anaaaa theme vayy bea..
    thanks nice.

    Reply to this comment.
    62
  63. AvatarAlessandro

    Good work!
    That’s really a nice plugin!

    Reply to this comment.
    63
  64. AvatarJamie

    Thanks man, this really helped me out. I will be implementing this on one of my sites tonight!

    Reply to this comment.
    64
  65. Avatartest

    Good work!
    That’s really a nice plugin!

    really a nice plugin

    Reply to this comment.
    65
  66. Avatargüzel sözler
    66
  67. Avatarwolkanca

    nice plugins.

    Reply to this comment.
    67
  68. AvatarMonkeygames

    Your website is a great

    thanks

    Reply to this comment.
    68
  69. Avataralptekin
    69
  70. AvatarMonkeygames.ws

    Your website is a great

    thanks

    Reply to this comment.
    70
  71. AvatarChris

    Hey, guy, GRRRREAT Plugin!

    The only trouble I have is that when I switch to gravatar support, there is no insertion of the default image for people who don´t use a gravatar account!?

    Can be seen at http://www.prickelwelt.de/2008/04/der-parkplatz/

    Reply to this comment.
    71
  72. Avatarabby

    Very nice! I’ll be keeping this on my site now. :) Thanks

    Reply to this comment.
    72
  73. AvatarHakan

    Very nice plugin, thanks

    Reply to this comment.
    73
  74. AvatarIsabel

    nice design layout! And good plugin of course

    Reply to this comment.
    74
  75. pingback pingback:
    Wordpress Plugin Centre - WP Comment Plugin - WordPress Plugin: Sexy Comments : BorkWeb

    [...] WordPress Plugin: Sexy Comments : BorkWebUnhappy with my theme’s comment display, I recently re-coded a sexier comment display as a plugin so others can sexify their comments as well. [...]

    Reply to this comment.
    75
  76. Avatarjhay-r matan

    hellooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo.

    Reply to this comment.
    76

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Comment Preview:

 (3742) - sexy comments (632) - sexy (211) - sexycomments (113) - www.sexy.com (33) - sexycomments.com (27) - plugin (15) - comments (7) - www.sexycomments.com (6) - sexy.com (6) - sexy coments (5) - wordpress sexycomments (4) - wordpress sexy theme (3) - www.new sexy.com (3) - customize comments wordpress (3) - new sexy ideas (2) - wordpress comments trackback pingback display theme (2) - use Sexy Comments plugin (2) - wordpress plugin (2) - sexy wordings (2) - other word for sexy (2) - wordpress No comments message (2) - nice comments wordpress css plugin (2) - donload plugin comment wordpress (2) - another word for sexy (2) - sexy com (2) - comment sexy.com (2) - submit commentspopup sites (2) - hi sexy comments (2) - Sexy Comments plugin (2) - hello coments.com (2) - wordpress sexy comments (2) - wordpress sexy comments comments.php (1) - reply to comment wordpress plug in (1) - coments sexy.com (1) - remove comments wordpress (1) - wordpress plugin and avatar (1) - how to remove comments are closed text from wordpress (1) - editing comments-popup wordpress (1) - sexy comment ideas (1) - sexy coments.com (1) - www. new sexy.com (1) - sample of sexy nothings (1) - wordpress plugin comment avatar (1) - comment plugins for wordpress (1) - gravater wordpress (1) - wordpress plugins avatar comments (1) - Plugin could not be activated because it triggered a fatal error. contact form (1) - www avatare sexy.com (1) - wordpress sexy comments help (1) - www/sexy.com (1) - NEW SEXY SITES (1) - sexy can i word comments (1) - family guy sexy.com (1) - wordpress account gravatar does not show (1) - comments.php?y= (1) - gravatar sexy-comment wordpress (1) - avatar comments plugin wordpress (1) - change comment display wording on myspace (1) - wordpress remove comments are closed (1) - avatars comment plugin wordpress (1) - sexy opening comments (1) - sexycomments .com (1) - wordpress pingback display (1) - wordpress sexy (1) - wordpress plugin avatar (1) - wordpress comment output loop (1) - sexy wordpress theme (1) - sexy wordpress themes (1) - sexy word comments (1) - WWW.SEXY COMMENT (1) - wordpress comments plugin author reply (1) - coments sexy (1) - wordpress comments plugins (1) - comment output loop wordpress (1) - sexy comment (1) - sexycomments wordpress (1) - wordpress avatar comment (1) - sexy comments wordpress (1) - other words for sexy (1) - reply to comment plugin (1) - comments are closed wordpress (1) - gravater (1) - cant find template file comments.php sexy comments (1) - comment output loop wordpress sexy comments (1) - comments are open but shows comments are closed in wordpress (1) - other words to replace sexy (1) - best wordpress plugin comments avatar (1) - www wordpress sexy com (1) - new sexy word (1) - sexy comments wordpress comments css (1) - wordpress plugin author avatar (1) - Nice sexy comments... (1) - donload plugin (1) - install sexy comments (1) - wordpress plugins (1) -  (1) - sexy comment -myspace (1) - wordpress threadlike comments (1) - sexy comments word (1) - responses: wordpress plugin comment (1) - wordpress avatar comment plugin (1) - wordpress reply coment plugin (1) - Wordpress, remove comments are closed div if comments are closed (1) -