Plugin: Sexy Comments v1.4 Released!

[[innerindex]]

Introduction

This has been a long time coming and I am happy to announce the release of Sexy Comments v1.4! With this version comes a lot of changes…so be sure to read the installation section! Along with simple optimizations and general restructure, the following features are now available:

Feature List

  • Ajax comment preview (new feature)
  • Author post highlighting
  • Avatars
    • Either display/hide avatars
    • Select your avatar service of choice (Gravatar and MyBlogLog options are available)
    • Specify maximum avatar dimension (Gravatar Only)
    • Customize default/trackback avatars
  • Comment Reply-To (new feature)
  • Comment Themes (new feature)
  • CSS overriding
  • “Number of Comments” message customization
  • jQuery inclusion toggling

Installation & Upgrading

  1. Download Sexy Comments v1.4 from the WordPress plugin directory
  2. Unzip that little sucker
  3. Place sexy-comments folder in your wp-content/plugins directory (it should look like this: wp-content/plugins/sexy-comments/
  4. Log in to your WordPress plugin admin page and activate the plugin.
  5. In the plugin admin page, click the SexyComments sub-menu.
  6. Customize the settings until you have something that works for you.
  7. Locate your theme’s template file that displays comments (typically comments.php). Remove the comment output loop and replace with:
    < ?php sexycomments::show($comments); ?>
    
  8. If you plan to use the Ajax features or the Reply-To features, you will need to do two things.
    1. Enable jQuery and jQuery Form Extension via the Plugin > SexyComments administration page.
    2. Locate the template file that contains the comment submission form (typically comments.php near the bottom) and replace that chunk of code with:
      < ?php sexycomments::form(); ?>
      

    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.

  9. Lastly, consider disabling the plugin CSS and taking the example CSS provided and customize it to suit your theme’s color scheme.
  10. You should be all set, now! w00t w00t! Go make a MyBlogLog or Gravatar account if you don’t already have one and upload an avatar. Gravatar tends to be pretty flakey so I’d suggest using MyBlogLog.

FAQs

  • Q: What is this “comment loop” you speak of?

    A: Ah, yes. That thing. Well, its anatomy looks similar to this (there will be some variation from theme to theme):

    < ?php if ($comments) : ?>
    	<!-- some HTML is typically here -->
    
    	< ?php foreach ($comments as $comment) : ?>
            <!-- the output HTML of each individual comment -->
    
    	< ?php endforeach; /* end for each comment */ ?>
    	<!--...more HTML -->
     < ?php else : // this is displayed if there are no comments so far ?>
    	< ?php if ('open' == $post->comment_status) : ?>
    		<!-- typically a blank area or a place with a comment -->
    	 < ?php else : // comments are closed ?>
    		<!-- closed comments section -->
    	< ?php endif; ?>
    < ?php endif; ?>
    
    
  • Q: Ok…so I just upgraded to a new version and there is nothing in the SexyComments admin page…WTF?

    A: Yeah. Sorry about that. In this version, the directory structure has changed drastically and Sexy Comments should no longer live in wp-content/plugins/sexycomments.php OR wp-content/plugins/sexycomments/sexycomments.php, but instead it should be in wp-content/plugins/sexy-comments/. Make sure that the plugin is in the correct location of your plugins directory.

  • Q: What happened to sexycomments_print($comments)? I used to use that to get my comments to display…will it still work?

    A: Along with a directory structure overhaul, this version had a large code overhaul as well. The old function (sexycomments_print) is deprecated but will still work for the time being. I greatly urge you to move over to the new function call sexycomments::show($comments) as that is the new *impoved* function.


Comments

298 responses to “Plugin: Sexy Comments v1.4 Released!”

  1. Pretty good…I redesigned it for my site.

    The only thing I miss is:

    1. Threaded Commenting

    2. Having the form shootup from the bottom when you click “reply to this comment”

    The “reply to this comment” should really be “Quote –> send to form below”.

  2. añlsls

  3. thanks alot

  4. Hi… LOVE this plug in, but having problems with the avatar/gravatar. If I choose gravatar, only mine shows up… if I choose mybloglog, everyone’s but mine shows up. I also tried to change the default and it still shows the one that came with. Any idea how to fix this?

  5. Just trying this stuff out

  6. 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/

    (Sorry, posted this comment in the old(?) topic first…)

  7. I found it – was a misconfiguration I did; I missed a dash in the path to the default avatar.

    Problem was, taht MyBlogLog seems to deliver a default avatar of its own, while Gravatar doesn´t do this…

    So, forget the above comment, at least from the second paragraph – I still love this plugIn!

  8. Great plugin but it needs AJAX comment posting (not preview) and threaded comments.

    I hate that the page needs to fully refresh.

  9. Sorry Im very new to this but could you point out to me what I need to change in my comments.php file for this to work

    post_password)) { // if there's a password
    if ($_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { // and it doesn't match the cookie
    ?>

    <li class="" id="comment-">

     

    comment_approved == '0') : ?>
    Your comment is awaiting moderation.

    <?php
    if(the_author('', false) == get_comment_author())
    echo "";
    else
    echo "";
    comment_text();
    echo "";

    ?>

    comment_status) : ?>

    No Comments


    Comments are closed.

    comment_status) : ?>

    Leave a comment

    You must be <a href="/wp-login.php?redirect_to=">logged in to post a comment.

    <form action="/wp-comments-post.php" method="post" id="commentform">

    Logged in as <a href="/wp-admin/profile.php">. <a href="/wp-login.php?action=logout" title=""> Logout »

    <input type="text" name="author" id="author" value="" size="22" tabindex="1" />

    <input type="text" name="email" id="email" value="" size="22" tabindex="2" />

    (

    )

    <input type="text" name="url" id="url" value="" size="22" tabindex="3" />

    <!--XHTML: You can use these tags: -->

    <input type="hidden" name="comment_post_ID" value="" />

    ID); ?>

  10. Milo try this:

    comment_status) : ?>

  11. Sorry milo looks like it got scrambled, post a email address and I’ll send you my working comment.php

  12. Thank you very much

    milo.kecic at gmail.com

  13. Thank you very much

    milo.kecic at gmail .com

  14. Sorry milo looks like it got scrambled, post a email address and I’ll send you my working comment.php

    Thank you very much
    its milo.kecic at yahoo . com

  15. oh man sorry for the multiple posts, It wasn’t letting me post for a sec then all of a sudden they all appeared

  16. Sorry Im very new to this but could you point out to me what I need to change in my comments.php file for this to work

    post_password)) { // if there’s a password
    if ($_COOKIE[’wp-postpass_’ . COOKIEHASH] != $post->post_password) { // and it doesn’t match the cookie
    ?>


    <li class=”” id=”comment-”>
     
    comment_approved == ‘0′) : ?>
    Your comment is awaiting moderation.

    <?php
    if(the_author(”, false) == get_comment_author())
    echo “”;
    else
    echo “”;
    comment_text();
    echo “”;

    ?>
    comment_status) : ?>

    No Comments


    Comments are closed.

    comment_status) : ?>

    Leave a comment

    You must be <a href=”/wp-login.php?redirect_to=”>logged in to post a comment.
    <form action=”/wp-comments-post.php” method=”post” id=”commentform”>
    Logged in as <a href=”/wp-admin/profile.php”>. <a href=”/wp-login.php?action=logout” title=””> Logout »
    <input type=”text” name=”author” id=”author” value=”” size=”22″ tabindex=”1″ />
    <input type=”text” name=”email” id=”email” value=”” size=”22″ tabindex=”2″ />
    (
    )
    <input type=”text” name=”url” id=”url” value=”” size=”22″ tabindex=”3″ />
    <!–XHTML: You can use these tags: –>
    <input type=”hidden” name=”comment_post_ID” value=”” />
    ID); ?>

  17. Wanted to say thanks! We use your plugin, and it works perfectly.
    :)

  18. Greetings,

    Thanks for the great plug-in!!! Could you please write an if/else php statement for the sexy comments: if function exists sexy comments else theme comments

    and

    if function exists sexy comment form else theme comment form

    Thanks again for all your work :)

    Ministermark

  19. tester testing Avatar
    tester testing

    This is a cool test!

  20. Somebody please help. After 4 hours trying to get this plugin running, I finally did it. But I can’t get the avatar show up. The only avatar shown is the 18×18 small avatar with the question mark.

    I’ve tried login with different MyBlogLog IDs (all have avatar) and also try from Gravatar. But still get the 18 x 18 tiny picture.

    Here’s my blog: http://www.projekhujungminggu.co.nr/
    There’s only 1 article and just go to the comment section and please try give some comment.

  21. Coisox Avatar
    Coisox

    Or should I install Gravatar plugin and MyBlogLog widget to get it wokrs?

    I’m currnely using WP 2.5.1

  22. Someone commented on my blog post on the Longest Words and had a question about what a word meant…it turns out that if you comment without using spaces, it doesn’t wordwrap. Sort of like it is going to do on this one if the preview is correct.

    http://armenianeagle.com/2007/05/30/longest-words-in-the-english-language-dictionary/#comment-25820

    just thought you should know!

  23. Somebody please help. After 4 hours trying to get this plugin running, I finally did it. But I can’t get the avatar show up. The only avatar shown is the 18×18 small avatar with the question mark.
    I’ve tried login with different MyBlogLog IDs (all have avatar) and also try from Gravatar. But still get the 18 x 18 tiny picture.
    Here’s my blog: http://www.projekhujungminggu.co.nr/
    There’s only 1 article and just go to the comment section and please try give some comment.

  24. […] hace un tiempo hemos estado experimentando con Sexy Comments, un plugin para WordPress que le añade a los comentarios varias […]

  25. testes Avatar
    testes

    Excelente!

  26. Just checking out the sex factor on this one…

    hhhhhhhhhhhhhhhhhhhhhhhh

  27. test this plugin

  28. Testing.

  29. Great plugin, but I have a problem. I want to disable default css, but the link for “this css code” does not work for me. How can I find the css-code to integrate in my theme?

  30. Just checking it out

  31. Lucas-man Avatar
    Lucas-man

    BUG: When you press on ‘Reply to this comment.’ the comment is put in the textarea! I expected that the view then shifts to the textarea, instead you are still looking at the same part of the page!

    Like this, dumb people think that the button doesn’t work!

  32. test

    super great plugin…gonna test it NOW…!

  33. test

  34. Jerome Avatar
    Jerome

    test

    Nice

  35. Super Thanks…

  36. Hello. I have one question : what happens if I deactivate the plugin ?

    I once had a great plugin but its support was discontinued. When I had to deactivate it, it resulted in pieces of code uninterpreted in every comments (main functionality was to quote the comment of one commenter).

    I wouldn’t like this to happen again.

  37. Sweet upgrade. My main blog is blogger, but I started a wordpress blog to learn the ropes. I’m going to have to try this out. Thanks!
    BeachBum

    Same boat, thanks again!

  38. test test 1 2 3

  39. That’s a pretty cool plugin, thanks for the work!

  40. […] Sexy Comments plug-in was brought to my attention when a client, Karen, asked me to install it for her on her […]

  41. martin Avatar
    martin

    Its free?

  42. tapirul Avatar
    tapirul

    hello
    could you give me a hint what the “comment submission form” is exactly? I tried to figure out and I am partially successful, I didn’t mess up completely, I only doubled the
    “Leave a Reply

    Name (required)

    Mail (hidden) (required)

    Website ”

    fields

    Tanks

  43. cacaca Avatar
    cacaca

    […] Sexy Comments plug-in was brought to my attention when a client, Karen, asked me to install it for her on her […]

    hello
    could you give me a hint what the “comment submission form” is exactly? I tried to figure out and I am partially successful, I didn’t mess up completely, I only doubled the
    “Leave a Reply
    Name (required)
    Mail (hidden) (required)
    Website ”
    fields
    Tanks

  44. MuRADiN Avatar
    MuRADiN

    Здесь можно протестировать этот плагин?)

  45. sascha Avatar
    sascha

    Uhmm just tried to install this plugin but I’m getting this when trying to activate it:

    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected $end in C:\Users\xxxxx\Documents\Server\htdocs\mysite\wp-content\plugins\sexy-comments\sexycomments.php on line 822

    Anyone know why this is happening?

  46. Uhmm just tried to install this plugin but I’m getting this when trying to activate it:
    Plugin could not be activated because it triggered a fatal error.
    Parse error: syntax error, unexpected $end in C:\Users\xxxxx\Documents\Server\htdocs\mysite\wp-content\plugins\sexy-comments\sexycomments.php on line 822

    Same for me. I’m using WP v2.5.1.

  47. Very Good Plugin!