Search
December 5th, 2007. comments are open 25 commentsWowhead Item Tooltips

Wowhead Item Tooltips is a very light-weight, easy to install and use plugin for WordPress 2.5.1 (version used by developer) used to display tool tips similar to those found in the World of Warcraft game itself. The tool tip engine itself is powered by Wowhead, which is my personal favorite database site for WoW.

Examples:
[Shark Bait]
[A Torn Journal Page] (*Background changed to black to emphasis the white text… Seeing how this is a common item, which is white. This doesn’t actually happen with the plugin.)
[Arcane Tome]
[Abacus of Violent Odds]
[Fury]
[Thunderfury, Blessed Blade of the Windseeker]

As you can see above, it has support for all types of in-game qualities, without having to specify which you’re using! (One of the drawbacks I saw with just using Wowhead’s script right off the bat.)

Download here: http://www.papersealfury.com/downloads/wp-plugins/witt_v0.5.zip

Note: If you’re updating from an old version (< 0.5), in order to work properly, the plugin needs to be reactivated. (Go to plugin menu, deactivate WITT, then activate again. It should work fine after that.)

Install Guide:

  1. Decompress the plug-in, and then upload to your ftp into the directory: wordpress_installed_directory/wp-content/plugins/ (Make sure that’s the directory where you installed YOUR WordPress blog. I’ve messed up many a hosted blog before. >.>)
  2. Log into your WordPress Administration section, and head to the “Plugins” section, click on the “Activate” link for the plugin. (If you forgot, it’s “Wowhead Item Tooltips” !)
  3. That should be all, just start posting away with all them juicy [item][/item] or [itemico][/itemico] tags!

Now, if that doesn’t work, you can post a comment back on here and I’ll try and resolve it with you, and I can start a nifty FAQ section!

(space reserved for nifty FAQ section.)

