Image:WoWItem.zip

From Addons

Jump to: navigation, search

WoWItem.zip (37KB, MIME type: application/zip)

Warning: This file may contain malicious code, by executing it your system may be compromised.

Contents

For the following example, I'll use the following information.
{itemname} = "Dreadmist Mask";

Download

Change Log

Version 7.7 and up

Moved to CurseForge.

Version 7.6

Version 7.5

  • Added Special:WoWItem to test basic requirements.
  • Using absolute path to create folders for icon storage.

Version 7.4

  • Fixed a few notices.

Version 7.3

  • Added support for non-enUS sites.

Version 7.2

  • Now uses the WoW Armory to retrieve item information. If you really want to use Allakhazam, just set the variable $WoWItem_site equal to 'allakhazam'.

Version 7.1

  • Icons will now be stored locally in "$IP / wowitemimages / [a-f0-9]{2} / [a-f0-9]{1} /" (externally accessible via "$wgServer / $wgScriptPath / wowitemimages / [a-f0-9]{2} / [a-f0-9]{1} /")
    • You don't have to know what this means, just that pages with a lot of item links will load faster.
    • You will have to resave all pages with item links in order to make them use the local images.

Version 7

Version 6.1

This version does not work!

  • Added details for Special:Version
  • You can now change key URL's via MediaWiki:wowitem-icon-url, MediaWiki:wowitem-search-url, and MediaWiki:wowitem-xml-url. However, doing so at this time will break it since I have not added support for sites other than allakhazam.com.

Version 6

  • Ugly fix to correct the suffix bug (aka, the "Of Bug").

Version 5

  • Fixed header output errors (hopefully).

Version 4

  • Changed the format of "Item not found".

Version 3

  • Custom style sheets were broken with this installed, now they work.

Version 2

  • Asthetics

Examples

Just a plain link
<item>Hearthstone</item>

<item not found>Hearthstone</item not found>


Icon link.
<item img="true">Judgement Legplates</item>

<item not found>Judgement Legplates</item not found>


Display Item HTML.
<item html="true">Dreadmist Mask</item>

<item not found>Dreadmist Mask</item not found>


Display Item HTML.
<item img="true" html="true">Vanir's Left Fist of Brutality</item>

<item not found>Vanir's Left Fist of Brutality</item not found>


See Also

MediaWiki.com/Extension:WoWItem

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 <item not found>Corpse Harvester</item not found>. "Helm of Desolation": will only probe once and find <item not found>Helm of Desolation</item not found>, 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.

TALK

 

File history

Click on date to see the file uploaded on that date.


The following pages link to this file:


Last edited by Treader on 22:51, 11 November 2008.
View Count: 1,491.
Times Edited: 18.
Personal tools
ads
Categories
customize
MediaWiki Extensions
file
wow help