I wanted to update my Archives page to display the total tag count, but didn’t see a built-in method in Ultimate Tag Warrior to do that. So, here’s the recipe I followed – mimicking how the other methods are set up, in case the changes get rolled into the main distro…
In ultimate-tag-warrior.php
:
function UTW_ShowUniqueTagCount() {
global $utw;
echo $utw->GetUniqueTagCount();
}
In ultimate-tag-warrior-core.php
:
function GetUniqueTagCount() {
global $wpdb, $tabletags;
$sql = "select count(*) from $tabletags";
return $wpdb->get_var($sql);
}
And, in K2‘s page-archives.php
(or anywhere you want the count to show up):
tags
I’ve also hacked my copy of wp-db-backup.php
to automatically back up the UTW tables, thusly, starting at line 407:
$wp_backup_default_tables = array ($table_prefix . categories,
$table_prefix . comments,
$table_prefix . linkcategories,
$table_prefix . links,
$table_prefix . options,
$table_prefix . post2cat,
$table_prefix . postmeta,
$table_prefix . posts,
$table_prefix . users,
$table_prefix . tags,
$table_prefix . post2tag,
$table_prefix . tag_synonyms);
I wanted to update my Archives page to display the total tag count, but didn’t see a built-in method in Ultimate Tag Warrior to do that. So, here’s the recipe I followed – mimicking how the other methods are set up, in case the changes get rolled into the main distro…
In ultimate-tag-warrior.php
:
function UTW_ShowUniqueTagCount() {
global $utw;
echo $utw->GetUniqueTagCount();
}
In ultimate-tag-warrior-core.php
:
function GetUniqueTagCount() {
global $wpdb, $tabletags;
$sql = "select count(*) from $tabletags";
return $wpdb->get_var($sql);
}
And, in K2‘s page-archives.php
(or anywhere you want the count to show up):
tags
I’ve also hacked my copy of wp-db-backup.php
to automatically back up the UTW tables, thusly, starting at line 407:
$wp_backup_default_tables = array ($table_prefix . categories,
$table_prefix . comments,
$table_prefix . linkcategories,
$table_prefix . links,
$table_prefix . options,
$table_prefix . post2cat,
$table_prefix . postmeta,
$table_prefix . posts,
$table_prefix . users,
$table_prefix . tags,
$table_prefix . post2tag,
$table_prefix . tag_synonyms);
I get occasional emails asking me about what plugins I use to run this blog. I don’t mind answering them *cough*Alec*ahem* but having an up-to-date colophon might be helpful, too.
I just copied the table from the WordPress plugin manager, trimmed out the “Action” column, and pasted it into the colophon for this blog. I’ve noticed that some plugins provide incorrect or incomplete URLs to the plugin description/download page. I’ll find/fix the links when I get a chance. And no, I’m not turning the colophon into a wiki 😉
I get occasional emails asking me about what plugins I use to run this blog. I don’t mind answering them *cough*Alec*ahem* but having an up-to-date colophon might be helpful, too.
I just copied the table from the WordPress plugin manager, trimmed out the “Action” column, and pasted it into the colophon for this blog. I’ve noticed that some plugins provide incorrect or incomplete URLs to the plugin description/download page. I’ll find/fix the links when I get a chance. And no, I’m not turning the colophon into a wiki 😉
I just came across a reference to Joe Tan’s Flickr Post Bar plugin for WordPress. It adds a handy-dandy “add image from Flickr” bar to the WordPress authoring form. You can set it to add any of the standard Flickr sizes. I’ve set it to use “medium” – the 500px wide image. If it worked, there should be a fun picture of Evan, Teddy, and Daddy playing human totem pole…

It’s not quite as cool as the WordPress 1.6 version, but it’s here now, and seems to work well.
I just came across a reference to Joe Tan’s Flickr Post Bar plugin for WordPress. It adds a handy-dandy “add image from Flickr” bar to the WordPress authoring form. You can set it to add any of the standard Flickr sizes. I’ve set it to use “medium” – the 500px wide image. If it worked, there should be a fun picture of Evan, Teddy, and Daddy playing human totem pole…

