This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Powered Tooltips Guide
Post Reply
Return to board index
Post by
hallfire
So guys, finaly I managed to get access to the IPB message board demo. Here is how you can implement the wowhead mouseover tooltip script to your IPB (Version 2.2).
Have fun!
Part One - Installing the script
Login to you Admin CP
Click
Look & Feel
Select your current theme and click the button on the end of the line
Hit
Edit Board Header & Footer Wrapper
Search for:
<% JAVASCRIPT %>
After that, insert:
<!-- WoWHead MouseOver-Tooltip -->
<script src="
http://www.wowhead.com/widgets/power.js"
type="text/javascript"></script>
<!-- /WoWHead MouseOver-Tooltip -->
Hit
Save wrapper
Open your forum and test the script with the following line:
My great Item
Part Two - Creating the custom bbcode-tag
Login to you Admin CP
Click
Management
On the left side-menu select
Add new BBCode
in the
Custom BBCode
category
Fill in the form:
Custom BBCode Title
wowhead.com mouseover tooltip
Custom BBCode Description
This vbCode creates an wowhead.com-Link which provide sweet item-tooltips of the linked item. Only works if the wowhead.com script is active.
Custom BBCode Example
Meta Bryanite of Mana
My great Item
Custom BBCode Tag
item
Use Option in tag?
Yes
Switch option around?
No
Custom BBCode Replacement
<a href="
http://www.wowhead.com/?item=
{option}">{content}</a>
OPTIONAL Insert into the editor's 'Insert Special' menu?
Yes
OPTIONAL Enter 'option' dialogue text
The ItemID of you item you wish to link to.
OPTIONAL Enter 'content' dialogue text
Some text which describes your item. Can be the name of the item or whatever you want.
Hit
Add BBCode
Open your forum and test your new BBCode with the following line:
Choker of Repentance
What a wonderfull item
Enjoy :)
anybody can update this article for the new version of ipb ?
Post by
Zharr
Hello.
Is there other options for the tooltip then :
colorlinks
iconizelinks
renamelinks
i am looking for an option to disable the tooltip but still be able to have icons, renamelinks and so on.
Post by
Miraurid
Can anyone write right usage for SMF 2.0.5? Because old SMF guide is outdated. I can't find the exact texts in index.template.php. So, I can't add Wowhead and HS tooltip to my SMF forum.
Post by
fdenis
Hello,
There is a little bug with wowhead tooltips. It's not really a bug, it's a conflict with the javascript library Prototypejs.
Everything is working well but there is one exception. When there are multiples links of the same item (or npc, or achievement...) on the same page, the browser generate a javascript error and stop replacing links :
Uncaught TypeError: Property 'children' of object #<HTMLDivElement> is not a function
You can see this bug on this test page :
http://craniumbasher.fr/wowhead_tooltip_conflict_with_prototypejs.php
Post by
Dondarrion
Hello,
There is a little bug with wowhead tooltips. It's not really a bug, it's a conflict with the javascript library Prototypejs.
Everything is working well but there is one exception. When there are multiples links of the same item (or npc, or achievement...) on the same page, the browser generate a javascript error and stop replacing links :
Uncaught TypeError: Property 'children' of object #<HTMLDivElement> is not a function
You can see this bug on this test page :
http://craniumbasher.fr/wowhead_tooltip_conflict_with_prototypejs.php
I was searching in the web for the same as you....i have the same error, hope wowhead guys fix this. It is not a real problem but cause problems with time loading and generate too many errors.
Regards,
Guillermo
Post by
fdenis
I found almost nothing on this issue with google. But i guess it's normal, Prototypejs is not a common JS library today although it's a very good one. jQuery killed them all ^^.
But there are still some very high quality software using Prototypejs so please wowhead, don't forget them :)
Post by
Dondarrion
Well, in fact, prototype is really common, but it is getting quite old. I think that the problem is that they change something in the way wowhead display the content thus the js is not valid.
Sure they are gonna fix this ( i hope so ). Thanks a lot for your efforts
Post by
fdenis
Its fixed now :)
Thank you for your reactivity wowhead !
Post by
Starilus
Hello,
I found a conflict with jquery 1.10.2 version (I am using latest wordpress 3.6.1) Links dont work properly.
Output from web dev tools:
Uncaught TypeError: Property '$' of object is not a function basic.js?5:1
$WH.Tooltip.attachImage basic.js?5:1
$WH.Tooltip.set basic.js?5:1
$WH.Tooltip.showAtXY basic.js?5:1
showTooltip power.js:1
register power.js:1
loadScales power.js:1
(anonymous function)
I'll test it with older version of jquery 1.7.2 and it's work perfect. Can u check this?
Post by
mannaroth
So I have the following script in the <head> tag of my website:
<script type="text/javascript" src="
http://static.wowhead.com/widgets/power.js"></script>
<script>var wowhead_tooltips = { "colorlinks": true, "iconizelinks": true, "renamelinks": true }</script>
Mouseover links work fine, but none of the links have icons, change colour, or get renamed. Previously I had the script in the body of the page itself and the icons etc would work until about half way down the page, and then stop working. This is for a Wordpress site.
Any suggestions?
Post by
exie82
Does anyone have the time to do something about integration for PunBB in its current state? (1.4.x series) -- I'm having major issues using it, personally.
PunBB 1.4.2
1) forum/include/template/main.tpl
add line:
<!-- forum_include "wowhead.html" -->
in
<head>
<meta charset="utf-8" />
<!-- forum_head -->
<!-- forum_include "wowhead.html" -->
</head>
2) create file forum/include/user/wowhead.html
only 2 line:
<script type="text/javascript" src="
http://static.wowhead.com/widgets/power.js"></script>
<script>var wowhead_tooltips = { "colorlinks": true, "iconizelinks": true, "renamelinks": true }</script>
3) forum/include/parser.php
add 2 line in function do_bbcode
$pattern*)](.*?)\#ms';
$replace
Use for HearthStone:
Lightning Storm
Post by
mel9525
I'm really hoping someone can help with this - I've been searching for days and can't seem to find anything similar to my problem.
I'm creating a website with an HTML5 editor through the website Wix, and I wanted to put Wowhead tooltips on it.
The problem is that because of the editor, I'm not "directly" working with any script - I'm just manually moving images and text boxes around. There is the option to put HTML boxes on the screen though.
I've dragged an HTML box into the header section with:
<script type="text/javascript" src="
http://static.wowhead.com/widgets/power.js"></script><script>var
wowhead_tooltips = { "colorlinks": true, "iconizelinks": true, "renamelinks": true }</script>
Then I've place another HTML box that contained the example I found:
<a href="
Felstalker Bracers
" class="q3" rel="gems=23121&ench=2647&pcs=25695:25696:25697"></a>
What happens is that it "looks" right because the correct item name is displayed, but when you hover over it, there is no tooltip, and if you click on the link, it opens the page within the HTML box. I've also tried doing a direct item link within a text box, but all it does is turn it into a regular link with no tooltip.
As I'm sure it's obvious, I'm not very savvy with HTML, but I can usually feel my way around simple things - I was just really, really hoping someone would have some information or know where I can go to get help for this as I haven't found any references to anyone else with this same issue.
Post by
1213151
This post was from a user who has deleted their account.
Post by
integrale
Anyone in the 'know'
I have a problem on my site with wowhead tooltips, I installed the provided code and it was working perfectly until recently.
using w ww.wowhead.com/item=xxxxx the name and icon were appearing fine, but recently, it's just stopped working, nothing has changed as far as i know. like i said it just randomly stopped working
Im using phpbb3
Is there any problem with the tooltips at the moment or is it more likely to be something my end?
Just to confirm **It WAS working properly**
Post by
Kerosity
Anyone in the 'know'
I have a problem on my site with wowhead tooltips, I installed the provided code and it was working perfectly until recently.
using w ww.wowhead.com/item=xxxxx the name and icon were appearing fine, but recently, it's just stopped working, nothing has changed as far as i know. like i said it just randomly stopped working
Im using phpbb3
Is there any problem with the tooltips at the moment or is it more likely to be something my end?
Just to confirm **It WAS working properly**
I'm having the same issue. Not sure how to get it fixed. It was working previously on a site and then stopped working.
Post by
Justerin
Hi,
I noticed an issue (possibly, a bug?):
colorlinks
and
iconizelinks
won't work and will result in a JS error if
renamelinks
is set to
false
. It happens because on my environment there is nothing inside A tags but text, i.e.:
<a href="
http://www.wowhead.com/spell=114168">My
Tooltip</a>
while many styles and icons are applied to the first child of A tag. It's not a problem when
renamelinks
option is enabled, because links' innerHTML is automatically replaces then with text wrapped in
span
. But if I disable renamelinks I get this:
Uncaught TypeError: Cannot read property 'style' of undefined
The error comes from here:
if(wowhead_tooltips.iconizelinks&&(type==TYPE_ITEM||type==TYPE_ACHIEVEMENT||type==TYPE_SPELL)){t.children.style.marginLeft="18px";t.className+=" icontinyl";t.style.paddingLeft="18px !important";t.style.verticalAlign="center";t.style.background="url(//wowimg.zamimg.com/images/wow/icons/tiny/"+data.icon.toLocaleLowerCase()+".gif) left center no-repeat"}
Though the code is obfuscated, it's easy to see here that styles are assigned to first children of the link, even if there are no DOM nodes inside.
Is there anything can be done about that by Wowhead team to avoid the JS error? For instance, there could be verification whether there are another elements presents inside links and adding them otherwise (if
renamelinks
is set to
false
)
Post by
160934
This post was from a user who has deleted their account.
Post by
basementclev2
thanks for posting its very helpful.
http://www.thebasementguyscleveland.com
Post by
Miraurid
Hello everyone. I'm using tooltip script on my XenForo forum. But my forum color scheme is light and post area is white. So, basic items in my post being unseen. Any chance to colorize white items to black in light themed forums?
SS:
http://i.imgur.com/JLhbk2V.jpg
Post by
1264509
This post was from a user who has deleted their account.
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.