Wrath of the Lich King World of Warcraft Database
Tooltips For Your Website

Information

It's never been easier to add Cavern of Time tooltips to your website.
    • Add this HTML code anywhere on your webpage:
      <script type="text/javascript" src="http://cdn.cavernoftime.com/api/tooltip.js"></script>

    • That's all there is to it.
      Cavern of Time links found on your site will now display tooltips with detailed information.
      The following tooltips are supported: achievement, item, npc, object, spell and quests.

    • Usage:
      Adding any links to your website that direct to the above types supported will generate a tooltip on mouseover.
      Examples:
      The Burning Crusade:
      <a href="http://tbc.cavernoftime.com/item=19019">Thunderfury, Blessed Blade of the Windseeker</a>

      Wrath of the Lich King:
      <a href="http://wotlk.cavernoftime.com/item=19019">Thunderfury, Blessed Blade of the Windseeker</a>

      Cataclysm:
      <a href="http://cata.cavernoftime.com/item=61340">Vicious Gladiator's Pike</a>

      Cataclysm:
      <a href="http://mop.cavernoftime.com/item=61340">Vicious Gladiator's Pike</a>

How to integrate


This guide will show you how to integrate Cavern of Time tooltips system into your vBulletin forum, aswell as adding BBCode for easier usage.
You must have administrative rights on your vBulletin forum to edit styles and bbcode.

Part One - Integrating the API
  1. Login to your administrator control panel.
  2. Expand the category Styles & Templates, click Manage Styles.
    If you have more than one style in your vbulletin system, you must complete the steps for each style.
  3. In the dropdown menu next to your current active style, select Edit Templates below heading `Template Options`, then click Go.
  4. In your templates list, scroll down until you find the line titled headinclude, double click the line.
  5. Search for:
    <script type="text/javascript" src="clientscript/vbulletin_global.js?v=$vboptions[simpleversion]"></script>
    This can differ depending on the style you use. If you cannot find this code, just go to the end of the headinclude inputbox and continue with the next step.
  6. After that, paste the following:
    <script type="text/javascript" src="http://cdn.cavernoftime.com/api/tooltip.js"></script>
  7. Click Save.

Cavern of Time tooltips will now work, try it with the following BBCode anywhere on your bulletin board:

[url="http://wotlk.cavernoftime.com/item=19019"]Thunderfury, Blessed Blade of the Windseeker[/url]


Part Two - Creating the BBCode for simpler tooltip links
  1. Login to your administrator control panel.
  2. Expand the category Custom BB Codes , click Add new BB Code.
  3. Fill in the bbcode form with the following data:
    • Title: Cavern of Time Item BBCode
    • BB Code Tag Name: item (You can also create bbcode for spells, objects, npcs and quests)
    • Replacement:
      <a href="http://wotlk.cavernoftime.com/item={option}">{param}</a>
    • Example:
      [item=17]My Item[/item]
    • Description: Write whatever describes the BBCode (Optional)
    • Use {option}: Yes
    • Button Image: Ths is optional. You can enter the URL of a 21 x 20 pixel image. It will be used in the WYSIWYG-Editor for the BBCode.
  4. Click Save

To test the newly created BBCode, post a new message containing [item]itemID[/item].

Congratulations! You're now done intergrating the Cavern of Time Tooltip System into your vBulletin board.
Repeat Part Two if you would like to integrate for Spells, Objects, Npcs and Quests.