AutoTag updated for UTW 3.141

Note: This post is over a year and a half old. You may want to check later in this blog to see if there is new information.

Update 1/27/07: Development of these mods has ceased in lieu of the new xmlrpc version. Please check it out. It will only help those using offline editors, and at this point only adds Autotagging for TextMate, but I will consider other options in the near future. I just don’t want to be responsible for creating a whole bunch of unauthorized bugfixes and releasing modified code with every version update anymore ;-).

I felt the bugfixes to the postmeta problems in UTW were fairly important, but installing them would erase the AutoTag mod. So I’ve updated the distro. This file includes the entire UltimateTagWarrior directory to overwrite the one in your plugins directory. All of my changes are commented and can be found by searching for “Brett”, except for two changes where it referenced $this and should have referenced $utw. These were problems that carried over from 3.14 and I can’t seem to get anyone to fix. So here’s a bugfix package. SuperAjax works, all of the suggest buttons work (as long as the service is working, they both tend to return empty responses fairly often) and AutoTag has been added. There are also fixes for empty database call handling and the delete tag function in the admin panel.

I’m working on adding options to the admin panel to allow you to customize the AutoTag options. I think that will greatly improve its usability. Right now, it has trouble with 2 and 3 letter tags unless you hardcode them into the file, which a lot of people don’t know how/don’t want to do. But I don’t want to make too many massive changes until I find out if there’s any chance of ever getting this rolled into the package.

Here’s the mod for now, I hope you find it useful!

Download the UTW3.141 AutoTag update.

» » » » » » » »

Comments are closed

Comments are currently closed on this entry.
  1. Circle Six Blog » Blog Archive » UTW AutoTag mod release (+ bugfixes) 09.04.06 / 9am

    […] AutoTag updated for UTW 3.141Supergeek, supergeek…A picture, because it’s been a while. « Web 2.0 Logos Goodbye to livesearch » UTW AutoTag mod release (+ bugfixes) […]

  2. brett 09.04.06 / 12pm

    I’ve updated the file with some changes. If you downloaded the file before 12pmCST on the 4th of September, you’re may want this new file. It’s no big deal, it just adds more “stop words” to the algorithm and lowers the minimum word length for the suggestion feature. I basically increased it’s vocabulary of “stupid” words to ignore and let it find more 2 and 3 letter words that might be of consequence if repeated throughout the post. I’d like to add a feature so that when it makes suggestions it puts a minus sign next to them and you can click it to have it ignore that word in the future, but that involves setting up a new table in the database and like I said before, unless this is going to be rolled into the main distro, I don’t want to get into that. If you want to add words to the stop words just go into ultimate-tag-warrior-core.php on line 451 and add them to the array. It’s easy.

  3. brett 09.05.06 / 10am

    So I finally heard from Christine! I’m waiting to hear back on what she thinks of the mod, but I’ll keep you posted. In the meantime, it’s worth mentioning that the Tagyu site is completely gone, so the Tagyu suggest function will not work, no matter how many times you push the button ;-).

  4. Darren Ethier 10.05.06 / 4pm

    Hi Brett. Just wanted to give you kudos for a great mod. Christine should really look at including this plugin in the core package as it is helpful in cutting down the amount of time in using tags while posting (not to mention improving on the tag relationships). /tiphat

  5. Darren Ethier 10.05.06 / 9pm

    Here’s an error that pops up for me every once and a while…what’s puzzling is that it doesn’t appear all the time with every post. Thought maybe you could look into it?

    [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\', '\', '\', '\', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', ]
    SELECT DISTINCT(tag) FROM wp_tags WHERE LEFT(tag,1) in ('1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '1', '2', '2', '2', '2', '2', '2', '3', '3', '3', '3', '3', '3', '\', '\', '\', '\', '\', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'b', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'c', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'd', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'e', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'f', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'g', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'h', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'i', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'j', 'k', 'k', 'k', 'k', 'k', 'k', 'k', 'k', 'k', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'l', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'm', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'n', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'o', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'p', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 'r', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 's', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 't', 'u', 'u', 'u', 'v', 'v', 'v', 'v', 'v', 'v', 'v', 'v', 'v', 'v', 'v', 'v', 'v', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'w', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'y', 'z')
    No Primary Suggestions.

  6. Darren 10.06.06 / 5pm

    Looks like Christine’s site is down. Any updates on the bug I posted about in her forums (seperate from the mysql bug I’ve already posted here)?

  7. Brett 10.06.06 / 6pm

    I haven’t had time to look at it yet today, I’m hoping to get to it this evening. I’m a little stumped as to how to figure it out when I can’t recreate your setup, but I’ll see what I can do.

    As far as the bug here… could you recreate the error above and then send me a copy of the text of the post that caused it? Brett

  8. Darren Ethier 10.07.06 / 1pm

    I’ll try…the problem is that it seems to be totally random - next time it pops up I’ll send the text to you .

  9. Darren Ethier 10.07.06 / 7pm

    Okay I emailed you the text that “set off” the mysql error along with a copy of the full error returned. On a side note - I did some testing of different settings and when I disabled the “wysiwyg” text editor and reverted to the “old style” text editor the autosuggest button worked fine without having to save the post first. This could mean one of two things…
    1. The “wysiwyg” interface doesn’t mix well with the mod (which I’m not sure of because I don’t know what way your text editor is used) or…
    2. I have a plugin that adds two buttons to the wysiwyg editor (Plain Text Paste) I suspect this is the most likely culprit. I’ll try and disable the plugin (have to restore some “core” files too) to test this out.

  10. Darren Ethier 10.07.06 / 8pm

    Okay I can confirm one other thing now. I disabled the “Plain Text Paste” plugin and then tried using the wysiwyg text editor and the autosuggest does not work without saving the post first. It seems the only way it will work as intended is if I use the old style text editor.

  11. Brett 10.07.06 / 9pm

    I always forget that other people use the WYSIWYG editor. I hate the thing,
    so I totally ignored it when I made the mod. I’ll see if I can figure out
    why it doesn’t play nice, but it’s more than likely because the WYWIWYG
    editor commandeers the textarea somehow when it loads.
    I’ll check it out.

    I’m working on your other problem. Like I said, I’ve had the same thing
    happen to me on at least 2 posts. It’s choking on some character in there,
    and the pruning is allowing massive repeats. I’ll see if I can nail that down and
    get back to you, thanks for the pasted text you sent. Brett