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.
// '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:
- you used my botched Version 6.1 and saved a page with an item link in it.
- new items were added to WoW and not yet in Allakhazam's database and you tried to link to them
- 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.
<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".
Donate
See Also
Installation Guide
- Exit "World of Warcraft" completely
- Download the mod you want to install
- Make a folder on your desktop called "My Mods"
- Save the .zip/.rar files to this folder.
- If, when you try to download the file, it automatically "opens" it... you need to RIGHT click on the link and "save as..." or "Save Target As".
- Extract the file - commonly known as 'unzipping'
Do this ONE FILE AT A TIME!
- Windows
- Windows XP has a built in ZIP extractor. Double click on the file to open it, inside should be the file or folders needed. Copy these outside to the "My Mods" folder.
- WinRAR: Right click the file, select "Extract Here"
- WinZip: You MUST make sure the option to "Use Folder Names" is CHECKED or it will just extract the files and not make the proper folders how the Authors designed
- Mac Users
- StuffitExpander: Double click the archive to extract it to a folder in the current directory.
- Verify your WoW Installation Path
That is where you are running WoW from and THAT is where you need to install your mods.
- Move to the Addon folder
- Open your World of Warcraft folder. (default is C:\Program Files\World of Warcraft\)
- Go into the "Interface" folder.
- Go into the "AddOns" folder.
- In a new window, open the "My Mods" folder.
- The "My Mods" folder should have the "Addonname" folder in it.
- Move the "Addonname" folder into the "AddOns" folder
- Start World of Warcraft
- Make sure AddOns are installed
- Log in
- At the Character Select screen, look in lower left corner for the "addons" button.
- If button is there: make sure all the mods you installed are listed and make sure "load out of date addons" is checked.
- If the button is NOT there: means you did not install the addons properly. Look at the above screenshots. Try repeating the steps or getting someone who knows more about computers than you do to help.
Translations
When you download a mod, please be sure that the mod is compatible with your translation of wow. Some mods only work on the US versions, while some only work on some of the various European versions. These variations are called "Localizations".
TOC Numbers (Out of Date Mods)
When Blizzard patches WoW, they change the Interface number. This means that all mods will be "out of date" unless or until the author releases a new version for that interface. Some people go into the .toc files and update the numbers themselves, but this is STRONGLY advised against as it will cause problems locating possible incompatibilities addons. When you log into WoW after a patch, you DO NOT have to delete your interface directory. All you have to do is simply tell WoW to ignore the interface numbers and load all the mods anyway. All you have to do is, while at the "character select" screen, look in the lower left corner and click on the "addons" button. A window will pop up listing all your installed mods.
If you look in the upper left corner of that window there should be a box that says "Load Out of Date AddOns". You want to CHECK this box. Now simply go into WoW normally and all your mods should load. As of the 1.9 patch, you will have to do this after EVERY patch/update that Blizzard posts! If you encounter any problems with a mod after a patch, please be sure to let the author of the mod know so they can fix it.
See also: About "Out Of Date AddOns"
Mac Support
WoW addons are not platformed based. As such, they can be used on either Mac or PC. You can extract both .zip and .rar files on a Mac using StuffitExpander.
Directory Structure
World of Warcraft
|_ Interface
|_AddOns
|_*AddonName*
|_ *AddonName*.toc
|_ *AddonName*.xml
|_ *AddonName*.lua
|_ (possibly others as well)...