Customize the WPMu Dashboard

Here’s a simple hack to make your WordPress Multi-User Dashboard display news and recent posts from within your specific WPMu community. For example, I am going to briefly illustrate how to display the “Latest News” for our community (traditionally where the WordPress development news appears) as well as the 20 most recent posts from around UMW Blogs (traditionally where posts from Planet WordPress are displayed).

Below is a screen shot of what it looks like (click on the image to see a larger version to get a fuller sense of how this looks).

UMW Blogs Dashboard

The idea was sparked by Gardner Campbell during the UMW Blogs forum we had a couple of weeks ago, and I think it is an awesome way to connect each individual with the larger UMW Blogs community right where they live—their blog dashboard.

It is a really simple hack that only requires changing a few lines of code in both the index.php and index-extra.php files within the wp-admin folder.

Here’s how:

First the index.php file found in the wp-admin folder:

Find the following line in this file:

<h2><?php _e('Welcome to WordPress'); ?></h2>

And change it to the title of your WPMu community. Ours looks like this:

<h2><?php _e('Welcome to UMW Blogs'); ?></h2>

Next, find the following line of code:

Image of Need help WP

And link it to your own documentation if you have some handy. Ours looks like this:

Image Need Help UMW Code

That’s it for the index.php file in wp-admin. Now, we need to modify a few lines on the index-extra.php file in the same directory and that’s all there is to it!

Find the following lines of code:

