Sitewide Comment Tracking Revisited
Easy method of tracking your comments on community blogs
Useful for tracking your comments left on community blogs with output visible in Dashboard-->Comments-->My Comments ONLY.
Plugin enhancements:
Plugin enhancements:
- 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