archon810
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Plugin to always notify administrator for new comments?I looked at the code and I think you’re wrong. Look at comment.php wp_new_comment(). It calls wp_notify_postauthor() which only notifies the user who owns the post. It also does wp_notify_moderator() in case a comment gets held in moderation, which is irrelevant but it never notifies the admin.
if ( 'spam' !== $commentdata['comment_approved'] ) { // If it's spam save it silently for later crunching if ( '0' == $commentdata['comment_approved'] ) wp_notify_moderator($comment_ID); $post = &get_post($commentdata['comment_post_ID']); // Don't notify if it's your own comment if ( get_option('comments_notify') && $commentdata['comment_approved'] && $post->post_author != $commentdata['user_id'] ) wp_notify_postauthor($comment_ID, $commentdata['comment_type']); } return $comment_ID;Forum: Plugins
In reply to: [Plugin: Members] Capabilities can be added but not removedThanks Justin, verified as working.
As far as running trunk, I would normally say it’s true that it’s risky but it helps developers catch bugs before official releases. So just like Viper runs WordPress trunk on his site for bleeding edge and bug detection, I like to help out plugin devs by running bleeding edge plugin code.
P.S. The name “Members” makes it so hard to see tickets here in the WP system, I am glad you noticed.
I’m looking for opinions – I’m sure these already exist and in fact I’m sure there are plenty to pick from. I’m looking for the best. Anyone?
Forum: Fixing WordPress
In reply to: Plugin to always notify administrator for new comments?I have that enabled already but WordPress only emails me when I’m the author (I’m also the admin obviously). It doesn’t email me if another person is the author.
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] svn trunk breaks the « » to above the page naviSorry, I meant Smart Archives Reloaded then.
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] svn trunk breaks the « » to above the page naviRight, the original issue is resolved but the fix resulted in this error. I see they’re kind of unrelated now.
Yeah, I’m using Advanced Excerpts, so it might be clashing but I would expect a different error message in that case (“class redefined” or “function redefined”).
I can wait until you push scbFramework into trunk for both plugins – no rush.
Forum: Plugins
In reply to: [Plugin: WP-PageNavi] svn trunk breaks the « » to above the page naviscribu, I’ve set this back to ‘not resolved’.
With the latest trunk, I tried loading any wp-admin page and every time there is a crash with this in the error log:
PHP Fatal error: Call to undefined method scbAdminPage::register() in wp-content/plugins/wp-pagenavi/wp-pagenavi.php on line 234I downgraded back to 204040 for now.
Forum: Plugins
In reply to: [Plugin: Popular Posts] Stuck at “None Found”In short, the problem was a permission on the plugin dir wasn’t allowing writes. pvctracker.php and pvctracker.js were generated with something like dev.SERVER.com during development and apache was never able to modify them when I went live.
Maybe a check on the dir permission is due as I spent quite a bit of time on this.
Thanks.
Artem
http://AndroidPolice.com
http://beerpla.net
Tweets by ArtemRForum: Plugins
In reply to: [Plugin: Lightview Plus] 2.4.1 not working – js errors. 2.3.6 works fine.I don’t remember now but I’m fairly sure we traced this problem to me rewriting my jquery source to go to the newest jquery that wasn’t released and supported yet (elsewhere in functions.php). I believe WordPress modifies jquery a little bit and puts it into a more compliant mode, so it wasn’t the best idea.
Forum: Plugins
In reply to: [Plugin: WP Super Cache] “Do not cache for logged in users” clarificationThanks for clearing it up in the latest version – looks great.
Forum: Plugins
In reply to: [Plugin: Popular Posts] Stuck at “None Found”I debugged and saw this main SQL statement:
SELECT *, meta_value + 0 AS viewcount FROM wp_posts LEFT JOIN wp_postmeta ON post_id = ID WHERE meta_key = 'pvc_views' AND post_status IN ('publish') AND post_type='post' AND post_password ='' AND (post_date >= DATE_SUB(CURDATE(), INTERVAL 2 year) OR post_type='page') ORDER BY viewcount DESC LIMIT 0, 5;The problem is, wp_postmeta has no meta_key with the value pvc_views, or pvcANYTHING. This is why it’s failing. I reactivated the plugin but the value didn’t appear.
Note that I never added any calls to popular_posts_views() anywhere as instructions don’t say to do so. Looking into this further.
Forum: Plugins
In reply to: [Plugin: WordPress Popular Posts] Database not populatingCrap! I am using this http://wordpress.org/extend/plugins/popular-posts-plugin/ and his other plugins. Doh.
Forum: Plugins
In reply to: [Plugin: WordPress Popular Posts] Database not populating@ikki24
Absolutely – it prints out most of the queued CSS/JS:
<?php wp_head(); ?>
followed by my stylesheet and Google Analytics (async).I’m willing to do some debugging – just tell me what to look for and I’ll step through the code with my debugger.
Edit: I debugged and saw this main SQL statement:
SELECT *, meta_value + 0 AS viewcount FROM wp_posts LEFT JOIN wp_postmeta ON post_id = ID WHERE meta_key = 'pvc_views' AND post_status IN ('publish') AND post_type='post' AND post_password ='' AND (post_date >= DATE_SUB(CURDATE(), INTERVAL 2 year) OR post_type='page') ORDER BY viewcount DESC LIMIT 0, 5;The problem is, wp_postmeta has no meta_key with the value pvc_views, or pvcANYTHING. This is why it’s failing. I reactivated the plugin but the value didn’t appear.
Note that I never added any calls to popular_posts_views() anywhere as instructions don’t say to do so. Looking into this further.
Forum: Plugins
In reply to: [Plugin: WordPress Popular Posts] Database not populatingI’m actually facing the same issue here: http://www.androidpolice.com – I’ve been working on the site for the last few months and just launched yesterday but the popular post data never got populated.
The table is empty in the database. Is there any troubleshooting I can do?
Thank you.
Artem
http://www.AndroidPolice.com
http://beerpla.net
Tweets by ArtemRForum: Plugins
In reply to: [Plugin: WP Minify] Gzip but not minify?Also see http://beerpla.net/2009/06/09/how-to-make-your-site-lightning-fast-by-compressing-deflategzip-your-html-javascript-css-xml-etc-in-apache/ for a more detailed gzip/deflate explanation.