case 'devnews' :
$rss = @fetch_rss(apply_filters( ‘dashboard_primary_feed’, ‘http://wordpress.org/development/feed/’ ));
if ( isset($rss->items) && 0 != count($rss->items) ) {
?>
<h3><?php echo apply_filters( ‘dashboard_primary_title’, __(’WordPress Development Blog’) ); ?></h3>

And change the ‘devnews’ primary feed to a feed URL that will deliver news specific to your community. Then change the title from ‘WordPress Development Blog’ to something more appropriate. Ours looks like this:

case 'devnews' :
$rss = @fetch_rss(apply_filters( ‘dashboard_primary_feed’, ‘http://umwblogs.org/feed/’ ));
if ( isset($rss->items) && 0 != count($rss->items) ) {
?>
<h3><?php echo apply_filters( ‘dashboard_primary_title’, __(’UMW Blogs News’) ); ?></h3>

Next, do the same exact thing for the Planet News feed, just use the Sitewide Feed for WPMu or some other feed you might have that will feature a range of content from a number of blogs in the community.

case 'planetnews' :
$rss = @fetch_rss(apply_filters( ‘dashboard_secondary_feed’, ‘http://planet.wordpress.org/feed/’ ));
if ( isset($rss->items) && 0 != count($rss->items) ) {
?>
<h3><?php echo apply_filters( ‘dashboard_secondary_title’, __(’Other WordPress News’) ); ?></h3>

Ours looks like this:
case 'planetnews' :
$rss = @fetch_rss(apply_filters( ‘dashboard_secondary_feed’, ‘http://umwblogs.org/wpmu-feed/’ ));
if ( isset($rss->items) && 0 != count($rss->items) ) {
?>
<h3><?php echo apply_filters( ‘dashboard_secondary_title’, __(’Posts from around UMW Blogs’) ); ?></h3>
<ul>

Finally, find the following line of code (which is the “More” link after 20 most recent posts in the blog community):

Image of Read More Code Hack

And change the URL to something that will bring the readers to more recent post. In our case we have a page that list excerpts from the fifty most recent posts, and that would be where we would want to send folks who want to see more. Below is the UMW Blogs code:

Image of read more code hack 2

That’s it, now each and every user in your community has immediate access to a range of information and other people’s posts from right within their dashboard. Bring the content to them, don’t make them search too hard for it!

Related posts

4 Responses to “Customize the WPMu Dashboard”


  1. 1 jimgroom Nov 10th, 2007 at 5:54 pm

    After finishing this tutorial I was sure there is a plugin I am overlooking. So I searched, and to my amazement there isn’t. I have never even looked at how one would make a plugin, but I am pretty certain this would be a cinch. perhaps I’ll try and finally give something tangible back to the WPMu community :)

  2. 2 Mario Nov 10th, 2007 at 11:24 pm

    Jim;

    Thanks a lot for this useful hack. I would be implementing it in RUM Edublogs.

  3. 3 jimgroom Nov 11th, 2007 at 4:03 am

    You know all too well by now that it’s my pleasure Mario :)

  1. 1 » Started customizing the dashboard within … devlog Pingback on May 14th, 2008 at 8:08 pm

Leave a Reply




EDUPUNK: DIY EdTech

about

bavatuesdays.com is an ongoing conversation about media of all kinds ...

Testimonials:

Generations from now, they won't call it the Internet anymore. They'll just say, "I logged on to the Jim Groom this morning.
-Joe McMahon
Everything Jim Groom touches is gold. He's like King Midas, but with the Internet.
-Serena Epstein

I am Jim Groom

Find out more about me here.

browse the bavarchive

I'm a twit

random gems from bavarchive

YouTube Copyright notice Flickr Photo Gallery Selector 1 The Wanderers Mainetence Issue Scream Blacula Scream (1973) Rod Serling: The Twlight Zone and Beyond
View more photos >

My netflix


Nothing SacredMr. KleinPanic in Year Zero / The Last Man on Earth

Polls

What are your five favorite film adaptations of a Stephen King novel or story?

  • The Shining (1980) by Stanley Kubrick (23%, 34 Votes)
  • Shawshank Redemption (1994) by Frank Darabont (21%, 32 Votes)
  • Stand by Me (1986) by Rob Reiner (18%, 27 Votes)
  • Misery (1990) by Rob Reiner (17%, 25 Votes)
  • The Green Mile (1999) by Frank Darabont (13%, 19 Votes)
  • Carrie (1976) by Brian DePalma (11%, 17 Votes)
  • The Dead Zone (1983) by David Cronenberg (8%, 12 Votes)
  • Creepshow (1982) by George Romero (5%, 7 Votes)
  • Pet Cemetary (1989) by Mary Lambert (5%, 7 Votes)
  • The Mist (2007) by Frank Darabont (4%, 6 Votes)
  • Firestarter (1984) by Mark L. Lester (3%, 4 Votes)
  • The Running Man (1987) by Paul Michael Glaser (3%, 4 Votes)
  • Cujo (1983) by Lewis Teague (2%, 3 Votes)
  • Christine (1983) by John Carpenter (2%, 3 Votes)
  • Children of the Corn (1984) Fritz Kiersch (2%, 3 Votes)
  • Cat's Eye (1985) by Lewis Teague (1%, 2 Votes)
  • Dreamcatcher (2003) by Lawrence Kasdan (1%, 2 Votes)
  • Maximum Overdrive (1986) by Stephen King (1%, 2 Votes)
  • The Lawnmower Man (1992) by Brett Leonard (I imagine Stephen King would suggest this should not be on the list) (1%, 2 Votes)
  • Dolores Claibourne (1995) by Taylor Hackford (1%, 2 Votes)
  • The Dark Half (1993) by George Romero (1%, 2 Votes)
  • Apt Pupil (1998) by Bryan Singer (1%, 1 Votes)
  • Thinner (1996) by Tom Holland (1%, 1 Votes)
  • Needful Things (1993) by Fraser Clarke Heston (1%, 1 Votes)
  • Silver Bullet (1985) by Daniel Attias (1%, 1 Votes)
  • Sleepwalkers (1992) by Mick Garris (1%, 1 Votes)
  • The Mangler (1995) by Tobe Hooper (0%, 0 Votes)
  • Sometime's They Come Back (1991) by Tom McLoughlin (0%, 0 Votes)
  • Creepshow 2 (1987) by Michael Gornick (0%, 0 Votes)
  • Graveyard Shift (1990) by Ralph S. Singleton (0%, 0 Votes)

Total Voters: 150

Loading ... Loading ...