This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Tooltips: Character Profiles not working
Post Reply
Return to board index
Post by
rixius
Trying to hover for the tooltip for a link that goes to a profile results in the following error:
ReferenceError: Can't find variable: g_getProfileIcon
Here's the code from
http://www.wowhead.com/profile=us.blackwater-raiders.kyllai&power::
$WowheadPower.registerProfile('us.blackwater-raiders.kyllai', 0, {
name_enus: 'Elder Kyllai',
icon: g_getProfileIcon(11, 6, 1, 83, '40983890', 'medium'),
tooltip_enus: '...'
});
Looks like you're using a function that you used to use to load an icon. compare to an item script from
http://www.wowhead.com/item=55023&power::
$WowheadPower.registerItem('55023', 0, {
name_enus: 'Hardened Obsidium Helm',
quality: 3,
icon: 'inv_helmet_plate_cataclysm_b_02',
tooltip_enus: '...'
});
Looks like it needs to simply put a string there instead of calling a function?
Post by
TheOnyx
Thanks for pointing this out. We'll take a look.
Post by
rixius
Thanks, that's what I'm looking for.
I'm a professions Web Developer who specializes in JavaScript, if I could take a look at the pre-minimizing, I would love to suggest some optimizations.
With Thanks,
- Stephen Middleton
Post by
Koper
In what page are you getting this error?
Post by
rixius
It happens when using the profile links on an external page with the "powered by wowhead"
My usages are here:
http://wowtimes.tumblr.com
but the same error happens at
http://leafhead.tumblr.com
and the demo site you link to.
Post by
rixius
Quick fix for anyone who needs this working you can add the following before you add power.js:
<script type="text/javascript">
function g_getProfileIcon(){
return "";
}
</script>
this will add the missing function and fake a response that it wans; you still won't get an icon for the caracter in question but it will still show the tooltip, as seen on
wowtimes.tumblr.com
.
Post by
TheOnyx
We pushed a proper fix for this live just now.
Post by
LentzRose
=( still no fixy why god why do u hate us lol
Post by
rixius
Thanks for getting this fixed Onyx!
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.