Simple Syndication
Syndicating content from WARDB is simple. Follow this two-step process, and you're done.
-
Put the following code into the HEAD section of the HTML document:
<script type="text/javascript" src="http://www.wardb.com/js/extooltips.js"></script> -
Your site is now ready for WARDB syndication! Whenever you want to include an item tooltip in a news story, comment, or forum post, all you need to do is create a WARDB link to the item. Here's are some examples:
Items: <a href="http://www.wardb.com/item.aspx?id=435134">Warlord Flamerobe</a> (Warlord Flamerobe)
Spells: <a href="http://www.wardb.com/spell.aspx?id=366">Demonic Fire</a> (Demonic Fire)
Quests: <a href="http://www.wardb.com/quest.aspx?id=42828">A Lords' Game</a> (A Lords' Game)
NPCs: <a href="http://www.wardb.com/npc.aspx?id=41">Argog the Unstoppable</a> (Argog the Unstoppable)
Customizing Links
Links can be customized by applying a "class" attribute to the anchor tag. Here are some of the options we currently offer.
-
Auto label: If you would like your links to have the item name and rarity color automatically applied for you, simply use the class attribute: "wardb-item-text".
For example: <a class="wardb-item-text" href="http://www.wardb.com/item.aspx?id=435134">Unknown Item</a> will display Unknown ItemTip: This also work for spells, quests and npcs. Instead of applying the class "wardb-item-text", use "wardb-spell-text", "wardb-quest-text" or "wardb-npc-text". You should note that quests and npcs do not have any icon.
-
Links with Icons: To include an icon with your link, as well as the label, use one of the following three class attributes: "wardb-item-full-small" for a small icon, "wardb-item-full-medium" for a medium icon, or "wardb-item-full-large" for a large icon.
For example: <a class="wardb-item-full-small" href="http://www.wardb.com/item.aspx?id=435134">Warlord Flamerobe</a> will display Warlord Flamerobe
Changing the class attribute to wardb-item-full-medium will produce:
Warlord Flamerobe
And to wardb-item-full-large:
Warlord Flamerobe
Forum Integration
Are you interested in integrating WARDB tooltips with your forums? Follow the documentation below, for your specific forum software.
- VBulletin Board 3.7.3 - Installation (Light)
- phpBB 3.0.2 - Installation (Light)
- Simple Machine Forum (SMF) 1.1.5 - Installation
- Invision Power Board 2.3.5 - Installation (Light)
- eqDKP 1.4.0 - Installation
The Light installation only requires an access to the Control Panel. There is no file modification or sql alteration involved. The downside is that it only allows linking by ID, linking by name will not work.
Once installed, the following BBCodes will be available:
- [item]id or name[/item] or [item=full-medium]id or name[/item]. Tip: You can use "text", "full-small", "full-medium" and "full-large"
- [spell]id or name[/spell] or [spell=full-medium]id or name[/spell]. Tip: You can use "text", "full-small", "full-medium" and "full-large"
- [quest]id or name[/item]
- [npc]id or name[/npc]