Archive for the ‘WordPress’ Category

Stitchtopia

I’m undertaking a very ambitious project. I want to create a cross-stitch community site where it’s a combination of portfolio space/social networking. There’s Ravelry for knitters and crocheters but nothing really for cross-stitchers.

Cross-stitching isn’t as popular, but if the site does get popular server space will be an issue so I need to have advertising on it, most likely.

I’m going to try using WordPress (multi-site) along with BuddyPress to create it.

It’ll be an interesting project and I’m looking forward to working on it. Once I actually get something created (deadline unknown), I’m hoping some of my friends who read this will be willing to help me test it out, even if you don’t cross-stitch.

Updated To-Do List Plugin

I’ve updated the abandoned to-do list plugin that I had previously fixed.

You can find the new version at WordPress To-Do Plugin.

New WordPress Site

I spent last weekend converting cleverness.org into a site for WordPress Resources. So far I have a few articles and my WordPress Base Theme.

I use WordPress for almost all of my own sites and for most of the client sites at work. I ordered a book from amazon on WordPress Plugin Development and am anxiously awaiting its arrival.

WordPress To-Do List Plugin

I didn’t write this plugin, only modified it to display correctly in WordPress 2.7+. I use it on most of my own WordPress-powered sites to keep track of things I want to do/need to fix on the site. Since the original is no longer available, I decided to post it here.

The plugin was originally from Abstract Dimensions (site no longer available) and I used the patch to display the list in the dashboard by WordPress by Example. They also have a modifed to-do list plugin that uses roles and has functions to display in the sidebar. I haven’t tried it since I don’t need those functions, but I’m assuming it also has some display issues in 2.7+.

Place the file admin_todo.php in the plugins directory (not in a subdirectory, as that may cause problems). It will display a widget on the dashboard and as a menu item under Tools.

** Updated 01/03/2010 with a few minor cosmetic changes **

** Updated 01/24/2010: I have moved the plugin to a new location and made some more changes **

Visit the new page to download the To-Do List Plugin

denying reality

I decided to use WordPress instead of Chyrp to run my online journal. The journal, denying reality, doesn’t have the content added yet. It’s members-only: you have to register and then I have to approve your account.

I used a different color verison of the last layout I had for there. I’m still working on getting it finished, then I have to import all of my old entries (by hand).

I wanted to get a structure for the archives similar to what I had on there before. This wasn’t easy, as the default archives look nothing like that. I found some code to get archives for a specific year, but I also wanted to get it for specific months too so I added a statement to do that (this goes into your functions.php file).

<?php
function getarchives_filter($where, $args) {
	if (isset($args['year'])) {
		$where .= ' AND YEAR(post_date) = ' . intval($args['year']);
	}
	if (isset($args['month'])) {
		$here .= ' AND MONTH(post_date) = ' . intval($args['month']);
	}
	return $where;
}

add_filter('getarchives_where', 'getarchives_filter', 10, 2);
?>

Then you use the template tag like this:

<?php wp_get_archives('type=daily&month='.get_the_time('m').'&year=' . get_the_time('Y')); ?>

My next problem was how to format the archives to look like I wanted them for the monthly archives. The solution was simple, but I didn’t realize it till I read it in the comments section on someone’s blog. To replace core functions, you can just copy that function to functions.php in your theme, change the function name, and call it in your template using it’s new name.