Content last modified Monday 6 March 2017
hop to #bottom
Categories:
Author:
Current version:
0.4
About It:
Get it:
Rate it:
  • Helpful?
  • 1 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

kbk_itemstats

Description
This PlugIn allows you to insert elements generated by ItemStats for World-of-Warcraft to your articles. It takes advantage of the actual ItemStats-Library provided for (ex.g.) EqDKP and may therefore be considered a port by certain people.

Installation
For this PlugIn you need to upload ItemStats to your webserver. If you have it allready installed on your server you may skip this step.
I advice to create a PlugIn-Directory in your Textpattern-root where you can install ItemStats. Download ItemStats Version 1.5.1 Core from the ItemStats Homepage. Extract and upload it to the PlugIn-directory mentioned above. You should now have it installed in a directory like /txp/plugins/itemstats/ on your webserver.
Now you have to setup ItemStats. Read through config.txt to figure out what you have to do to make it fly.



Afterwards you have to install this very PlugIn the usual Textpattern-style. Now start configuration-steps.

Configuration
If your ItemStats-Installation has been put into the PlugIns-Directory, there is pretty much nothing you have to care about. However, if its not you have to adapt one of the PlugIns variables:


// Setup path to ItemStats<br> $itemstats_path = "/plugins/itemstats/";

Notice that you have to change slashes (/) to escaped backslashes (\\) if you are running Textpattern on a windows-plattform.



Now you have to implement Itemstats’ CSS-formats and Overlib. This is being done within one of your pages (Admin > Pages) where you have to add the following HTML-part to the &lt;head&gt; section of your site:


&lt;link rel="stylesheet" href="/plugins/itemstats/templates/itemstats.css" type="text/css"\&gt;<br> &lt;script type="text/javascript" src="/plugins/itemstats/overlib/overlib.js"&gt;&lt;!-- overLIB (c) Erik Bosrup --&gt;&lt;/script&gt;


Once again, if you have changed the location of your Itemstats-Installation you have to adapt the pathes used in there.

How to use
Inserting a parsed item to one of your articles is pretty simple:


&lt;txp:kbk_itemstats name="Red Dragonscale Protector" /&gt;


As you may guess the attribute name has to contain the items name which is to be parsed. This argument is obligatory! It will produce a colored text that, once hovered with the mouse-curse, has an overlay containing the items stats.
If you prefer to have an image instead of text, just use the following code:


&lt;txp:kbk_itemstats name="Red Dragonscale Protector" type="icon" /&gt;


This will draw an image that has the same overlay. You can change the icons size by adding yet another option:


&lt;txp:kbk_itemstats name="Red Dragonscale Protector" type="icon" size="60" /&gt;


Default-size of icons is set to 40.

Changelog
0.4: First public release.

Article Request Count:
Keywords/tags:
Initially released:
22.11.2006
Posted here:
28 Aug 2007
Article modified:
03 Dec 2007

If there is a comment form at the Information URL, you may want to leave your comments/questions there for quicker feedback. Otherwise, comment away:

Your comment will NOT be submitted until you click the 'Submit' button on the next pageload.

Commented (1)

haha damn. i used to play WoW and this might have been handy at the time. nice.

Subscribe to this article's comments RSS feed. [ ? ]   View Recent Comments across the site.

You know you want to visit the Archives.

Browse

Categories


Articles

There are also tag clouds, 'cause those are fun.
Published with Textpattern