wordpress
Per-blog registrations for Wordpress-mu
Nathan Kinkade, July 1st, 2008
About a year ago when I started at Creative Commons, I was asked to write a Wordpress-mu plugin that would allow users to register with specific sub-blogs and not just the root/default blog. So I wrote a plugin that allowed that to happen and also fixed a few inconsistencies that I noticed in the code at that time.
Recently I reviewed my old posts at the Wordpress-mu forums and realized that there was some activity on those posts that I hadn’t noticed. It became clear that the plugin needed some modification and also that it only supported per-blog registrations for Wordpress-mu installs based on subdomains, but didn’t work for installs based on subdirectories.
This past weekend I took another look at the plugin and found that most of the inconsistencies I had been seeing, and for which I had tried to code around in the plugin, were gone in v1.5.1, and so I was able to remove the vast majority of the plugin’s code.
The current plugin seems to work for both subdomain-based and subdirectory-based installs, at least on a fresh install of Wordpress-mu that I was working with.
Update [Mon Aug 17 14:02:16 EDT 2009]: http://code.creativecommons.org/issues/issue436.
12 Comments »WordPress MU v. Lyceum
Nathan Yergler, April 12th, 2007
We’re preparing to launch “hosted blogging”:http://wiki.creativecommons.org/CCi_Blogs service for our “international affiliates”:http://creativecommons.org/worldwide, and the TechBlog is actually the first blog to run on the new “WordPress MU”:http://mu.wordpress.org installation. Sort of “eating our own dog food”:http://en.wikipedia.org/wiki/Eating_one%27s_own_dog_food, I suppose. Much of the pre-launch work (beyond the obvious theme tweaking, etc) was in evaluating which WordPress-based multi-user blog product was more appropriate: “Lyceum”:http://en.wikipedia.org/wiki/Lyceum_%28software%29 or “WordPress MU”:http://en.wikipedia.org/wiki/WordPress_MU.
4 Comments »wpLicense 0.7.6
Nathan Yergler, April 11th, 2007
Today I released wpLicense 0.7.6 (download see update below). It’s a minor bug fix, but one worth noting. Thanks to Tiago and Cristóbal for both reporting the bug.
The bug was simple: the documentation says that the licenseUri function returns the URI of the selected license. And that’s what the internal wpLicense code relied on. However, the implementation actually echo‘d the URI, introducing a race condition: if things were timed just right, the problem wasn’t apparent. But too often they weren’t, and then it was.
There are some outstanding issues with wpLicense, particularly with rendering the selection interface under Internet Explorer. That’s just one of the tasks new web engineer will be tackling when he or she comes on board. Which reminds me, we’re still accepting resumes.
UPDATE: Yeah, so 0.7.6 only had half the fix; well, the entire fix, but I was braindead with the default parameter value. So I give you 0.7.6.1. 2 Comments »
