Linking items

General announcements, RP discussions, discourse, and banter viewable by all

Moderators: Lunar Guard, The Gloaming

User avatar
Tomoyo
Elder
Elder
Posts: 847
Joined: Wed Oct 31, 2007 1:26 am
Location: Brisbane, Australia
Contact:

Linking items

Postby Tomoyo » Fri Nov 23, 2007 6:46 pm

Sadly, the mod which allowed us to add item links to the forums with just an [item] [/item] code is not compatible with our current version of vB.

Thankfully, there is an alternate work around, as presented by the WoWInsider blog.
http://www.wowinsider.com/2007/11/23/wo ... -tooltips/
The more observant among you may have noticed something neat happen to the site over the past few days: all item links that point to Wowhead now have tooltips! In case you hadn't noticed, here are a few examples:

* Primal Mooncloth
* Arcanite Steam Pistol

That should save some people a click or two, and more importantly, it looks cool (in my opinion, anyway). And the most exciting part is that this is really easy to get going on your own site. All you have to do is include this one line anywhere in the page:

<script src="http://www.wowhead.com/widgets/power.js"></script>

That's it! Now all Wowhead item links have tooltips.

If you want to jazz the links up a little by making them show up in the appropriate color, you can put "class=q#" in the <a> tag, where # is the number of the quality level of the item: 5 for legendary, 4 for epic, and so on down the scale. As an example, the code for the Arcanite Steam Pistol link above looks like this:

<a class="q4" href="http://www.wowhead.com/?item=29949">Arcanite Steam Pistol</a>

But your tooltips will still work if you don't want to bother with the class attribute; the links will just all be the same color. Now you too can be powered by Wowhead!


That script link has now been added to the template, so remember to link your items to WoWHead for lootlink goodness.
The weary wandering warlock

Warburn
Oracle
Oracle
Posts: 2526
Joined: Thu Nov 15, 2007 12:51 am
Location: California
Contact:

Re: Linking items

Postby Warburn » Mon Jan 14, 2008 6:49 pm

Can you update how to get items linked, please Tomoyo?

I have java script enabled but it doesn't work
Image
Warburn 80 Shaman / Azim dah MIGHTY 80 Warrior / Mustakrakesh 70 Priest
Oracle of Lady Nyx and Stone Guard of the Horde.

User avatar
Tomoyo
Elder
Elder
Posts: 847
Joined: Wed Oct 31, 2007 1:26 am
Location: Brisbane, Australia
Contact:

Re: Linking items

Postby Tomoyo » Mon Jan 14, 2008 7:38 pm

Example:

Code: Select all

[url=http://www.wowhead.com/?item=30666]Ritssyn's Lost Pendant[/url]

gives
Ritssyn's Lost Pendant
The weary wandering warlock

Warburn
Oracle
Oracle
Posts: 2526
Joined: Thu Nov 15, 2007 12:51 am
Location: California
Contact:

Re: Linking items

Postby Warburn » Mon Jan 14, 2008 10:35 pm

Am I the only one that doesn't work for?
Image
Warburn 80 Shaman / Azim dah MIGHTY 80 Warrior / Mustakrakesh 70 Priest
Oracle of Lady Nyx and Stone Guard of the Horde.

User avatar
Tomoyo
Elder
Elder
Posts: 847
Joined: Wed Oct 31, 2007 1:26 am
Location: Brisbane, Australia
Contact:

Re: Linking items

Postby Tomoyo » Sun Jan 20, 2008 1:12 am

I'm currently changing the setup for the tooltips, after just having updated our forums to the latest phpBB version. I'll change the first post when I do so. Let me know after that if there's still problems.

I think I figured out why it doesn't work for you, BTW....which template set were you using? I think it might only have worked with the "MaevahEmpire" style before.
The weary wandering warlock

User avatar
Tomoyo
Elder
Elder
Posts: 847
Joined: Wed Oct 31, 2007 1:26 am
Location: Brisbane, Australia
Contact:

Re: Linking items

Postby Tomoyo » Sun Jan 20, 2008 1:45 am

Bah, it looks like mod doesn't work properly. Guess we're back to using the same method as before. At least it should work for you on all the styles now.
The weary wandering warlock

User avatar
Ezraella
Member
Member
Posts: 224
Joined: Wed Jul 23, 2008 1:51 pm
Contact:

Re: Linking items

Postby Ezraella » Wed Nov 26, 2008 11:35 pm

Works for me fine.
Ezraella Kysarrian
Umbral Champion
Nyxian Loremistress


Image

Ahle
Posts: 34
Joined: Sat Sep 26, 2009 10:51 pm

Re: Linking items

Postby Ahle » Tue Nov 17, 2009 4:12 pm

For linking in game items there's a great little addon called linkerator. http://fizzwidget.com/linkerator/nnThis uses a flat file to store the item names of everything you've ever seen in game. To link something you just need to type it in [squre brackets]. More advanced addons do exist such as lootlink but I like this one because of it's small memory (both RAM and disk) footprint.


Return to “The Sanctuary (Public)”

Who is online

Users browsing this forum: No registered users and 3 guests