Current Issues:

  • If there is an unclosed item tag, currently the plug-in will get stuck in an infinite loop.
  • Item tags may not get parsed, as if the plugin isn’t running. This may be caused by plugin load order. If it does happen, perform the following:
    1. Open “wowhead-item-tooltips.php”
    2. Find the following text:
      add_filter(‘the_content’,'witt_call’, 35);
      add_filter(‘comment_text’,'witt_call’, 35);
    3. Change the “35″ to a lower number, such as “5″:
      add_filter(‘the_content’,'witt_call’, 5);
      add_filter(‘comment_text’,'witt_call’, 5);
    4. Save and upload to plugins directory.

Version History:

v0.5.2 (2008-06-12)

  • Rewrote the replacement method (substr_replace -> strtr). Should be -slightly- faster.
  • Fixed an error in the item search string. Item links that were next to one another were being considered the same link.

v0.5.1 (2008-06-11)

  • Fixed an issue with open_short_tags (<?) being disabled. My laziness prevails.
  • Added the old retrieve method from v0.1 if the script cannot find the cURL functions. Making the install and set-up even easier.

v0.5 (2008-06-10)

  • Options Panel added
    • Change Icon Size
    • Change Link Language
    • Flush Database
  • XML Parser rewritten, should be faster and no longer require anymore rewrites… Hopefully.
  • Version checking on install/activation. Should update out-dated database versions to the newest version.

And what everyone really has been waiting for:

  • [itemico] tags
  • Different languages! Currently supported are: German, French and Spanish. These are entirely dependent on what Wowhead has added. If they add more, so will I.
  • Also, link tags! Added for the itemico link mainly, so you can change the display size of an icon independently the blog’s defaults.
    • Options: size=small|medium|large
    • Example: [ itemico size=small][/itemico]

v0.3 (2008-04-15) Beta Release

  • Changed abbreviation to WITT from RHC_TT
  • [item] tag parser was rewritten to be more efficient.
  • XML parser was rewritten for better schema support.
  • Scraped the old XML fetching function, and implemented cURL.
  • Removed extraneous files and renamed plugin file to ‘wowhead-item-tooltips.php’

v0.1a (2008-04-11) – Hotfix

  • Updated array values due to differences in Wowhead XML schema.

v0.1 (2007-12-05) – Initial Release

  • Added support for Wowhead’s JavaScript tool tip library.
  • Added parsing of item tags in WordPress posts and comments.

25 Comments. Add your own

Strawberrie  |  December 5th, 2007 at 4:18pm

Oh this is so awesome! And it looks so much neater than other plug-ins out there. Yaaay, Tyler!

Strawberrie  |  December 7th, 2007 at 5:02pm

You don’t have a step where it says that you actually have to type out the [ item ] [ / item ] tag bit. People that have never used it might be a little confused on how to do it?

milkfilk  |  February 5th, 2008 at 11:35pm

I had to fix a theme I made (made means not original). Apparently I’ve never used:

In my header.php which is needed for your css callback. I threw that into “my” theme and suddenly the linking worked. As a side note, the fopen php.ini change was slightly worrying. Security? I don’t know how else you can do a url get so maybe it’s just unavoidable.

Thoughts on either thing?

milkfilk  |  February 5th, 2008 at 11:36pm

Oops. got stripped off my comment. That was expected.

Celius  |  February 6th, 2008 at 12:36am

Hm, you know. I hadn’t thought much about this plugin since I wrote it for Berrie. Mainly because when I wrote it nothing came up..

I’m going to take another look into some of the stuff. Mainly the php.ini change. Since my host was configured for it before I even wrote the script, I thought nothing of it.

Also, I completely over sighted the requirement to put the js include in the header when I wrote up this tutorial.

I’ll crack into it later. ;D

Breana  |  February 18th, 2008 at 12:54pm

Thank you, thank you, thank you for writing this plug-in. I have been trying to find one for weeks now and yours has been by far the fastest and simplest to set up. I had major issues with the other ones, but yours worked great first time out!

Darren  |  April 8th, 2008 at 4:13pm

Don’t know if it’s something I’ve done or just a result of the bright idea I had of trying this after WP2.5 came in (and incompatibilities are my issue), but after I’ve activated the plugin, my posts stop dead/end right before the ‘content’ of any post containing an ‘item’ link.

papersealfury » Wow  |  April 15th, 2008 at 1:26am

[...] Wowhead Item Tooltips April 15th, 2008. Wowhead Item Tooltips v0.3 [...]

Powered by wowhead | Demo  |  April 25th, 2008 at 4:09pm

[...] il bug della 2.5 (è appena uscita la 2.5.1 apposta ma io non sono paziente affatto) avevo trovato http://www.papersealfury.com/blog/witt/ (sicuramente + leggero dell’itemstat ma con il salvataggio su db. Tuttavia il codice è [...]

Draenei Help Desk! »  |  April 29th, 2008 at 11:06pm

[...] am | Tagged as: Blogging Tools, Site News I found a good WP plugin for Wowhead item tooltips at papersealfury, and it’s a great drop-in for self-hosted WP Warcraft blogs. Simple [item] tags will get you [...]

Sephiros  |  June 6th, 2008 at 6:58am

I confirm it’s broken with wordpress 2.5.1

Notalda  |  August 20th, 2008 at 4:30pm

I’m loving this plugin, but there’s one thing I’d absolutely love to see: WotLK “language” support.

Right now, I just added a new language, and made WITT grab the tooltips and whatnot from wotlk.wowhead.com, that works like a charm.

Probably not the most elegant solution, though.

Cyphun  |  September 17th, 2008 at 1:13am

I have tried running the plugin on 2.5.1 and 2.6.2 and both don’t parse any tooltips. I know it is enabled and I have also tried altering the filter load order as well. Any ideas?

Brandon  |  October 27th, 2008 at 11:04pm

Any chance we can get this to support spells as well?

Brandon  |  October 28th, 2008 at 12:25am

Ok, i’m fail, ignore my last post. Was posting to my blog from my phone, forgive me.

Keep up the good work!

Elnaira  |  November 20th, 2008 at 1:42pm

I seem to have a problem with your plugin of awesomeness on WordPress 2.6.3. Not all item tags are bieng parsed, just like the plugin isn’t running.

I tried your hotfix and noticed the values were allready set to 5. I tried changing it from a negative value up till +50 but it didn’t made any difference unfornately.

Is there any way we can fix this? :)

Killmore  |  December 11th, 2008 at 11:32pm

Hi,

any chance you can add spells & achievements ?
like http://wowhead.crackpot.us/ for phpbb

Garoun  |  May 20th, 2009 at 10:34am

Note about a bugfix.

The path to the wowhead power.js file changed and it can lead to slowdowns when loading the page because it forces a 301 redirect every load.
The new url is:
http://static.wowhead.com/widgets/power.js

Wick  |  August 9th, 2009 at 12:40am

You’re a genius! I’ve been looking for something simple and effective like this for my own personal blog. THANK YOU!

It was very easy to install and set up. I included target=”_blank” on the item links/icons, so people can stay on my site rather than having to hit ‘back’.

It was mentioned by Strawberrie very early on in the comments that it was kinda tricky to know what to type (using the [icon] [ /icon] tags). I didn’t actually know – despite it being a silly thing I should have known – what you had to type! :o

Slam  |  April 11th, 2010 at 9:02am

Hello. When I wrote [item]Fury[item] I got message:
Error on line 1

How to fix this? Do you still support this project?

Thank You for advance!

Miavar  |  April 19th, 2010 at 8:15pm

Same issue as above poster:
When I wrote [item]Bread of the Dead[item] I got message:
Error on line 1

I know this post is a bit old, but damn it seems like it’s exactly what I’m looking for.

Miavar  |  April 19th, 2010 at 8:34pm

Found the fix:

go to line 101:

$url = ‘http://’.$lang.’.wowhead.com/?item=’.$item_name_url.’&xml’;

remove the ? save and upload: should look like this:

$url = ‘http://’.$lang.’.wowhead.com/item=’.$item_name_url.’&xml’;

works perfect.

Slam  |  April 22nd, 2010 at 7:37am

OMG, I wrote many phrases and got Error on line 1 in this blog. My reply was gone :(

in few words again,

Miavar, thanks for your reply. I ahve already found this bug to and fix them.

I found another bag.
if you have normal link to wowhead with class ?????? ?????? and in the same line you have [item][/item], your text will not parse and you will got a native [item][/item] in your text winthout parse.

Slam  |  April 22nd, 2010 at 7:40am

anoter one fix with ru wowhead.
in _witt table you need change latin1_swedish_ci codepage to utf8_unicode_ci and everithing will be work fine. If you don’t do that, you got ?????? ?????? like in my previous post.

Slam  |  April 22nd, 2010 at 12:05pm

I think, I got a clue. Parser don’t understand a tag. Enyone familiar with regular phrases and can fix that? =)

Leave a Comment





Trackback this post  |  Subscribe to the comments via RSS Feed