CJD Rate-it!, finally

Yes, yes I finally got around to releasing my plugin that I use to add hearts and stars to my posts ala Binary Bonsai.

It is fairly well documented and easy to add to your site, take it for a drive and let me know what you think, the next version will include user rating, and a function to list your top-rated articles.

You can grab Rate-it! from wp-plugins.org, and soon from an archive on this site… somewhere.  Stay tuned.

Oh and if you are having problems with the unicode HTML entities you can change the icons to whatever you want by finding $heart and $star at under the function rating_icon (3rd function in cjd_rate_it.php) if you want to use images just change the HTML entity code to the path of your image:

$heart = '<a href="/path/to/my/great/image.png" title="my great image" />';

That’s all for now.

  1. personal avatar Jennifer
    Stroll on over and visit Jennifer
    March 1, 2007

    Chris, this is just about as great as Pink Ponies! I will most definatly try this out tonight!

  2. personal avatar Denis
    Stroll on over and visit Denis
    March 1, 2007

    Chris,

    This is a sweet plugin, thank you for making it public! I found a slight bug. You say to put the admin_rate.php file in the site root, this however breaks if the blog is not on the root level of the site. In my case, the blog rests at secretweaponlabs.com/words so I went in to the plugin code and changed all references to admin_rate to words/admin_rate. All works great now!

    Thanks again!

  3. personal avatar Chris J. Davis
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    Ant,

    Your first problem looks to be an extra line/space at the end of the file. Open up cjd_rate_it.php and make sure there isn’t any space after the closing ?>.

    When you have done that come back and we can talk about why the plugin might not be working for you.

  4. personal avatar Ant Eksiler
    Stroll on over and visit Ant Eksiler
    March 1, 2007

    hi Chris,

    I installed your plugin, but could not get it to work. I placed the necessary codes inside the index.php template, but I cant see the vote items.

  5. personal avatar Shawn Grimes
    Stroll on over and visit Shawn Grimes
    March 1, 2007

    Great job on the plug-in Chris. Now that I have unicode going on my laptop and home pc I can see the nice little symbols. It is good however that custom icons can be made and used for those that can’t get unicode up and going. Now, where is that pesky Recent Commenters plug-in hiding?

  6. personal avatar Colin D. Devroe
    Stroll on over and visit Colin D. Devroe
    March 1, 2007

    Good work Chris. Excellent plugin which will find many uses as people figure out a brand-new way to make their best writing/picture/podcast stand out.

  7. personal avatar William
    Stroll on over and visit William
    March 1, 2007

    Excellent! I’ve been waiting for this one.

  8. personal avatar Chris J. Davis
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    Ant, yeah in the readme it says that is the only function that is available at the moment.

    The next version will support users rating.

  9. personal avatar Ant Eksiler
    Stroll on over and visit Ant Eksiler
    March 1, 2007

    Chris I solved it by adding image tags in the php code.

    But now I have a problem because users or visitors cant rate the posts? Only the admin can vote on them?

  10. personal avatar Indranil
    Stroll on over and visit Indranil
    March 1, 2007

    Hooray for all of you!! And especially you, Chris, for finally getting it out in the open.
    I however have been using it for quite some time now, thanks to some nagging from my part :)

  11. personal avatar Shawn Grimes
    Stroll on over and visit Shawn Grimes
    March 1, 2007

    Aww Chris, it’s ok, if you want to keep that beauty for yourself, that is fine. You did make it afterall and if it is to be a Sillyness exclusive, so be it :)

  12. personal avatar Chris J. Davis
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    I know guys, I suck. I am sorry that it took so long to release, I am a schmuck sometimes. And yes Shawn I will start to work on releasing the recent commenters plugin!

    I just can’t have nice things!

  13. personal avatar Aubrey
    Stroll on over and visit Aubrey
    March 1, 2007

    Wow, so that’s what the hearts on your site mean? I had been wondering what they were after i saw them on a few people’s sites. Good job!

  14. personal avatar kartooner
    Stroll on over and visit kartooner
    March 1, 2007

    About time Chris. ;) Actually, I’ve been waiting for this to be released for quite some time so yeah, I’m a bit thrilled about it.

    Good work!

  15. personal avatar Bilal
    Stroll on over and visit Bilal
    March 1, 2007

    Ok, I tried that image tag. It worked but my page won’t be valid.

  16. personal avatar Chris J. Davis
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    Well you can use /> if you need to, that was more of an example.

  17. personal avatar Bilal
    Stroll on over and visit Bilal
    March 1, 2007

    Alright, I won’t. :)

  18. personal avatar Chris J. Davis
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    It will show the ratings if you are logged in, and using the template that you put those bits of code in.

  19. personal avatar Bilal
    Stroll on over and visit Bilal
    March 1, 2007

    Ohhh, right. Well my stupid questions are done now. :P
    Thank you very much for the plugin and you have a very neat site!

  20. personal avatar Bilal
    Stroll on over and visit Bilal
    March 1, 2007

    Oh, right. I get it…
    Last question, I’ve put this "php rating_icon($post->ID);" and "php if_admin($post->ID);" in the theme template.

    Will it display the admin rate tool with every post I make? Because I just recently made a post and can’t see 1/30/50 ratings..

  21. personal avatar Chris J. Davis
    Stroll on over and visit Chris J. Davis
    March 1, 2007

    Bilal,

    There are no stupid questions, only stupid people.

    Thankfully you are not a stupid person. If you need anything else don’t hesitate to ask.

  22. personal avatar Bilal
    Stroll on over and visit Bilal
    March 1, 2007

    Ugh, still won’t work for me.
    I copy/pasted what you posted above. Or I guess I shouldn’t have?
    Don’t I have to use the img tag?

  23. personal avatar Fawad
    Stroll on over and visit Fawad
    January 7, 2008

    Sorry I don’t see any examples of this even on your “Binary Bonsai” posts…

    Can you point me to an obvious example of what this plugin does?

    Thanks!

Pingbacks & Trackbacks

  1. WordPress Italy » Archivio Blog » Plugin WordPress: Rate-it! » [...] ; 1.5.1 in italiano: aggiornamento #1 Plugin WordPress: Rate-it! Rate-it! รจ un plugin per WordPress, creato da Chris J. Davis, che vi permette di avere un ins [...]
  2. Secret Weapon Labs » Blog Archive » Plugin Mania » [...] the blog until I feel it’s up to par. Consider these the corporate sponsorships! Chris J. Davis’ Rate-It plugin - adds some sweetness and personality IImage Browser - a [...]
  3. Sporadic Nonsense » Miscellaneous Debris » [...] lug-in, you won’t regret it. And last but not least Chris J. Davis has released his Rate-it plug-in. It enables you to rate your articles so that you can keep track of favorite o [...]
  4. geeksmakemehot.com » Rate-it! Plugin by Chris J. Davis » [...] iled under: WordPress, Plugins — Jennifer at 9:37 am on Sunday, May 15, 2005 Rate-It! by Chris J. Davis, enables you to rate your articles so that you can keep track of fa [...]
  5. Secret Weapon Labs » Blog Archive » SVN for Mac, explained… F***ING FINALLY! » [...] Chris J. Davis, already ranked with several gold stars in my book, for his Wordpress evangelism and kick-ass Rate-It Wordpress plugin, has outdone himself once again. Why, you ask? Because he broke down SVN (an open-source version control software) into a simple, layman’s set of instructions that we can use on a Mac without going insane over Terminal black magic. [...]

Leave a Reply