It’s not quite as cool as the WordPress 1.6 version, but it’s here now, and seems to work well.
I switched my antispam tool from Spam Karma 2 to Akismet last week – wanting to play with Matt’s new toy, and see how a distributed spam blocker would work out.
Generally, it was pretty good. But, I had to moderate several comments. I’ve almost never had to do that under SK2 – it just works, totally, and invisibly.
But, I just checked my WordPress dashboard, and saw an interesting item: Owen Winkler: Spam Karma 2 Akismet Plugin BETA. Hmmm… Akismet as a plugin for SK2? Cool!
Turns out, SK2 will do its usual magic, and if it’s still unsure about a comment, it will then feed it to Akismet for clarification. The best of both worlds! Very very cool.
I switched my antispam tool from Spam Karma 2 to Akismet last week – wanting to play with Matt’s new toy, and see how a distributed spam blocker would work out.
Generally, it was pretty good. But, I had to moderate several comments. I’ve almost never had to do that under SK2 – it just works, totally, and invisibly.
But, I just checked my WordPress dashboard, and saw an interesting item: Owen Winkler: Spam Karma 2 Akismet Plugin BETA. Hmmm… Akismet as a plugin for SK2? Cool!
Turns out, SK2 will do its usual magic, and if it’s still unsure about a comment, it will then feed it to Akismet for clarification. The best of both worlds! Very very cool.
Thanks to a tip from Donncha O Caoimh, I was pointed to the new FAlbum plugin for WordPress. It’s a handy Flickr-integration plugin that uses the new Flickr API – even works with my merged Yahoo.com account!
I’ve installed the plugin, and added it to the tabs again. It’s got some minor display funkery, where it looks like it’s not playing nice with K2 (or vice versa), but the plugin itself works great! It would rock if K2 added support for this one…
Anyway, it looks like FAlbum rocks quite nicely. There’s even a mature-looking admin screen in the WordPress admin side, as well! Thanks SO much to Donncha for the nice plugin!
Update: Excellent! Thanks to a tip on the K2 support forum, I was pointed to this page describing how to integrate FAlbum with K2. I’ll be playing with that over the weekend…
Update 2: Fine. I didn’t wait until the weekend to play with this. It took a whopping 5 minutes to get the bits hacked into place. Looks MUCH better now.
Thanks to a tip from Donncha O Caoimh, I was pointed to the new FAlbum plugin for WordPress. It’s a handy Flickr-integration plugin that uses the new Flickr API – even works with my merged Yahoo.com account!
I’ve installed the plugin, and added it to the tabs again. It’s got some minor display funkery, where it looks like it’s not playing nice with K2 (or vice versa), but the plugin itself works great! It would rock if K2 added support for this one…
Anyway, it looks like FAlbum rocks quite nicely. There’s even a mature-looking admin screen in the WordPress admin side, as well! Thanks SO much to Donncha for the nice plugin!
Update: Excellent! Thanks to a tip on the K2 support forum, I was pointed to this page describing how to integrate FAlbum with K2. I’ll be playing with that over the weekend…
Update 2: Fine. I didn’t wait until the weekend to play with this. It took a whopping 5 minutes to get the bits hacked into place. Looks MUCH better now.
I decided to give the Ultimate Tag Warrior plugin for WordPress a shot. It’s going to be supported natively in the K2 theme that I’m using, and UTW comes highly rated. I was a bit nervous about migrating from the Cat2Tag plugin I’m using now, because I wasn’t sure how it would handle ~900 posts that were already categorized. I didn’t want to have to re-tag all of those posts. I picked Cat2Tag because it used the Categories themselves to store tags – so if I decided to switch back to Categories, it was just a matter of turning off a plugin, and doing some housekeeping on the now-messy set of categories. I’ll assume there will be a magical “convert tags back to categories” function sometime in the future…
Turns out there is a handy dandy “convert categories to tags” function, making the migration to UTW trivial. Now, I’m just nervous about what happens when I want to migrate away from it. For now, I’ve got the “Automatically convert categories to tags” flag set, so when I add a new post, it takes the categories I enter (via Cat2Tag), and mirrors them in Tags. Duplication for now, but until I’m comfortable with UTW, it’s the only way to go 🙂
It does provide a nice heatmap of tags, as displayed in the “archives” section. Doesn’t provide the heatmap of dates, though, so I’ll still be using WP-Heatmap for that.
The compelling reason for looking at UTW is the ability to view boolean sets of tags. I could look at /tag/projects+rants to see all posts that were tagged both “projects” and “rants” – something that wasn’t readily possible using straight categories-as-tags.
Just thought of a cool feature to add to UTW – “copy tags from my del.icio.us account” – let me tag my blog posts with the same vocabulary I use to tag the rest of the world.
I did have some fun getting the clean URLs working with UTW, though. The automagic .htaccess updater didn’t want to work, so I had to manually add this to my .htaccess:
# Ultimate Tag Warrior
RewriteRule ^tag/(.+)$ /index.php?tag=$1 [QSA,L]
Update: Just tweaked the setup a bit… Posts will now be put into one of only 3 categories: “entry”, “link” or “aside”. I’ve removed category display from post listings, and replaced with the tag list. I’ll try this for awhile, and decide if I want to stick with it before the number of uncategorized entries gets too big.
Update 2: Looks like there’s a bug in UTW – if you add only one tag to a post, it generates invalid XHTML (no
after the localtags links). Simple fix for now – just add more than one tag per post 🙂 Less simple fix – modify line 483 of ultimate-tag-warrior-actions.php to be able to deal with arrays containing just one item. I don’t know how to do that at the moment, so will be adding multiple tags.
I decided to give the Ultimate Tag Warrior plugin for WordPress a shot. It’s going to be supported natively in the K2 theme that I’m using, and UTW comes highly rated. I was a bit nervous about migrating from the Cat2Tag plugin I’m using now, because I wasn’t sure how it would handle ~900 posts that were already categorized. I didn’t want to have to re-tag all of those posts. I picked Cat2Tag because it used the Categories themselves to store tags – so if I decided to switch back to Categories, it was just a matter of turning off a plugin, and doing some housekeeping on the now-messy set of categories. I’ll assume there will be a magical “convert tags back to categories” function sometime in the future…
Turns out there is a handy dandy “convert categories to tags” function, making the migration to UTW trivial. Now, I’m just nervous about what happens when I want to migrate away from it. For now, I’ve got the “Automatically convert categories to tags” flag set, so when I add a new post, it takes the categories I enter (via Cat2Tag), and mirrors them in Tags. Duplication for now, but until I’m comfortable with UTW, it’s the only way to go 🙂
It does provide a nice heatmap of tags, as displayed in the “archives” section. Doesn’t provide the heatmap of dates, though, so I’ll still be using WP-Heatmap for that.
The compelling reason for looking at UTW is the ability to view boolean sets of tags. I could look at /tag/projects+rants to see all posts that were tagged both “projects” and “rants” – something that wasn’t readily possible using straight categories-as-tags.
Just thought of a cool feature to add to UTW – “copy tags from my del.icio.us account” – let me tag my blog posts with the same vocabulary I use to tag the rest of the world.
I did have some fun getting the clean URLs working with UTW, though. The automagic .htaccess updater didn’t want to work, so I had to manually add this to my .htaccess:
# Ultimate Tag Warrior
RewriteRule ^tag/(.+)$ /index.php?tag=$1 [QSA,L]
Update: Just tweaked the setup a bit… Posts will now be put into one of only 3 categories: “entry”, “link” or “aside”. I’ve removed category display from post listings, and replaced with the tag list. I’ll try this for awhile, and decide if I want to stick with it before the number of uncategorized entries gets too big.
Update 2: Looks like there’s a bug in UTW – if you add only one tag to a post, it generates invalid XHTML (no
after the localtags links). Simple fix for now – just add more than one tag per post 🙂 Less simple fix – modify line 483 of ultimate-tag-warrior-actions.php to be able to deal with arrays containing just one item. I don’t know how to do that at the moment, so will be adding multiple tags.
I just switched the default theme of this blog to the latest K2 theme by Michael Heilemann at binarybonsai.com. Michael created the Kubrick theme that I was using before (and which was also adopted as the default for all new WordPress installations).
K2 is a really nice design, with some great thought to functional layout. It supports a boatload of useful plugins, and displays their magic if they are installed.
Check out the cool ajax-powered search dealie – just start typing a query, and out pops a list of matches. Pretty cool. Comment submission also uses some ajax juju, but it’s a bit funky at the moment, and isn’t quite fully baked yet. Still, quite cool.
So far, I’ve lost my fancy schmancy banner image rotator, but that’s not such a bad thing. I’ll work on adding it back in when I get a chance – I have to recreate the images for the new wider design anyway).
Also, while having another less-than-fully-productive day staying at home with The Boy™ while Janice is sick in bed, I was able to download (but not yet compile successfully) the Ming library for creating .swf files. King suggested this during the Pachyderm developer’s conference call (which I missed because I am out today), and it looks like a much nicer solution than Josh and I were thinking of – Ming would provide a nice happy medium, where we just alter how we generate our .swf-wrapped images, and the dozen flash template files don’t need to be any the wiser. The other option is JSwiff, but it’s a much lower-level library, meaning we’d have to be messing with the icky details of the flash file format. With Ming, we just create objects, and tell it to do stuff. Much nicer 🙂
I just switched the default theme of this blog to the latest K2 theme by Michael Heilemann at binarybonsai.com. Michael created the Kubrick theme that I was using before (and which was also adopted as the default for all new WordPress installations).
K2 is a really nice design, with some great thought to functional layout. It supports a boatload of useful plugins, and displays their magic if they are installed.
Check out the cool ajax-powered search dealie – just start typing a query, and out pops a list of matches. Pretty cool. Comment submission also uses some ajax juju, but it’s a bit funky at the moment, and isn’t quite fully baked yet. Still, quite cool.
So far, I’ve lost my fancy schmancy banner image rotator, but that’s not such a bad thing. I’ll work on adding it back in when I get a chance – I have to recreate the images for the new wider design anyway).
Also, while having another less-than-fully-productive day staying at home with The Boy™ while Janice is sick in bed, I was able to download (but not yet compile successfully) the Ming library for creating .swf files. King suggested this during the Pachyderm developer’s conference call (which I missed because I am out today), and it looks like a much nicer solution than Josh and I were thinking of – Ming would provide a nice happy medium, where we just alter how we generate our .swf-wrapped images, and the dozen flash template files don’t need to be any the wiser. The other option is JSwiff, but it’s a much lower-level library, meaning we’d have to be messing with the icky details of the flash file format. With Ming, we just create objects, and tell it to do stuff. Much nicer 🙂
I’d been using a “tag” plugin that was kind of a hack – it used its own table, and didn’t integrate with Categories, so it was double duty sometimes to properly tag stuff and categorize it.
I just stumbled across the Cat2Tag plugin, which provides a fully integrated folksonomy/tagging system that uses categories to store the tags. It creates new categories if necessary, and provides a tag cloud for tag entry – now it works almost exactly like del.icio.us does.
On top of that, I also found the WordPress Heat Map plugin, which provides a tag cloud for a set of categories in a WordPress blog. I’m using it in my “Archives” page now.
Very cool combination of plugins, making a much more dynamic and organic tagging system for my blog.
I’d been using a “tag” plugin that was kind of a hack – it used its own table, and didn’t integrate with Categories, so it was double duty sometimes to properly tag stuff and categorize it.
I just stumbled across the Cat2Tag plugin, which provides a fully integrated folksonomy/tagging system that uses categories to store the tags. It creates new categories if necessary, and provides a tag cloud for tag entry – now it works almost exactly like del.icio.us does.
On top of that, I also found the WordPress Heat Map plugin, which provides a tag cloud for a set of categories in a WordPress blog. I’m using it in my “Archives” page now.
Very cool combination of plugins, making a much more dynamic and organic tagging system for my blog.