DISQUS

Patchlog: More optimization for comment relish plugin

  • Blogging Experiment · 2 years ago
    Thank you VERY MUCH! I was going nuts!
  • webd360 · 2 years ago
    Thanks for creating this, I've been waiting for this :)
  • Rhys · 2 years ago
    I'm assuming with the two pingbacks that pingbacks work fine with this plugin (unless you haven't installed it here) ;)
  • Mihai Secasiu · 2 years ago
    Actually I had the older version installed here, the one I presented in this post:
    http://patchlog.com/wordpress/comment-relish-op... and I didn't notice this problem.
    Anyway here's an update that does not try to send an email to pingbacks and trackbacks http://patchlog.com/wp-content/plugins/comment-...
  • Rhys · 2 years ago
    Thank you for this, I guess I should've explained myself better.

    On my old theme, and the old version of comment relish, for reasons you identified in that post, my blog would crash if somebody sent me a trackback. As a result, I managed to edit it so that trackbacks didn't activate the code like comments did.

    Excellent work by the way!
  • Roel · 2 years ago
    Love the plugin. Now I just need to create an interesting message ;-)
  • MichelleVan · 2 years ago
    I'm still getting the error and can't seem to fix it. I downloaded the new one, delete the old one - do I need to reinstall and deactivate first? help!
  • Mihai Secasiu · 2 years ago
    What error are you getting exactly ?
  • Ozh · 2 years ago
    Very nice patch (and much needed, jeez, looking for new commenters on each page load?? silliest stuff ever)

    A few more stuff to fix for you!

    - It still misses some stripslashes (on line 288 and when outputting the options in the admin page, otherwise you see plenty of "I\'m happy you\'ve left a comment"

    - it's full of PHP short tags (<? instead of <?php) which will make the plugin break everything on purist setups.
  • Ozh · 2 years ago
    your blog ate my comment :/ (contained some other stuff to fix)
  • Mihai Secasiu · 2 years ago
    Thanks for the suggestions. I will release another patch that fixes the stripslashes thing. As for the short tags, I never encountered such a problem.
  • Mihai Secasiu · 2 years ago
    nope, I just have to approve new comentators
  • Mike · 1 year ago
    Comment Relish was working great, until today when it crashed my blog when I accidentally made a trackback from one post to another.
  • Norman · 1 year ago
    I’m assuming with the two pingbacks that pingbacks work fine with this plugin (unless you haven’t installed it here) ;)
  • Krzysztof Lis · 1 year ago
    Everything's cool, but your plugin doesn't support any letters from non-english charset. :(
  • Mihai Secasiu · 1 year ago
    Well it's not my plugin. I just fixed one issue with it.
  • Krzysztof Lis · 1 year ago
    So what stops you from adding some features?
  • Mihai Secasiu · 1 year ago
    mostly lack of free time
  • Zac · 1 year ago
    So installed v3 on a test instance of my site and left 4 comments. I got 4 welcome messages - anyone experienced this as well?

    cheers,

    Zac
  • Alex Sysoef · 1 year ago
    Same issue as with Zac above.

    v3 on my WordPress 2.6 sends welcome email to each comment I leave. Can you guys look into it?
  • Mihai Secasiu · 1 year ago
    The problem is most likely because the plugin was not able to create the cr_emailed table. deactivate the plugin and ( If you can access wordpress database ) lookup in wp_options for cr_installed and set it to 'false' and then just reactivate the plugin. This should just create the table : cr_emailed. look for it in the database to make sure it's there. If it's there then you should not have that problem anymore.
  • Ted · 1 year ago
    I was having the same problem as Zac, and I couldn't get the plugin to create the table, so I just manually created it.

    Just replace the wp in wp_cr_emailed if you have a different wordpress prefix.

    CREATE TABLE wp_cr_emailed (
    emailed_ID mediumint(9) NOT NULL AUTO_INCREMENT,
    time bigint(11) DEFAULT '0' NOT NULL,
    email varchar(255) NOT NULL,
    UNIQUE KEY emailed_ID (emailed_ID),
    INDEX ( email )
    );
  • dan · 1 year ago
    great article. thanks for posting the optimization tips.

    I got a question though. Would it be a hard thing to do to add a delay into the email that relish sends out? Ive noticed that when someone new leaves a comment on my site, the welcome email I set up is sent out to them immediately. I would like to be able to put a delay of maybe 2 or 5 mins before the email is sent out.

    thanks
  • Mihai Secasiu · 1 year ago
    You could do that if you would create a system to send emails in batches ... right now the plugin hooks into the comment posting function so it would be unacceptable to make the user wait for 2-5 minutes before his comment is posted.
  • VizionQuest · 1 year ago
    So have your fixed all the bugs or is anyone experiencing more problems with this? If so, is there another available amended version of this plugin somewhere else that works correctly? Thanks for your help.
  • Mihai Secasiu · 1 year ago
    The only problem that might exist but may now show up for everybody is that the plugin doesn't create the database when you install it.
    You can check your wp db after you install it. If you see a table named {wp_prefix}_cr_emailed then it's ok.If not then you should create the db manually by running this sql in a mysql client like phpmyadmin or whatever you use:

    CREATE TABLE {wp_prefix}_cr_emailed (
    emailed_ID mediumint(9) NOT NULL AUTO_INCREMENT,
    time bigint(11) DEFAULT ‘0′ NOT NULL,
    email varchar(255) NOT NULL,
    UNIQUE KEY emailed_ID (emailed_ID),
    INDEX ( email )
    );

    WP_PREFIX is the prefix that all wordpress tables have. By default this is 'wp' .