Ultimate Tag Warrior 2.9.1

Bugfixes!
– Spaces are going to be replaced with hyphens by default instead of underscores. Existing tags aren’t automatically changed; but if you want to, there’s some SQL here that will do it for you.
– Prefixes and suffixes for auto-tags had a dumb bug which I’ve fixed (:

Notfixes!
– In wordpress 2, tag names with apostrophes are problematic. If things are broken, try renaming those tags.
– There’s still work to be done with special characters.
– I’m still not sure about .htaccess/rewriting issues in wordpress 2.

Support Forum | Ultimate Tag Warrior 2.9.1, for WordPress 2.0 | Ultimate Tag Warrior 2.9.1, for WordPress 1.5

Ultimate Tag Warrior 2.9

New uber-version of UTW!

Beware:
– There are new options which might cause wonky behaviour (mostly just automatically included tags appearing) – go to the Options > Tags page and hit save to make ’em vanish.

New Features:
– If there are database permission issues that prevent the auto-updater from running, you won’t see error messages all over the place (but if you do a force-reinstall they will display)
– Related posts are sorted by most tags in common, then most recent first (previously it was just most tags in common order)
– Tag urls are now url-encoded (duh.) – this allows using umlats and other such things (at least in the way I tried (; including ü in your tags works, using magical characters directly is a bit bung still)
– Lists of posts can now include the date of the post (uses the %postdate% formatting placeholder, and the default date format)
– UTW_Show functions have changed a little – the first parameter still takes the name of a predefined format; but if you pass in custom formatting information, it will be added to the predefined format.
– The Options > Tags page has a whole bunch of embedded help. Yay help.
– The automatically included links can now be placed either before or after the content. There’s also the option to add text before and after the tags (handy for Tag: labels, wrapping tags in spans or divs and wrapping html lists in <ul> tags)
– I’ve fixed an odd bug with feeds (it worked for me, but didn’t for a couple of people.. it’s just one of those bugs, I guess)
– [Wordpress 2 only] On the write post screen, the tag entry and tag suggestion boxes have been shuffled into the right-hand column and put into magical boxes for shuffling and hiding and whatnot.
– There’s a new template function, UTW_ShowRSSFeedIcon(). It displays an RSS icon on tag pages for the current tag set (if you’re viewing /tags/tag1 it’s a link to the tag1 feed. On /tags/tag1+tag2 it’s a link to the feed with posts tagged both tag1 and tag2).
– The UTW_AddTagToCurrentPost() has an extra parameter – it allows specifying the minimum user level that you need in order to add tags. It defaults to 3.

Things I haven’t forgotten:
– The ability to exclude tags from displaying in tag clouds and on posts
– The gadabe issue with … in tag links
– Cobbling together a non-includey version
– Displaying tag clouds for a subset of tags (For facetish purposes)

If there are things I have forgotten, let me know (: I get forgetful sometimes..

Support Forum | Ultimate Tag Warrior 2.9, for WordPress 2.0 | Ultimate Tag Warrior 2.9, for WordPress 1.5

Chip, Chip, Chipping Away

Sometimes my mailbox fills up with an unmanagable amount of stuff.

(Usually, I archive mail as I deal with it)

Turns out that I have mail going back as far as August (!)

If you have issues that you’ve either emailled me about, or commented on my blog about; let me know (: I’ve been emailling here and there; and hope to get through it all in the next few days or week or thereabouts, but I still manage to forget about things sometimes.

(In other news, I’ve added a page for themes and other bits and pieces that use UTW. If you have a thing that belongs there, let me know. I’ve got the things that I see in my referrer logs; but there are bound to be other things.)

Ultimate Tag Warrior 2.8.9.spaghetti

(Whoops. I must’ve forgotten to increment the version number last time around.)

There’s an updated version!

– There’s a new predefined format that includes a Technorati icon at the start of the list (as requested). It’s called technoraticommalistwithiconlabel (: (As compared to the technoraticommalistwithlabel, which is the text version)
– There’s also one for invisible tags! It’s waaay down the list (right above the post ones.)
– Tags are no longer automatically included on ‘page’ posts (but if you have wrangled your wordpress so that you can tag ’em, they’ll still display when present)
– I fixed the <? and <?= shortcuts that were causing people grief (something I should have done aaages ago..)
– I’ve made two downloads: one compatible with wordpress up to version 1.6ish; the other 2.0 RC1 and beyondish (Just a difference between the rewrite rules.)
– I’m pretty sure I fixed the display issue with Opera, K2 and single tag posts

Download for WordPress 2.0 RC1ish is here:
http://www.neato.co.nz/plugins/ultimate-tag-warrior-2-8-9-wp-2.zip

Download for up to WordPress 1.5ish/1.6ish is here:
http://www.neato.co.nz/plugins/ultimate-tag-warrior-2-8-9-wp-15.zip

Support forum is here: http://www.neato.co.nz/forum
Tired person is: at the keyboard…

Ultimate Tag Warrior 2.8.9

Mostly, just an update to properly supports URL rewriting stuff in WordPress 2.0 RC1

* Caveat: In retrospect, I’m not sure how well I tested it with pre-2.0 RC1 (I’m pretty sure I didn’t regenerate the .htaccess file; so it may just be working with the old rewrite rules); so if it breaks, I’m not suprised, but let me know anyway!

* Yeah… it is broken for earlier wordpress

For those of you who are getting a 404 page when clicking on a tag, I figured out what’s wrong. Perhaps this is an Apache version/setting thing, but in the RewriteRule lines for UTW (RewriteRule ^tags/…), wherever you see a $matches[1], $matches[2], etc. replace them with just $1, $2, etc. This fixed it for me.
— Cully Larson

Download here | Support forum

WordPress 2.0-RC1, Plugins and URL Rewriting

We fear change

My beloved WordPress plugin, Ultimate Tag Warrior uses URL rewriting to make the good stuff happen. In the 2.0-RC1 release of WordPress, the way URL rewriting works has changed a great deal. What follows, is what I needed to do in order to get Ultimate Tag Warrior to work properly.

First: How Ultimate Tag Warrior worked previously
With old URL rewriting; a request for /tag/sometag would be intercepted; and turned into index.php?tag=sometag behind the scenes. Underlying PHP magic would populate the $_GET array with the value of the tag parameter; then UTW would use the value from the $_GET array to figure out taggy stuff.

Next: Why this doesn’t work anymore
Requests for /tag/sometag are now matched in WordPress code; which means that the $_GET array is no longer being populated with the name of the requested tag. This broke pretty URLs, since as far as the plugin was concerned, there wasn’t a tag being specified.

Finally: How to wrangle it so that it does work properly
There are three things that I needed to do to get UTW to play nicely.

Phase one: Make changes to my rewrite rules
Previously, my additions to the rewrite rules array looked like this:
$rules[substr($baseurl, 1) . "?(.*)$"] = "index.php?tag=$1";

I had to change them, to be like this:
$rules[substr($baseurl, 1) . "?(.*)$"] = "index.php?tag=$matches[1]";
The rewritten URLs changed from having references to $1…$n to having references to $matches[1]…$matches[n].

Phase two: Add my query variables to the list of public variables
I needed to add a new filter in order to get my little paws on the name of the current tag.

This is the filter. It just adds tag to the list of query variables.
function ultimate_query_vars($vars) {
$vars[] = 'tag';
return $vars;
}

There’s a corresponding filter hookup. This is what mine looks like; because I have most (all?) of my actions inside a class named UltimateTagWarriorActions.
add_filter('query_vars', array('UltimateTagWarriorActions','ultimate_query_vars'));

(For completeness; if you don’t stash your action functions in a class, it looks more like
add_filter('query_vars', 'ultimate_query_vars');)

Phase three: Use the values from the query_vars object instead of $_GET
This part of the exercise was relatively straightforward. I replaced references to $_GET["tag"] with get_query_var("tag"). Obviously, this gave me the name of the tag from the URL instead of an empty string (:

It was a pain to figure out the hoops that I needed to jump through to get this to work; so if you’re in the process of getting a pre WordPress 2.0 plugin to work, I hope that it helps.

Ultimate Tag Warrior 2.8.8

Just a few little bug fixes in this version (:

(The issue with new posts in wordpress 1.6/2b has been fixed; along with an odd bug that Bill found with 404s and a weird plugin interaction; and it adds the core functionality needed for the experimental search)

Download here | General info here | Support Forum here

Update: Tag Search thingy! Download the tag search page; add it to your theme (and make changes as necesary… uh; if you have UTW installed in a different place, you’ll need to tweak the ajax url.. this is just an example!!! (: ); Create a new page, and use the Tag Search page template.

The tag search thing does depend on using version 2.8.8 of UTW.

Finding Posts via Tags

Searching using tags has been on my list of things to do for a while now. I’ve been playing with some things; and I’ve put together an experimental grade search via tags. It lives here.

It works well with small tag sets (collections of, say, 100 tags or less); but starts getting a bit unwieldy with larger sets (like.. err.. mine (: I have about 350 tags on my posts).

Basically; you click on the names of tags, and a list of posts that match any of the tags is retrieved. If you click on the name of a tag a second time, then it’s removed from the list of tags and the results are updated. It uses fandangled AJAX stuff so it feels shinier than the ye olde way of doing things.

Anywho, let me know how useful you think this is on the scale of “Meh” being Meh to “OMGZ I want one” being not-Meh. Eleven is.. uh.. better than cheese.

(There’s a download, and a caveat or two here: http://www.neato.co.nz/archives/2005/11/28/ultimate-tag-warrior-288/)