• Resolved heyrsmith

    (@heyrsmith)


    Is this possible in 1.5? After searching around for a bit I found this: http://www.fuegodesigns.com/blog/?p=76 for 1.3; can somebody smarter than me tell me if they think it will work in 1.5? If not, does anybody have any ideas?

    Or better yet, good strategies for having more users than just the admin be notified that there are comments awaiting moderation?

Viewing 4 replies - 1 through 4 (of 4 total)
  • If you have a domain, set up a mailing list (distribution list) and send all notification to that address. It will disseminate and propagate the messages to multiple users (colleagues?) that can subscribe and unsubscribe at will.

    Thread Starter heyrsmith

    (@heyrsmith)

    Thanks, Schestowitz! That is so obvious that I am a little embarrassed… So extrapolating one answer to the first part of my question (rss feed for comments awaiting moderation) would be to shoot the email to an rss-feed enabled mail list (yahoo, patched mailman, or set up my own rss mailing list) and then let folks decide how to subscribe themselves: Nice.

    I would still like to know how to get an rss for comments awaiting moderation feed right out of WordPress, though it would be a little more direct, albeit with one less option.

    I wouldn’t think you’d be able to… Unless there’s some authenticated-RSS feed stuff somewhere in the core. The moderation queue is MEANT to be hidden so that users can’t get to it without being logged in and admins.

    Now, that being said, an enterprising person could certainly code up a hacked-up version of wp-commentsrss2.php, hidden away somewhere outside of normal access (subfolder, with a blank index.php to keep bots away), and have it specifically output only comments sitting in moderation. Okay, if you wanted to, you could just leave it up in the root and not mess around, if you don’t mind that a bot could crawl and find it.

    Otherwise, you take a copy of wp-commentsrss2.php, place it in a subfolder with a blank index.php (well, or die(“go away”) sort of thing…), and then do two modifications:

    1. change the require(‘wp-blog-header.php’) to something like require(‘../wp-blog-header.php’)… whatever path it needs to get to the original file.

    2. change the occurrances of:
    AND $wpdb->comments.comment_approved = ‘1’
    … to:
    AND $wpdb->comments.comment_approved = ‘0’
    … to get stuff in moderation. Or if you want to see moderated AND spam, just flip the original to:
    AND $wpdb->comments.comment_approved != ‘1’

    Donation jar on my site. 😉 😉

    -d

    Thread Starter heyrsmith

    (@heyrsmith)

    Hi David – sorry for the late reply – I have been doing that holiday-vacation thing. Your code (of course!) works like a charm. Thanks! Check your tip jar; hope that is appropriate. Happy New Year to you and yours.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘RSS Feed for Comments Awaiting Moderation’ is closed to new replies.