WP Likes 2.0

Posted: July 17th, 2009 | Author: | Filed under: tech | 110 Comments »

I have been taking note of all the feedback posted by you guys for WP Likes intial 1.0 release.

So with 2.0 I tried to fulfill most of your wishes. Here are the highlights of this release-

  • Finally an admin panel to tweak common settings like- whether to display on front page / posts on pages.
  • It shows the stats of your most liked posts on your admin dashboard.
  • You can even show the most liked posts on your blog using the sidebar widget.
  • CSS editing is now under settings and translating/reusing the plugin is now even more easy as the text’s for like/unlike can be easily edited.
  • A UI uplift.. hope you like it.

Next major revision will be able to track the person you liked the post as your post commenter, blog user or guest.. still digging into this and wondering how to consume gravatar here.

WP Likes 2.0-  http://wordpress.org/extend/plugins/wp-likes/

567 people like this post.

110 Comments on “WP Likes 2.0”

  1. 1 I likes this and so does wordpress | Aakash Bapna's Blog said at 6:11 pm on July 17th, 2009:

    [...] WP likes 2.0 features and highlights. [...]

  2. 2 I likes this and so does wordpress | Aakash Bapna's Blog said at 6:11 pm on July 17th, 2009:

    [...] WP likes 2.0 features and highlights. [...]

  3. 3 Tobi said at 7:59 pm on July 19th, 2009:

    getting the following error: Warning: call_user_func_array() [function.call-user-func-array]: Unable to call wp_likes_render::post() in /wordpress/wp-includes/plugin.php on line 166

  4. 4 emma said at 1:30 am on July 21st, 2009:

    How can I make the Like box transparent and the font white so that it integrates more iwth my theme?

  5. 5 Juampi said at 3:58 am on July 21st, 2009:

    How can i make a translated version… and when you update this plugin again i dont have to modify eveery time the words that are not editable in the admin panel?

  6. 6 Aakash Bapna said at 11:57 pm on July 21st, 2009:

    @Tobi I am not sure why is that error being thown.. are you sure the plugin is activated while you are putting that code in template..

    @emma
    You will have to edit the CSS in settings area to do that. Remove the background-color property from the css class which you want to be transparent. Similarly set ‘color:white’ for white font color. If you can tell me exactly which area has to be transparent, I will give you complete CSS code.

    @Juampi
    The updates should preserve your settings..are your settings getting back to default everytime you update?

  7. 7 db0 said at 1:46 pm on July 23rd, 2009:

    I’d like to suggest a feature change that I’ve been looking for since forever. I would like to have more options other than “likes” for people to choose from.

    The options should be in the form that can replace a quick comment for people with no time and help categorize the posts by popularity.

    For example you can have the following options: Funny, Insightful, Sad, Awesome etc. This way visitors can select how the post appeared to them rather than just “Liking”. Then new visitors would have the option to find out all “Funny” posts while you’ll be able to see in your dashboard which of your writings got the best in each category.

    Of course, the best would be the capability for the admins to define which categories they wish to have available.

    I’ll see if I can modify the plugin to do this but my javascript is non-existent. If you can code this, I’ll be spreading the word to the end of the world out of joy :)

  8. 8 Neues Plugin, auch für “stille Leser” said at 10:24 pm on July 25th, 2009:

    [...] So, grade ist ein neues Plugin bei mir eingezogen und zwar das wp-likes. [...]

  9. 9 Michele said at 10:18 pm on July 26th, 2009:

    Plugin could not be activated because it triggered a fatal error.

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /wp-content/plugins/wp-likes/likes.php on line 73

  10. 10 Tahina said at 5:48 pm on July 27th, 2009:

    I got the very same problem. On my local settings it works though.

  11. 11 Aakash Bapna said at 9:37 pm on July 27th, 2009:

    @Michele, @Tahina
    Thats because you have PHP4.x on your server.
    I strongly recommend you switching the version of php to 5.x from your hosting cpanel.

  12. 12 Aakash Bapna said at 9:39 pm on July 27th, 2009:

    @db0
    sounds great, maybe we can create a separate plugin for that..

  13. 13 db0 said at 9:48 pm on July 27th, 2009:

    Sure, if you think it’s best, although it could simply be a simple option in the config menu.

    Let me know if you do code this.

  14. 14 Tahina said at 12:37 pm on July 28th, 2009:

    @Aakash, you are right. It works with php 5.x. Thanks :)

  15. 15 Yabberit said at 3:02 pm on July 28th, 2009:

    I am using the WP Likes plugin and want to continue using it but i am noticing that the text ’0 People Like this Post. Like’ are showing up on the front page and all other pages but do not function like they do on this page: http://www.yabberit.com/archives/54

    Please help :D

  16. 16 Tommaso said at 3:41 pm on July 30th, 2009:

    nice plugin!

    how can i list “the most liked post” in my sidebar without widget support???

  17. 17 Lena Björndahl said at 7:23 pm on July 30th, 2009:

    I try to translate the text, but despite this, I have a visible “You” instead of a swedish “Du” left when clicked. The result is half English and half Swedish. Please, you can mark up the code so we can see where to change the outgoing texts.
    I have seen the same problem at other Swedish (bexs.se) sites using your otherwise nice code.

  18. 18 Mike said at 2:31 am on August 4th, 2009:

    Is this plugin supposed to change “people” to person where there is only one like? I see it in the code, but it doesn’t seem to be taking on my site. Any suggestions?

  19. 19 Alexis said at 2:59 am on August 4th, 2009:

    Hey Aakash !

    I am using your plugin and liking it (lol) i have customized the strings (in the code, not the backend) to make it usable in Spanish. (you can see it in my blog above)

    Could you post the changelog for 2.0.2 just to see if the work of changing the strings again is worth it?

    Regards
    Akex

  20. 20 Aakash Bapna said at 10:33 pm on August 4th, 2009:

    @ Tommaso not possible
    @ Yabberit upgrade to latest version of plugin
    @ Lena Björndahl need to work on better support for translations. I am thinking of format strings.
    @ Mike, thats a bug will fix it soon.
    @ Alexis what version you on currently? 2.0.2 fixed an issue with manually calling WP Likes in theme files.

  21. 21 Mike said at 2:30 am on August 5th, 2009:

    Thanks for the quick response! WordPress wouldn’t be the same without awesome authors like you!

    I’ve been playing with the CSS and code, but I can’t seem to get the “Like” button to stop jumping down 3 pixels when clicked.

    http://boomer-living.com/wp/2009/06/thinking-of-a-career-change-five-tips/

    Anyone have any suggestions?

  22. 22 Jacob said at 11:21 pm on August 7th, 2009:

    I’m having some trouble getting this to work in the latest version of wp on my friend’s blog (scrubsandthecity.com)

    The like button appears, but nothing happens when you click on it. I’m really not quite sure what the problem is.

    Any pointers?

  23. 23 Aakash Bapna said at 12:05 am on August 10th, 2009:

    @mike add a css style like this to prohibit that jump from occuring-

    .wp_likes a.like:active{
    padding-left:20px;
    }

    @Jacob
    There is a PHP error occuring in your case, the macro ABSPATH is not being set in wp-config.php file.. which version of wordpress you on?

  24. 24 Jacob said at 5:47 am on August 10th, 2009:

    WP 2.8.3

    Thanks for the help, that was the exact problem. Got it fixed!

  25. 25 m said at 6:28 am on August 10th, 2009:

    hello,

    great plugin and only one I found that does what I want.. I was wondering whether it was possible to make it so that the Like_count is on the same line as the unlike link.
    I’ve been trying but with no luck so far..

    thank you for any help,

    mat

  26. 26 Mike said at 6:34 am on August 10th, 2009:

    m, I did this on my site. You’ll have to play around with the css. Here’s what I currently have on my site:

    http://boomer-living.com/wp/2009/08/embrace-the-salesperson-within-and-ace-the-job-interview-2/

    and here is the CSS code that I applied to some of the wp-likes classes:

    .wp_likes {
    float:left;
    font-size:13px;
    margin:0 0 0 3px;
    overflow:visible;
    width:300px;
    }

    .wp_likes div.text {
    color:#CC0000;
    float:left;
    font-size:13px;
    margin:0 3px 0 0;
    }

    .wp_likes a.like {
    background-image:url(http://boomer-living.com/wp/wp-content/plugins/wp-likes/images/like.gif);
    background-position:left center;
    background-repeat:no-repeat;
    padding-left:20px;
    }

    You basically need to float the divs left and makes sure you give your text enough space to expand in by setting a width on the .wp_likes class. 300px worked for me!

    Hopefully this helps!

  27. 27 m said at 7:32 am on August 10th, 2009:

    Hey!

    thank you very much, that did the trick indeed!

    For me the CSS did not fix the image jumping away, but I replaced the spinner.gif with this (http://www.in-mediakg.de/contact/pic/loading.gif) and it works fine now!

    greetings from germany,

    mat

  28. 28 m said at 6:41 pm on August 10th, 2009:

    Hello,

    I had another question. Im sure this is easily done with CSS but Im not able to do it… Perhaps someone can help!?

    Basically I want the thumbs_up image to always be on the left hand side and that the text only changes.

    At the moment at first there is the thumbs_up image followed by the Like vote. Once the post is liked, the image dissapears.

    Can this be done?

    thank you,

    mat

  29. 29 KyuRae said at 12:40 am on August 12th, 2009:

    HI there,

    I get an error when I try to visit my dashboard:

    Fatal error: Call to undefined function wp_add_dashboard_widget() in …/PATH/wp/wp-content/plugins/wp-likes/likes.php on line 62

    I read your above comments and I’m have PHP 5.x

  30. 30 Mike said at 3:04 am on August 13th, 2009:

    m,

    Just add the background to your a.unlike CSS entry:

    background-image:url(http://boomer-living.com/wp/wp-content/plugins/wp-likes/images/like.gif);
    background-repeat:no-repeat;
    background-position:left;

    If you want to get saavy, flip the image, name it unlike.gif and place it in as a thumbs down!

  31. 31 Pip said at 8:02 am on August 14th, 2009:

    @Tobi I was getting this error too, and have found that pulling all the hooked functions out of the classes into globals “solved” the problem. It seems add_action cannot handle the “class::function” syntax?

    I’m using WP 2.8.4 from a fresh install, PHP v5.1.6, Fedora 6.

    I’ll continue to investigate why this is happening (a php setting?) and post back if I find anything (although I’m sure you’ve moved on by now!).

  32. 32 Pip said at 9:08 am on August 14th, 2009:

    @Tobi and anyone else on < PHP 5.3.0

    Passing class methods to call_user_func_array() is not supported until PHP 5.3.0 (http://au.php.net/manual/en/function.call-user-func-array.php)

    As a workaround, you can create global wrapper functions:

    add_action("wp_head","wp_likes_render_CSS");

    function wp_likes_render_CSS(){
    return wp_likes_render::CSS();
    }

    and repeat this for JS, post etc.

  33. 33 Mike said at 4:48 am on August 18th, 2009:

    I’m getting this error when I try to add new articles. It also displays the Like button and the ajax loader. Any ideas on a fix?

    Warning: Cannot modify header information – headers already sent by (output started at /homepages/41/d186519353/htdocs/wp/wp-content/plugins/wp-likes/likes.php:215) in /homepages/41/d186519353/htdocs/wp/wp-includes/classes.php on line 1586

  34. 34 Tosh said at 3:51 am on August 20th, 2009:

    Issues with WordPress 2.8.4

    This pops up when trying to save a draft.

    Warning: Cannot modify header information – headers already sent by (output started at wp-content/plugins/wp-likes/likes.php:216) in wp-includes/classes.php on line 1586

    I can still vote on the front end, but sometimes I’m not able to save a draft due to this. What can I do to fix this?

    http://i29.tinypic.com/35lf507.jpg
    Here is a screenshot, why does this even show up here in the first place?

  35. 35 Tosh said at 4:21 am on August 20th, 2009:

    I’ve disabled it for now sadly. When a fix is available I’ll enable it again. I love the plugin.

  36. 36 Pip said at 4:37 am on August 20th, 2009:

    @Tosh

    I’ve seen this behaviour when there are spaces or newlines outside of the in included library and class files. This causes output to be sent before the headers, which isn’t allowed as it causes a set of default headers to be sent.

    e.g. there is a newline after the closing ?> at the bottom likes.php – perhaps this is causing it?

    However I thought WP captured all the output of the plugin scripts, so it may not be this. (…and it still works for me!)

  37. 37 Pip said at 7:38 am on August 20th, 2009:

    Sorry the above post is missing some php delimiter characters: it should say “newlines outside of the in included library and class files”

    (hope that comes out right!)

  38. 38 Pip said at 7:39 am on August 20th, 2009:

    Doh! forum is stripping the characters. Sorry don’t know how to escape them.

  39. 39 Tosh said at 10:47 pm on August 20th, 2009:

    e.g. there is a newline after the closing ?> at the bottom likes.php – perhaps this is causing it?

    Yes there was, I removed the extra blank line after that. Still does the same thing. :(

  40. 40 Mike said at 11:17 pm on August 21st, 2009:

    Tosh,

    Let me know if you find a fix for this. I’m having the same problems. Aakash, any suggestions for a fix?

  41. 41 Mike said at 11:30 pm on August 21st, 2009:

    According to the error, this line is the problem:

    ‘if($settings->customRender==’true’) echo $returnStr;’

    However, I can’t see anything wrong with it.

  42. 42 Aakash Bapna said at 3:03 am on August 23rd, 2009:

    Sorry guys, had issues with my internet connection so couldn’t post..

    I have just updated the plugin to make it compatible to php <5.3.
    I was not able to reproduce the issues with 2.8.4 and WP likes appearing while creating new posts. Nevertheless I have put a crude fix for the issue pointed out by Mike, Tosh. Do test and let me know the results.

  43. 43 Mike said at 6:46 am on August 23rd, 2009:

    Aakash,

    This fixed the problem for me. FYI, my PHP version was:

    5.2.102.0

    Love this plugin and love the support!

  44. 44 Austin said at 3:11 am on August 26th, 2009:

    How do I get the move the location of the Like button?

  45. 45 Aakash Bapna said at 3:26 am on August 26th, 2009:

    you need to edit the CSS code in settings area. People in comments above have posted no. of ways to move around the like buttons.
    Let me know your requirements so that I can give you the exact CSS code to be put under settings.

  46. 46 Frenchguy said at 7:56 pm on August 26th, 2009:

    Hmm, I still see this issue with PHP v5.2.0-8+etch13 :

    Warning: call_user_func_array() [function.call-user-func-array]: Unable to call wp_likes_render::settings() in /var/www/frenchguys.com/wordpress/wp-includes/plugin.php on line 339

  47. 47 tee said at 12:09 am on August 27th, 2009:

    How can I get the Like/Unlike line to show up on the SAME line as my “Posted in X category, X comments” line?

    I want it to be like this: http://boomer-living.com/wp/2009/08/embrace-the-salesperson-within-and-ace-the-job-interview-2/

    But when I insert the function right after the X category X comment line, the Like/Unlike appears on the next line.

    Here’s my code:
    Posted in | <img src="/images/iconcomment.jpg” style=”vertical-align: bottom;” />

  48. 48 tee said at 12:10 am on August 27th, 2009:

    ^ FULL code:

    Posted in | <img src="/images/iconcomment.jpg” style=”vertical-align: bottom;” />

  49. 49 tee said at 12:11 am on August 27th, 2009:

    An excerpt of my code:

  50. 50 tee said at 12:12 am on August 27th, 2009:

    Forget it it keeps getting cut off here :(

  51. 51 Ting said at 10:46 pm on August 27th, 2009:

    have problems using the Like button on my site, it is already there but it just doesn’t show when people press on it.

    I am not sure what is wrong, please advice :)

  52. 52 Sax said at 4:17 pm on September 1st, 2009:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /web/htdocs/www.justintimberlakeitalia.com/home/wp-content/plugins/wp-likes/likes.php on line 97

    Why?? :|

  53. 53 Sax said at 4:18 pm on September 1st, 2009:

    Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /web/htdocs/www.justintimberlakeitalia.com/home/wp-content/plugins/wp-likes/likes.php on line 97

    Why?? :|

  54. 54 Karly said at 9:25 pm on September 3rd, 2009:

    The WP Likes appears in my RSS feed as the “loading” icon, and if you click it in the feed it causes an error. How can I take it out of the RSS feed or fix it?

  55. 55 Jean-Paul said at 3:48 am on September 9th, 2009:

    Fantastic plugin works super! but I was wondering if it’s possible to move the plugin to somewhere else in the template to fit better?

  56. 56 Jean-Paul said at 2:02 pm on September 9th, 2009:

    oh nevermind already found :)

  57. 57 Jake said at 4:01 pm on September 9th, 2009:

    Hi – a very cool plugin. I was wondering how to call the plugin code to be used at both the start and the end of my posts.

    If you look at my site, tshirtalert.com, you will notice that I have put a piece of text labelled “Like” at the top of each post, and also in the footer of the footer of each post. Now I would like to link these pieces of text up to your plugin – I just have no idea how to do it!

  58. 58 alex said at 2:44 pm on September 11th, 2009:

    Hi. Great Plugin!!! When it will be able to show the persons who likes the post?
    Thanks a lot.

  59. 59 David said at 5:17 pm on September 21st, 2009:

    Hello, congratulations for the plugin. I installed it on my blog but I have noticed an issue if WP Likes is also present along with Lightbox 2.8.2 (http://stimuli.ca/lightbox/). Lightboxes it stops working, generating javascript errors. If you disable all WP Likes back to work.

  60. 60 Maxime said at 6:26 pm on September 21st, 2009:

    Hello, great plugin I wish I could user soon…
    In fact, I have the same problem as Sax. This message is displayed when I try to activate your plugin.. I don’t know what to do, please help.

    Thank’s

  61. 61 Bronte said at 12:25 am on September 25th, 2009:

    I have stories that go over more than one page. I love the “like” button but is there any way to have the Like button appear BELOW the next page buttons. People don’t realise there is more than one page because the like button comes up ahead of it. You can see what I’m talking about on this page here: http://www.jscribes.com/salt

    Thanks

  62. 62 Stuart said at 11:11 pm on September 27th, 2009:

    Great plugin! Would be nice to be able to use the “most liked” list in the dashboard. I’d like to show it to users, like a “most read” list.

    Nice work!

  63. 63 Aakash Bapna said at 3:05 am on September 28th, 2009:

    First of all, forgive me for late responses. I have been really busy with college and stuff and hence couldn’t look into the issues.

    @tee I hope you have figured it out. A small CSS hack would have done the trick. And thats one of the best customizations of the plugin I came across :)

    @Ting that may be because of jQuery taking time to load as bunch of other heavy stuff loading on the page.

    @Sax, Maxime very common error caused when the web server is still using PHP 4.x Upgrade to PHP 5.2.X

    @Karly nice find. will fix that one soon.

    @Jake I would suggest putting the theme template code found under WP likes settings to both top and bottom area of a posts.

    @alex soon. I need to be careful in handling the session cookies or this could turn into a major security threat.

    @David I am testing this LightBox plugin right now. If you can give me the javascript error being generated at your end, this will help me in debugging the issue.

    @Bronte as I have suggested to others, you can call the plugin code(found under settings) in theme template files and render the plugin wherever you want in a post. Also I will be posting an update which checks if there are more than 1 pages in the post and renders accordingly.

    @Stuart you want to modify the sidebar widget text?

  64. 64 izdale said at 7:05 am on October 5th, 2009:

    The sidebar widget to show the most liked posts is not XHTML valid.

    “required attribute “alt” not specified

    …omments.png’ title=’commented by 4′/>4<a href='ht…

    The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element.

    Typical values for type are type="text/css" for and type=”text/javascript” for .”

  65. 65 izdale said at 7:07 am on October 5th, 2009:

    The sidebar widget to show the most liked posts is not XHTML valid.

  66. 66 David said at 5:23 pm on October 5th, 2009:

    These are the error messages that show firebug:

    this.menu is undefined
    this error] if (this.menu.length < 2) { return; }
    in file menu.js (row 27)

    element.dispatchEvent is not a function
    element.dispatchEvent(event);
    on file prototyp…s?ver=1.6 (row 3936)

    element.style is undefined
    element.style.width = w +"px";
    on file lightbox…s?ver=1.8 (row 33)

    menu.js file is part of the theme "inove", perhaps this is to create problems?

  67. 67 Aakash Bapna said at 1:00 am on October 7th, 2009:

    @izdale, thanks again its fixed with today’s update.
    @David the protoype js framework is causing problems with jQuery, you can update the plugin and try, I have patched it to be make it more compatible with other plugins.

    Now, as of today your blog RSS feed can show the like count of your posts!

  68. 68 David said at 11:42 am on October 7th, 2009:

    @Aakash Bapma
    I updated and reactivated the plugin and now it works perfectly.
    Thank you !!!

  69. 69 Mat said at 5:24 pm on October 9th, 2009:

    Hello, Im trying to set up the “most liked” stats on my about page (http://tinyurl.com/mbangert)…

    I’ve been doing some trial and error and almost managed to do so:

    This is what I add:
    php if(is_callable(‘wp_likes_render::sidebar’)) wp_likes_render::sidebar();

    It does work, but I also get this error message:

    Warning: Missing argument 1 for wp_likes_render::sidebar(), called in …wp-content/plugins/exec-php/includes/runtime.php(42) : eval()’d code on line 10 and defined in /homepages/2/d40919988/htdocs/mathieu/wp-content/plugins/wp-likes/likes.php on line 406

    Warning: extract() [function.extract]: First argument should be an array in …wp-content/plugins/wp-likes/likes.php on line 407

    Do you have any idea what the argument should be to render it correctly?

    Thank you,

    Mat (http://tinyurl.com/mbangert)

  70. 70 windhauch » Gefällt mir! said at 10:30 pm on October 9th, 2009:

    [...] für das WordPress das Plugin WP Likes entdeckt und probiere das mal ‘ne Zeit lang auf windhauch aus. Wenn’s euch gefällt [...]

  71. 71 Lee said at 10:17 am on October 10th, 2009:

    Sorry to bother you. Just a quickie.
    Ive just done afresh install of wordpress 2.8.4 & my only plugin is wp-likes. Unfortunately Im getting the link but only a spinning loader which never stops.
    Im running php5 according to my hosts.
    Any ideas? Sorry to ask.

  72. 72 Maxime said at 2:03 pm on October 13th, 2009:

    Hi! thanks for your help regarding my version of PHP…

    I’ve another question for you, do you know how to make WP-Cache and your awesome plugin compatibles ? Because, as you can imagine, when I enable WP-Cache if someone like the post, if you refresh the page the likes are not refreshed.. I don’t even know if my like is saved or not..

    What do you think? Is it possible to force the cache to resave the page when someone (dis)likes it?

    Cheers

  73. 73 Aakash Bapna said at 3:40 am on October 14th, 2009:

    @Mat you can try doing it this way- wp_likes_render::sidebar(array()); WordPress sends some default params which are used by theme files.

    @Lee that was because of wp_head() not being called in theme template.

    @Maxime will see whether WP-Cache has an API.

  74. 74 Kristina said at 6:31 am on October 20th, 2009:

    is there any way once a user clicks “like” to make the “unlike” link appear to the right of the “you and X people like..” text, instead of it flipping down a line (not sure if this is jQuery stuff making the unlike link move down, or php…). If you can help me find the code to change, I can do it manually. Works great! Feel free to see my implementation (linked on my username)

  75. 75 Kristina said at 7:53 am on October 20th, 2009:

    Hmm, may have worked around it by adding “align:right” etc to CSS. Wish there were a more direct way.

    I’ll say it again–LOVE the plugin!

  76. 76 Ting said at 11:13 am on October 28th, 2009:

    It still doesn’t work, it just doesn’t show how many people like it after clicking on the Like button.
    :(

  77. 77 shedmore said at 9:54 pm on November 2nd, 2009:

    Using WPMU, and the plugin works except for the widget….from what I can tell the problem happens at the sql statement….

    $sql=”SELECT post_id,p.post_title AS title,count(post_id) AS num FROM $wpdb->likes,$wpdb->posts p WHERE p.id=post_id GROUP BY post_id HAVING num>1 ORDER BY num DESC LIMIT 5″;

    Any ideas on what needs to be done to get this to work with WPMU structure?

    Also, I noticed you define $wpdb->post=$wpdb->prefix.”posts”; but in the query you say $wpdb->posts p WHERE (why is the posts plural in the query, when you defined the path above it as singular)

    Thanks for your hard work!

  78. 78 shedmore said at 10:26 pm on November 2nd, 2009:

    I take that back….it does work, but on my local box (where the are no “external users”) I was unable to see becuase the sql is limited to <1 :) I changed that to <=1 and I am now able to see the items show up in the sidebar…

    However, that does spotlight one thing I noticed….I am logged in to both Firefox and Opera (because they don't share the same cookie) ..that allows me to be logged in as both an admin and as a user (on the same computer) to see whats happening form a user perspective.

    The problem is – your plugins hash doesnt change for each user even though they are technically "different users" (should it?),

    When I "Like" one post, and then go to the other browser with the other logged in user …it shows that "that" user likes that one already, and if I "unlike it" and then like it again…it saves over the database entry for that like with the new user id…instead of creating a "new" entry for that user id.

    Could you please explain the purpose of the hash.

    Thanks

  79. 79 shedmore said at 10:28 pm on November 2nd, 2009:

    I just attempted to post an update to what I said above, but it isnt showing…is it possible its in moderation?

  80. 80 reboltutorial said at 3:07 am on November 3rd, 2009:

    Hi, I installed it on http://reboltutorial.com but nothing shows up ?

  81. 81 Jay Schires said at 12:22 pm on November 3rd, 2009:

    I noticed you replied to lee about the spinner constantly spinning…mine is doing the same thing. Clicking the like link just refreshes the page, other than that it just spins and spins, I checked and I believe wp_header is being called

  82. 82 Aakash Bapna said at 2:27 am on November 4th, 2009:

    @shedmore its like later i figured out that $wpdb->posts already references to the posts table. How do you want the widget to display? do you want sitewide liked posts to be shown on the main blog?

    @reboltutorial I see plugin working on your blog. I hope you figured it out.

    @jay can tell me the javascript error that is ocurring when you click like ?

  83. 83 Jay Schires said at 3:34 am on November 4th, 2009:

    there is no error at all. It just spins, then when clicking the “like” link it just refreshes the page and wp_head() is in the header

    ?php wp_head(); ?

  84. 84 Jay Schires said at 9:07 am on November 4th, 2009:

    I should mention the like link is text, not a image or button

  85. 85 Top 1000 WordPress Plugin Authors « Metode de promovare said at 12:40 am on November 7th, 2009:

    [...] WP likes [...]

  86. 86 Aakash Bapna said at 12:27 am on November 8th, 2009:

    @Jay can I get to see a link with that behavior?

  87. 87 Aakash Bapna said at 2:19 am on November 8th, 2009:

    @shedmore sorry, just noticed it was in akismet spam queue!
    It binds your like with prev session if present otherwise IP. This makes sure that a person never likes the same post twice and whenever he revisits the post, he can see that he liked it.
    Most wordpress blogs have not more than 2-3 registered users so I thought of sticking the ‘like’ with IP instead of user. However thats not the case with WPMU! I think I need to re-work it for WP-MU.

  88. 88 Jay Schires said at 9:31 am on November 8th, 2009:

    http://maintwit.mytwitbox.com/ on the left side of the screen

  89. 89 Paolo said at 12:28 am on November 10th, 2009:

    Hi, I tested this plugin in a test installation of wordpress and it works well; then I installed it in my blog and there is the link “like” but clicking it nothing appears. I thought to problems of compability with other plugins… How can I solve?
    Thanks!

  90. 90 jon said at 3:24 pm on November 19th, 2009:

    all i see is the like link with no image and the spinning wheel. my host php is 5 so i don’t know what the problem is? thanks!

  91. 91 Shane said at 8:39 am on November 21st, 2009:

    Is it possible to get rid of the word “You” after you have liked a post? I’m wanting to mimic the way the Like feature works on Tumblr. A gray heart, darkening a bit on mouseover to like a post. Then the liked post will have a red heart. The red heart could then be clicked to unlike a post. Thanks!

  92. 92 Anand Subramanian said at 10:07 pm on December 1st, 2009:

    It still doesn’t work, it just doesn’t show how many people like it after clicking on the Like button.

  93. 93 Eric said at 9:26 am on December 9th, 2009:

    Hi,

    I love this plug in. Its simple, and is exactly what I need. Unfortunately, the Top Liked Posts is not loading on the widget or the dashboard. Even after I like a few posts, none show up in either place. Is there a way to fix this?

    Thanks so much.

  94. 94 der ewige Anfänger said at 1:31 am on December 10th, 2009:

    Great plugin and seems to work well on my 2.8.6 installation.

    However, as I am running my blogs in German language, I would need an internationalized version.

    If you need any help on this, just drop me a note!

  95. 95 Idolon said at 3:59 am on December 10th, 2009:

    I’m getting validation errors on my pages because WP likes adds a tag even though there is no paragraph to close.

  96. 96 Idolon said at 4:01 am on December 10th, 2009:

    I guess that was interpreted as HTML. That should have said, WP likes adds a </p> tag.

  97. 97 Nancy said at 2:16 pm on December 12th, 2009:

    I would really love this plugin…if I could get it to work. Activation seems fine, and the thumbs up link with the text “Like” shows up but when I click it, nothing changes. That is, I don’t see any black box above the thumbs up right now, and after being the first to “like” a post, still no black box with the number of likes. Any suggestions?

    Sorry I’m not code-saavy.

  98. 98 Nancy said at 10:56 am on December 15th, 2009:

    Just wanted to update. Apparently, I had the wrong permissions on the wp-likes folder. Changed them to 755, as the error log on cpanel was telling me, and got all my plugins to work now. Yay! Thanks for the plugin!

  99. 99 Nancy said at 12:30 pm on December 26th, 2009:

    One more thing…wp-likes doesn’t seem to be working on my category pages where I use the_excerpt instead of the_content. When the excerpt is displayed, wp-likes shows as plain text. Is it possible to get it working with excerpt or have wp-likes not show at all with excerpts?

  100. 100 Dustin said at 1:24 am on January 2nd, 2010:

    Same problem as @Eric above. Any ideas? I have cleared out any plugins that I didn’t need. I’ll try and deactivate and reactivate to see if it will work.

  101. 101 Aakash Bapna said at 4:08 am on January 6th, 2010:

    Sorry for the ignorance, life’s been tough last month.

    “Clicking the like link and loader spins forever”
    There is a php error from backend. Check the plugin folder permissions, they should be 755. You can see your server error log for more debugging info.

    “Clicking the like link- nothing happens, not even the loader shows up”
    This is a frontend javascript error. Mostly caused if jQuery is not being loaded. Check your browser error console for more insight.

    @Shane noted. Will try to do something like tumblr in next release

    @Idolon From what I have seen on most blogs, the wordpress code doesn’t close its when the plugin is invoked. What version of wordpress you on? The fix is for this is to remove the leading in first ECHO, likes.php file function- wp_likes_render::post().

    @Nancy this should be relatively easier to fix. Can I see the page where plain text is appearing when the_excerpt() is called.

    @Eric, Dustin What wordpress version you on? you can try adding a call to wp_likes_render_sidebar(null) in your theme file.

  102. 102 Idolon said at 6:35 am on January 6th, 2010:

    I’m using 2.9.1 now, but I’m using the WP Unformatted plugin to remove the starting and ending <p> tags since, when the tags were there, the HTML I used in some of my posts was invalid. I fixed it the same way you mentioned.

    I realize it’s difficult to tell if there is an unclosed p tag, but I thought I’d say that it doesn’t always need to be closed.

  103. 103 Ivo Minchev said at 4:52 pm on January 11th, 2010:

    I want to suggest more words that could be with modified text (like Unlike Button Text, Like Button Text, Like Text, Like Actors). At first I would like these words to be available with their plural forms.
    In Bulgarian language you can say “Like” in 3 ways. For example “Харесвам” is for I like, “Харесваш” is for You like and “Харесват” is for They like. Also I would like there to be and the pronouns “You”, “They” and etc.
    Also and the Like Actors. They have to be with their singular and plural forms.

    Thanks.

  104. 104 Aakash Bapna said at 4:11 pm on January 14th, 2010:

    Ivo, please try out the new 3.0 release- http://blog.aakash.me/index.php/2010/01/wp-likes-3-0-a-glimpse/

  105. 105 Martin Klima said at 5:19 pm on March 12th, 2010:

    The widget does not show up.. Don´t you know why? Thanks

  106. 106 Aaron Fooshee said at 7:38 am on March 29th, 2010:

    I love they way the plugin works on your site, but it doesn’t function for me. I’ve just installed 3.0.2 for the first time (replacing wp-postratings), but ajax feedback appears to fail. The proper feedback is only given after a manual page refresh. I’m leaving the failing plugin on the live site for a little bit so you can check it out. I’m running a child theme atop current versions of K2 and wordpress. Any insight would be appreciated.

  107. 107 Aakash Bapna said at 1:53 am on April 8th, 2010:

    @Aaron
    Your theme is interfering with WP Likes, its unnecessarily appending some text to response, which is breaking the JSON.

  108. 108 parag said at 1:51 pm on January 10th, 2011:

    i have not find total person unlikes this post with images to this plugin

  109. 109 Rodri said at 4:09 am on July 15th, 2011:

    Hello Aakash, i’ve just installed the plugin in wordpress, and also checked “Visible on posts on pages”, but I want the plugin in some of my pages, not in all of them. How can I make this happen?
    It appears in “Bio” and “Contact” pages, where I really don’t want them.

    Thanks!

  110. 110 Paolo said at 3:54 am on September 6th, 2011:

    Hi Aakash Bapna,

    thank you for a awesome plugin! The WP Likes works very well except when you click on the category view of the blog. Actually it should work in the same way, but it doesn’t. I can’t understand it. Do you have any suggestion?

    Thanks!!!


Leave a Reply