Sitewide Comment Tracking Revisited

August 23, 2008  | 
12 Comments

Useful for tracking comments by community users with output visible in:
Dashboard–>Comments–>My Comments.

Plugin enhancements:

(see Competition eligibility note below)

  • WPMU 2.6 style
  • Avatars
  • Recent post excerpt display
  • “My Comment” listed first, follwed by most recent reply by someone else.
  • Message display for archived/deleted/spam blogs; deleted/unpublished posts, approved/moderated/spam/deleted comments – hence …
  • “Dismiss” link to stop tracking each post
  • Paged display table
  • Re-definable constants(in code) to modify array outputs.
    • MY_COMMENTS_TRACKED = `if (count($LatestCommentsList) > MY_COMMENTS_TRACKED) { unset($LatestCommentsList[0]); …}` during a comment save a blog_id, post_id pair is entered into usermeta->LatestComments, the total counted and when the array exceeds limit, the oldest pair is deleted = 100
    • MY_POSTS_APAGE = more posts per page = increased work for CPU = 10
    • MY_COMMENTS_APOST = more comments per post = increased work for CPU = 1
    • OTHERS_COMMENTS_APOST = 1
    • POST_EXCERPT_LENGTH =`$post_output = wp_html_excerpt($post_output, POST_EXCERPT_LENGTH);` 400 chars
    • COMMENT_EXCERPT_LENGTH = 250

Performance notes: tested on a small WPMU install(>200 blogs). I have not seen how this version performs “maxed out” on my own install yet. I do not know how this plugin performs in a large install. An array of “Blog_id, post_id” pairs are stored in usermeta->LatestComments to a defined maximum, called then sliced by page number, looped to retrieve posts, then each post looped to retrieve comments – “My Comments” and “Other comments”. The bottom of the My Comments page has a numqueries count, FYI(if SiteAdmin). Redefining the MY_POSTS_APAGE constant can throttle the page.

Known Bugs: redefining the MY_COMMENTS_TRACKED constant to a lower limit after users have “maxed out” the previous limit will only unset one comment after each comment submit(“update_usermeta(…)”) thereafter. Such users will continue to exceed MY_COMMENTS_TRACKED Limit until they “dismiss” enough comments to be below the newly defined limit.

Install Notes: drop in mu-plugin, monitor performace/cpu load as “usermeta->LatestComments” data fills with each user comment submitted to defined maximum(MY_COMMENTS_TRACKED). I have not tested this revised version under heavy load. Happy testing!

Competition eligibility note: this plugin is a significantly revised/enhanced/twisted version of WPMU-User-Comment-Tracking-and-DisplayThis work is Copyright GNU GPL You and Your Loved Ones. And: – Xiando (Oyvind Sather), who originally wrote it – And D. Sader - and is intended to add similar functionality(with a few twists) as Matt’s popular wordpress.com My Comments feature. On that basis, I’d accept a decision by the judges to exclude this plugin from the contest.

Download: http://wpmudev.org/project/Sitewide-Comment-Tracking-Revisited

Featured Plugin - Start your own Quora / StackOverflow / Yahoo Q&A site

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - Add bottom corner (or anywhere else) chat to your site

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - Every great SEO tweak you need, in one snazzy bundle

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - Turn any WordPress page into a fully featured wiki!

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - Easily integrate your WordPress site with Facebook

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - WordPress + Google Maps = Perfect

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Featured Plugin - Host sites, get paid, just like WordPress.com

If you've ever wondered how you could offer a paid site management and hosting service, then this is the plugin for you. Offer a freemium or paid service, for any niche you like, it's powered Edublogs.org to success already!
Find out more

Featured Plugin - Open an Online Store with MarketPress

Out of all the WordPress ecommerce plugins available, this has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - Start Your Own Powerful Membership Site

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

12 Responses to Sitewide Comment Tracking Revisited

  1. Awesome, replaced the Xiando plugin with this on my site.

  2. Pingback: WPMu Sitewide Comment Tracking at bavatuesdays

  3. Thank you. :) I am VERY glad you rewrote this piece of code and made something wonderfull out of it. Good work!!!

  4. Pingback: Ett lite eksempel på hvorfor fri programvare er en god ting

  5. Excelent blog and comments. Thanks and best regards Private Krankenversicherung

  6. Thanks for fixing this plugin. Going to try it out on my site. WordPress is great.

  7. Good site thank you
    and
    Good proxy list http://forum.whack.ru/

    whackatack

  8. You site is good!!!

    Show my links please.

  9. I esteemed yours blog,
    thanks the author a lot of useful to myself have found..

  10. Pingback: Why use WPMU in K12? at Bionic Teaching

  11. Pingback: International Educational Directory > Why use WPMU in K12?

  12. No changes. I’ve been using v2.1.1 before WPMU 2.7 and after.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting