Wiki WoW Item Tooltip

Miscellaneous Login to Add Favorites
  • 0 Likes
  • World of Warcraft
  • 2 Monthly Downloads
  • Supports: 4.0.1
  • 3,871 Total Downloads
  • Updated 10/25/2010 4:55:25 PM
  • Created 11/7/2008 3:01:18 PM
  • 13 Favorites
  • Project Site
  • Comments
  • Release Type: Release
  • License: Written or Edited by Eric Gingell
  • Newest File: v201010251548
or
Support development! **
Donate

About Wiki WoW Item Tooltip

Description

Make <item>item name</item> into a tooltip link.

Notes

  • This is not an addon, it's a PHP script that is executed by a PHP enabled web server.
  • Requires MediaWiki
  • Requires PHP
  • Requires a web server (i.e. IIS, Apache, LiteHTTPd, etc.).
  • Could be modified to work with any Wiki implementation.
    • Don't bother asking me to do it without giving me full access to your files (for debugging).

Having Issues or have a Suggestion?

  • Please don't use the comments to post trouble tickets or suggestions. Instead post a ticket on CurseForge. Thanks.
    • Any comments containing bug reports or feature requests will be deleted on sight and any comments asking where or why (referring to said comments) will also be deleted on sight.
    • Please don't submit tickets about items that are not found until you try Allakhazam, WoWHead, and WoWArmory.

Installation

Put this line at the end of LocalSettings.php

// $WoWItem_site values
//     'allakhazam' or 'alla'                           : Use Allakhazam's database.
//     'wowhead' or 'head'                              : Use WoWHead's database.
//     'curse'                                          : Use Curse's database.
//     'wowpedia' or 'wowwiki'                          : Use WoWPedia's database.
//     'wowarmory' or anything other than the above     : Use Blizzard's database.
$WoWItem_site = false;
require_once("$IP/extensions/WoWItem/wowitem.inc");

Known Issues

My bad, just needed to wrap the item name in urlencode().
  • Due to the way MediaWiki stores data returned by a hook, you may have to resave pages that have <item not found> in them.
Only a problem if:
  1. you used my botched Version 6.1 and saved a page with an item link in it.
  2. new items were added to WoW and not yet in Allakhazam's database and you tried to link to them
  3. you managed to make it work with a different website other than Allakhazam
  • The script probes Allakhazam.com or WoWArmory.com twice if it sees an item with " of " in the name only if it doesn't find it the first time. E.g. "Corpse Harvester of Power": will probe [the site] twice to find Corpse Harvester. "Helm of Desolation": will only probe once and find Helm of Desolation, which is found on the first pass.
  • Due to the way World of Warcraft handles items, it is not possible to link to items with sub names such as, "Corpse Harvester of the Bear". Attempting to link to such items will result in "<item not found>Corpse Harvester of the Bear</item not found>". I'm working on a way to make the script ignore sub names.
Fixed (ugly)
  • Seems to break custom style sheets. I'm working on a fix.
Fixed
  • If you don't put the require_once line at the end of LocalSettings.php (or after the headers have been sent), you will receive the following error:
Warning: Cannot modify header information - headers already sent by (output started at
{$IP}/extensions/WoWItem/includes/overlibmws/overlibmws.php:3) in {$IP}/includes/WebResponse.php on line #
Warning: Cannot modify header information - headers already sent by (output started at
{$IP}/extensions/WoWItem/includes/overlibmws/overlibmws.php:3) in {$IP}/includes/WebResponse.php on line #
Fixed, hopefully.
  • The new user changeable item site may not work as expected.
  • The WoW Head hack is still new, please post suggestions and bugs.
  • Currently, the only sites that works properly are Allakhazam and Blizzard's Armory.

Tags

<item>Item Name</item>

Results in a bracketed link colored with the appropriate rarity color that when moused over, pops up a tooltip with the same information that would pop up in-game.

<item img="true">Item Name</item>

The icon is the link instead of plain text.

<item html="true">Item Name</item>

Results in an embedded tooltip.

<item img="true" html="true">Item Name</item>

Same as above with the item's icon included.

<item site="siteid">Item Name</item>

Change the site to retrieve data from to siteid. Valid values for siteid are "wowarmory", "alla", "allakhazam", "head", "wowhead", and "curse". If left out or an invalid value is used, it defaults to "wowarmory".

<item itemstring="item:1234:0:0:0:0:0:1853:0:0" />

Use an item string instead of a name/itemID (does not support gems or enchants, yet).

Donate

See Also

  • Added WoWPedia.

Addon Packs Containing This...

Comments

Learn how to disable ads
Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Diablo III Giveaway

Enter Now!