rss feed one laptop per child

written my first wordpress plugin!!!

3rd November, 2005 - 11:54 pm - posted in tech, noteworthy

The smart comments plugin written by Patrick was not compatible with the newer Wordpress 1.5 version which I'm currently using. So I opened the file, modified it, and voila! A new version is born.

Feel free to download the Smart Comments Plugin v 2.0 here.

Instructions:

1) Put the file smartcomments.php in the wp-content/plugins folder.

2) Activate it by going to your Admin -> Plugins page.

3) Then, in each of the index.php and archive.php files, find this line:

< ?php comments_popup_link('No comments »', '1 comment »',
'% comments »'); ?>

4) Simply replace comments_popup_link with smart_comments_popup_link and you're done.

Hope it saves you some time!

tags: 


				

29 comments

  1. Elaine MonsterID Icon

    This is so obviously machine-generated and I've actually seen this before so I know which script you're using. Hehehehhe. Post some personal posts soon!

    Elaine — 4th November, 2005 @ 11:27 am


  2. yvette MonsterID Icon

    already contributing to the wordpress community! :D

    yvette — 4th November, 2005 @ 11:37 am


  3. eddy MonsterID Icon

    Are you going to be a techo-lawyer?

    eddy — 4th November, 2005 @ 11:42 am


  4. Patrick O'Leary MonsterID Icon

    Hey, I can't believe people are getting use out of this still, but it's great that you updated it! (I never did it because I decided to stop using it myself.) Whoo-hoo! My 10 seconds of fame.

    Feel free to edit the wiki or whatnot, and add your name in. (Like it was that hard to write the plugin in the first place :-)

    Patrick O'Leary — 4th November, 2005 @ 12:55 pm


  5. Kirk MonsterID Icon

    新招...
    高招!

    勁! XD

    Kirk — 4th November, 2005 @ 4:33 pm


  6. WordPress Italy » Blog Archive » Plugin WordPress: Smart Comments Link for 1.5 MonsterID Icon

    [...] Smart Comments Link è un hack che esegue la funzione comments_popup_link() a seconda dello stato dei commenti all'articolo. Se i commenti sono chiusi e non ci sono commenti all'articolo, il link ai commenti non viene visualizzato. [...]

    WordPress Italy » Blog Archive » Plugin WordPress: Smart Comments Link for 1.5 — 5th November, 2005 @ 6:10 pm


  7. e MonsterID Icon

    now that i'm awake i think i know what you're talking about in your post. :P arrr

    good job :D

    e — 5th November, 2005 @ 6:46 pm


  8. ryanne MonsterID Icon

    thanks to all =)

    this is only a very simply plugin which does not deserve so much praise.
    and i didn't have to write it from scratch, thanks to Patrick's original work! =p

    ryanne — 6th November, 2005 @ 12:13 am


  9. Web Programming MonsterID Icon

    Smart Comments Plugin V 2.0 WordPress Plugin

    WordPress Plugin Details: Category: Comment Plugins Name:Smart Comments Plugin V 2.0...

    Web Programming — 17th November, 2005 @ 2:27 am


  10. Afshin MonsterID Icon

    Hi.
    Is this plugin compatible with wordpress version 2.0?
    I would like that you write the smart comment plugin that remove link comment.
    Thank you very much.

    Afshin — 30th January, 2006 @ 5:05 pm


  11. Doufer MonsterID Icon

    Nice! Keep up the good work!

    Doufer — 12th April, 2006 @ 11:23 am


  12. jetshack.com » Blog Archive » Plugin List MonsterID Icon

    [...] Smart Comments Plugin: Prints “comments off” instead of “no comments” if comments are turned off. [...]

    jetshack.com » Blog Archive » Plugin List — 9th May, 2006 @ 11:02 pm


  13. Ferit Kunoglu MonsterID Icon

    Thanks for your cool plugin...

    Ferit Kunoglu — 1st January, 2007 @ 5:31 pm


  14. alice MonsterID Icon

    Is there a way to mae it work with 2.1 it doesn't seem to work now that I upgraded.

    alice — 27th January, 2007 @ 5:07 am


  15. laihiu MonsterID Icon

    since structural changes have been made in 2.0 or newer versions of wordpress, i'm afraid this plugin will have to retire sooner or later, unless somebody kindly updates the plugin like i did with the previous version :)

    laihiu — 27th January, 2007 @ 4:29 pm


  16. netrace MonsterID Icon

    testing

    netrace — 31st January, 2007 @ 6:43 am


  17. Aoyoyo MonsterID Icon

    I'm interested in gravatars in your comment. So, here is a try.

    Aoyoyo — 2nd February, 2007 @ 4:54 pm


  18. Wordpress Plugins Themes Download » Blog Archive » MonsterID Icon

    [...] http://laihiu.nicesoda.com/2005/11/04/post378 [...]

    Wordpress Plugins Themes Download » Blog Archive » — 21st February, 2007 @ 1:24 pm


  19. sumo MonsterID Icon

    very good

    sumo — 23rd February, 2007 @ 2:17 pm


  20. Muzikistah » Blog Archive » plugins MonsterID Icon

    [...] SMART Comments A plugin which prints “comments off” instead of “no comments” if comments are turned off. By Ryanne Lai and Patrick O'Leary. I'm not totally sure if this works because i don't usually turn comments off. So, yeah. [...]

    Muzikistah » Blog Archive » plugins — 12th March, 2007 @ 8:08 pm


  21. Andrew Tan MonsterID Icon

    Hi,
    where is this comment plugin that I am typing into now? I have been trying to find this...

    Andrew Tan — 2nd April, 2007 @ 11:43 pm


  22. laihiu MonsterID Icon

    hi andrew - which comment plugin exactly are you referring to? the smart comments plugin or the monster one?

    laihiu — 3rd April, 2007 @ 12:00 am


  23. Smart Comments Plugin v 2.0 - DevelopeNet.com MonsterID Icon

    [...] instead of "no comments" if comments are turned off. Author: Ryanne Lai Hiu Yeung Plugin Page Attached [...]

    Smart Comments Plugin v 2.0 - DevelopeNet.com — 16th April, 2007 @ 5:11 pm


  24. WP Plugins DB » Blog Archive » Smart Comments Plugin v 2.0 MonsterID Icon

    [...] Visit [...]

    WP Plugins DB » Blog Archive » Smart Comments Plugin v 2.0 — 20th May, 2007 @ 3:48 pm


  25. WordPress Plug-in List for Meandering Passage, Aug. 2007 : Meandering Passage MonsterID Icon

    [...] Returns a list of the related entries based on active/passive keyword matches. -- Plug-in: Smart Comments Version: 2.0 Author: Ryanne Lai & Patrick O'Leary Desc:  A plugin which prints [...]

    WordPress Plug-in List for Meandering Passage, Aug. 2007 : Meandering Passage — 11th August, 2007 @ 3:03 am


  26. manele MonsterID Icon

    i use wp 2.0 and the plugin is working fine! thx

    manele — 11th December, 2007 @ 1:58 am


  27. Estetik MonsterID Icon

    Good plugin thanks.

    Estetik — 29th January, 2008 @ 10:14 pm


  28. WordPress Plugins Database » Plugin Details » SMART COMMENTS PLUGIN v. 2.0 MonsterID Icon

    [...] Visit [...]

    WordPress Plugins Database » Plugin Details » SMART COMMENTS PLUGIN v. 2.0 — 1st February, 2008 @ 2:50 pm


  29. estetik MonsterID Icon

    Very nice plugin. Congrats.

    estetik — 28th March, 2008 @ 2:07 pm


add a comment: