The DarthhaterDB and You: Tooltip Syndication

As the release of Star Wars: The Old Republic draws near, gamers everywhere are seeking more information about the game than ever before.  With the recent launch of the DarthhaterDB, we aim to provide amazing, integrative tools to anyone interested in SWTOR.
 

 What is the DarthhaterDB?

 Every tidbit of information you could wish for concerning SWTOR lies within this database.  Use advanced search and filter functions to narrow down gear and ship upgrades, find information on that elusive mission objective, check out recipe and ability information, or scout entire zone maps. 
 
Advanced spec buliding and sharing features allow ample room for theorycrafting the best specs for any role, while the DarthhaterDB quest tree allows you to maximize your light and dark side points.  To top it off, every entry has comments enabled for players to add that little touch of extra human insight.
 
Over the next couple weeks, we'll be covering in-depth some of the features that make the DarthhaterDB the best SWTOR tool out there, and we hope you'll tune in.  In the spotlight today, however, is one of the most epic features that every SWTOR-themed website or forum is going to need without a doubt:  Tooltip Syndication.

Simple Syndication

This guide is a walkthrough of how to link DarthHaterDB items, spells, quests and npcs on your own website, with built-in tooltips. What is a tooltip? A tooltip will display item facts in a little box that pops up in your browser. Clicking on the link will direct users to a page with more detailed information. Just follow this easy guide to getting these on your site.

Syndicating content from DarthHaterDB is simple. Follow this two-step process, and you're done.

  1. Put the following code into the HEAD section of the HTML document:
    <script type="text/javascript" src="http://db.darthhater.com/js/extooltips.js"></script>
  2. Your site is now ready for DarthHaterDB 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 HolocronDB link to the item. Here are some examples:

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: "swdb-item-text".

For example: <a class="swdb-item-text" href="http://db.darthhater.com/items/42849/corsos_prototype_rifle/">Unknown Item</a>

 Will display: Corso's Prototype Rifle
  • Links with Icons: To include an icon with your link, as well as the label, use one of the following three class attributes: "swdb-item-full-small" for a small icon, "swdb-item-full-medium" for a medium icon, or "swdb-item-full-large" for a large icon.

For example: <a class="swdb-item-full-small" href="http://db.darthhater.com/items/42849/corsos_prototype_rifle/">Corso's Prototype Rifle</a>will display

  Corso's Prototype Rifle

Changing the class attribute to swdb-item-full-medium will produce:

  Corso's Prototype Rifle

And to swdb-item-full-large:

  Corso's Prototype Rifle

There we have it:  Basic tooltip syndication, ready for your corner of the online world.


To stay on top of all releasing SWTOR news, development updates, speculation and community banter, head to darthhater.com, and to the SWTOR Wiki at wikiswtor.com for constant, fresh information on items, classes, and more.

Comments

Learn how to disable ads

Popular News

Learn how to disable ads
Login to Curse

Don't have an account? Create One.

Get an epic experience with Curse Premium
  • Faster addon downloads
  • Premium-Only Beta Giveaways
  • Ad-Free Curse experience
  • Premium Curse Client
  • and many More Features
  • Learn More »

Diablo III Giveaway

Enter Now!