-
Website
http://patchlog.com -
Original page
http://patchlog.com/wordpress/more-optimization-for-comment-relish-plugin/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Michael Lankton
1 comment · 1 points
-
daddyjason
1 comment · 36 points
-
anraiki
1 comment · 1 points
-
Ross McKillop
1 comment · 5 points
-
Chris Thomson
1 comment · 2 points
-
-
Popular Threads
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-...
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!
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.
cheers,
Zac
v3 on my WordPress 2.6 sends welcome email to each comment I leave. Can you guys look into 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 )
);
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
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' .