Archive for the “WPMU Plugins” Category

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

Comments Comments Off

For one or two themes, media=print code is easy enough to add to the header.php, but why do that in MU? Most theme authors pay no attention to an extra stylesheet for printing a theme. This plugin will make printing from WP themes much more enjoyable. Doesn’t make every theme look good, but many print very nicely. Must be a wp_head hook in theme’s header. (Browsers have options for enabling printing of background images).

 

Download

Comments Comments Off

I’ve tinkered with the original a bit, again.

Adds ability for enabled users to move system themes to their file blogs.dir/id/themes/ folder and edit their themes if you allow access to the theme editor. Access Managed via Site Admin.

Practical uses for me: I can edit themes as I am accustomed in my single WP install. I can switch between specialty themes without logging in as a SiteAdmin.

If a particular user wants a unique/rare/premium theme, I can upload it to their blogs.dir/blog_id/themes folder and only they can ever see/edit/activate it.

Warning: enabling the theme editor is a huge risk/responsibility.

This plugin does not magically enable or secure it. You’ll have to consider that yourself.

Install: drop into mu-plugins folder and visit the new SiteAdmin–>Userthemes menu.

July 15/08 Tweaked version looks more like WPMU2.6. “Guessing” the Screenshot-dir is buggy in 2.5 and lower. Minor edits needed to use this in a version less than 2.6.(Any version not defining WP_CONTENT_DIR and WP_CONTENT_URL)

July 30/08 Add SiteOptions to management page:

  • Maximum Userthemes per blog.
  • hide original Themes menu.
  • choose number items per page.

Comments Comments Off