Nov
18
(2008)
Is Flutter a CCK for WordPress?
Filed under: work. Tags: flutter, plugin, wordpress, wpmu. | 5 Comments
Following a thread through some blog posts this morning - I started at The Reverend’s post about Martha’s documentation of her hacking on WPMU, including a description of a WordPress plugin I hadn’t heard of before - Flutter.
Damn. The Rev’s gonna love this.
One of the things I LOVE about Drupal is the fantastic CCK plugin that lets me create compound structured content types without hacking the database or writing code. Things like Events. Profiles. Pretty much anything that can be stored as database records.
Flutter appears to do most of what I use CCK for. It’s a bit of a hack on top of WordPress’s custom fields design, but whatever. I really don’t care how it works under the hood. It works. And it’s really nice. You can create any number of custom content types, groups that can contain any number of fields - and the fields can be simple text strings, long text chunks, images, audio, dates… Very cool.
So far, the only thing I’ve found really missing from what I use in CCK is the idea of linking nodes (or posts or pages - I haven’t seen a way to select a page or post as a field in another - but that’s not fatal - tags and categories can make up for some of that).
I’ll be playing with Flutter over the next few weeks. I think this might go a LONG way to implementing some of the things I’ve been thinking about wrt WordPress as a course blogging and publishing platform - WITHOUT HAVING TO WRITE CODE.
I love that. Thanks to Martha and Jim for the heads up on Flutter!
Update: doh. Looks like Flutter does some unpleasant things to the main Write Post interface as well - it was wrapping this post to a set width, making it look ickyier than usual. hrm…
yeah. definitely not quite ready for prime time. but still, something worth keeping a close eye on. this could really make some interesting things possible with wordpress…
Nov
13
(2008)
UCalgaryBlogs.ca Redesign
Filed under: work. Tags: carrington, design, ucalgary, ucalgaryblogs.ca, wordpress, wpmu. | 2 Comments
I’ve been meaning to redesign the main site at UCalgaryBlogs.ca for awhile now - the Edublogs Clean theme isn’t intended to be dropped in as a stock theme, but as a starting point for hacking something tailor-made. The Edu-Clean theme is available as part of the fantastic Premium WPMUDev subscription - and it certainly helped me get UCalgaryBlogs.ca off the ground quickly.
Edu-Clean has bugged me because it hijacks the front page by using home.php, rather than using a page template to render the front page. The annoying part of this technique is that it makes it difficult to list blog posts within that site - so news updates posted on the main blog only show up on the “latest posts” widget, and then disappear from sight when they roll off the bottom of the widget.
And, the Edu-Clean theme, while looking fantastic and being very well designed and polished, is really just the Edublogs theme. So, my straight reuse of the graphics and styles was a bit confusing (I had a couple people mention “oh, that’s edublogs. I know that.” - um. no. it’s not, but it’s using the same theme… confusing…)
So, today I decided to sit down and hack the best parts of Edu-Clean out, and graft them into a copy of the sweet and flexible Carrington theme.
I’ll post a description of what I did, why, and where, but for now it’s basically working. It’s still very much a work in progress (I’m thinking it’s a little busy, but I like the focus on community, content and function rather than marketing). The other nice thing that the use of page templates allows is the WordPress front page setting - I can set the front page to be rendered by a static template, and set the “real” blog to be displayed at another page on the blog - Site News, for example. Much better, IMO.
Here’s the previous design, powered by the elegant Edu-Clean theme:
And the redesign, based on Carrington:
I’m certainly no designer, but I like that the featured content is right up front, rather than marketing info about the service. It’s also much easier to spot the login info (if not logged in) and stuff you can do (list of your blogs, etc…) without having to scroll down.
I’ll be tweaking it, but I think it’s a keeper.
Sep
8
(2008)
Batch adding users to a WordPress site
Filed under: work. Tags: howto, ucalgaryblogs.ca, wordpress, wpmu. | 4 Comments
I’m working with a faculty member who is using a WordPress with his students this semester as a place for them to publish and reflect as a group. To make things easier for everyone involved, it’s a good idea to batch create user accounts for the students so they don’t have to go through that process (it’s easy, but every step avoided means people are more comfortable and less aggravated with a service).
Do support that batch creation of users, I installed the “Import Users Plugin” which, surprisingly, provides a way to import users into a site. All you need to provide is a username and email address for each student and it will create the account, generate a password, assign the specified user Role, and send an email to the student so they can login. It doesn’t create blogs for each student, but for our current use-case, it’s ideal - adding users to a single blog in a WordPress Multiuser service.
If you need to batch create a bunch of users, first enable the “Dagon Design Import Users” plugin on your blog, then follow these instructions:
The list of users could be pulled from Blackboard or Peoplesoft, but needs to be reformatted into
username|email address
structure so the plugin can make use of it.
Sep
2
(2008)
upgraded ucalgaryblogs.ca to wpmu 2.6.1
Filed under: work. Tags: ucalgaryblogs.ca, wordpress, wpmu. | 1 Comment
Donncha pushed the WPMU 2.6.1 update live today, and it’s a required upgrade for security reasons. I just wanted to post that I’ve upgraded ucalgaryblogs.ca to WPMU 2.6.1 and everything appears fine. It took all of 2 minutes to do, too.
Here’s my process:
- back stuff up.
- login to the server via ssh
- download WPMU 2.6.1 into ~/temp, and unzip it.
cd ~/temp wget http://mu.wordpress.org/latest.zip unzip latest.zip - delete the wp-content directory in the freshly downloaded copy of WPMU 2.6.1 - I do this so I don’t accidentally overwrite any customized themes, or nuke anything in mu-plugins or plugins…
rm -R wordpress-mu-2.6.1/wp-content - copy the fresh copy of WPMU over top of the existing one in the web directory
cp -R wordpress-mu-2.6.1/* ~/webdata/ucalgaryblogs.ca/ - run the WPMU upgrade site script to run any necessary updates (I don’t think there were any database updates, but it’s probably a good idea to run it anyway). This will automatically run the script on each blog installed on that copy of WPMU.
- done. test some blogs to make sure stuff is working fine.
Aug
18
(2008)
WPMU Tweakage for ucalgaryblogs.ca - Part 1
Filed under: general. Tags: ucalgaryblogs.ca, wordpress, wpmu. | 1 Comment
I said I’d share what I’ve done in setting up ucalgaryblogs.ca, and instead of waiting for The Mother of All Blog Posts, I’m going to break it up into a few parts. In Part 1, I’ll talk about some of the mu-plugins I added. Some are really cool, some are just shiny…
Basically, start with a fresh copy of WordPress Multiuser. I’m running 2.6 on ucalgaryblogs.ca. Then, add the following bits into the wp-content/mu-plugins directory.
List-All
A great plugin that provides an extra tag to embed on pages to list all blogs in a WPMU installation. Good for a blog service directory..
MU-Admin-Bar
Adds a bar to the top of every page of every blog, similar to WordPress.com, to make it easy to manage a site and log into the service.
WordPress MU Sitewide Tags Pages
Donncha’s awesome plugin to essentially aggregate every blog into a single überblog so archives and tag clouds can be shared. At first, I thought this was a silly way to do it - Drupal could have easily just displayed tag clouds and archives with no pre-aggregation, but it works, and it works very well.
Sitewide Feed
Generates combined feeds for all posts, comments, and pages posted to the WPMU service. Makes it easy to keep up to date on all activity. I’m guessing/hoping this will become essentially useless once the service takes off - I can’t imagine following hundreds of blogs/comments once they become active…
I’ve got a few more miscellaneous mu-plugins installed, but I may be yanking them as they’re really not critical and I want to keep the amount of loaded code down…
Next up: Part 2 - the “main” theme (including home page, sidebar, archives, tag cloud, etc…)
Aug
18
(2008)
Pimping the WPMU for ucalgaryblogs.ca
Filed under: work. Tags: blogs, ucalgaryblogs.ca, wordpress, wpmu. | 7 Comments
I’ve been slowly tweaking the WPMU install that drives ucalgaryblogs.ca - it’s not quite ready for prime time, but it’s darned close.
It’s now got:
- multiple blogs per user, and multiple users per blog
- subdomain hosting for each blog (i.e., myblog.ucalgaryblogs.ca)
- domain mapping - want to use your own custom domain? want myblog.com to point to the blog you’ve got at myblog.ucalgaryblogs.ca? there’s a setting for that, and then you just have to tell me what domain you want me to tell the webserver to respond to.
- multilingual admin interface. English. French. Spanish. Chinese. Klingon. Well, I still haven’t found the Klingon.po file for WordPress, but once I do… *shakesfist*
- over 100 themes, most of which are customizable. Want a photoblog? Got it covered. Newsletter? Done. Research project? Sure thing.
- 500MB of upload space quota per user. This could be increased if needed.
- Sitewide tag cloud and archives - want to find out who else is writing about mitochondrial RNA? Just hit the tag…
- Blog directory listing all blogs in the system (currently, some test blogs, and the UC Dinos Football Blog! WOOHOO!)
- A handy-dandy blog manager bar at the top of all pages - if you’re logged in, it gives you easy access to anything you want to do. If you’re not logged in, it gives you an easy place to login from, from any page on the ucalgaryblogs.ca service.
- Lots of other great WordPress goodies, like podcast serving, editing from your iPhone or iPod Touch, great visual editor for posts (with spel chekker, too!) and collaborative blogs with multiple authors.
But, there are still a few things on my todo list before I consider it fully ready for prime time:
- Documentation. It helps if there’s some M to RTF. I’ll be linking and borrowing heavily from the great stuff already out there…
- A UCalgary theme (or themes) for sites that need to look all offishul ‘n junk.
- better antispam - I can’t use Akismet because I have a budget of $0.00, and SpamKarma2 is EOL. Maybe Mollom? It doesn’t play well with WPMU yet…
- hmm… actually, that’s pretty much it. once it goes live, it can be tweaked on the fly…
Once it’s been live for a bit, I’ll look at stuff like BuddyPress, integration with Flickr, integration with MediaWiki, and a bunch of other stuff. So far, it’s been fun setting up the service. Now to start rolling this sucker out…
Nov
17
(2007)
WPMU Blogs Directory?
Filed under: fun. Tags: blogs, lazyweb, wordpress, wpmu. | 13 Comments
I’ve been trying to figure out how to build an effective directory of blogs hosted by a WPMU service. There’s the list-all mu-plugin widget, and it has a handy dandy list_all_wpmu_blogs() method. I’ve created a page template for my theme, and added this code to dump the list of public blogs:
<!-- directory stuff goes here -->
<ul>
<?php list_all_wpmu_blogs("","","<li>","</li>","updated"); ?>
</ul>
<!-- end of directory stuff -->
Create a new Page, call it something creative like “Directory” and select the template that contains the above code. That works, technically, but doesn’t produce the most effective directory once the service grows to more than a dozen or so blogs.

But, once a service gets a bunch of blogs, say a hundred or so, a directory needs to be a bit more powerful. Sorting. Filtering. Searching. Categorizing. Letting people find blogs by activity (number of posts, number of comments, number of recent posts…) At the bare minimum, it’d be something like the great directories used by UMass and UTA. I haven’t been able to find out any detailed technical information about how either of those directories are built, but they appear to be static HTML files, probably generated by a separate script triggered by a cron job. They appear to run external to WordPress, but I could be wrong on that.
It should be relatively straightforward to build a WPMU blogs directory function, with the wp_blogs table containing basic metadata about each blog, and info about the owner and last post just a join away. Anyone have any cool code to share? Any ideas of how best to implement this?



