This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Classic Theme
Thottbot Theme
Missing codes for item enhancements for Wowhead tooltips
Post Reply
Return to board index
Post by
Morwo
how can i code these Item Enhancements (Permanent) like
http://www.wowhead.com/?item=44136
,
http://www.wowhead.com/?spell=50963
and
http://www.wowhead.com/?spell=55628
like in this one
<a href="
http://www.wowhead.com/?item=32474"
rel="ench=3003&gems=32409:31865" class="q3">Surestrike Goggles v2.0</a>
i can´t find these code numbers.
and is there a code to let
http://wotlk.wowhead.com/?achievement=277
be achieved?
Post by
Morwo
finaly, i made it
<a rel="&ench=3811&gems=40119&pcs=48647:48650&lvl=80&c=2" href="
http://de.wowhead.com/?item=48647"
style="font-family: Verdana,sans-serif;" class="q4">Liadrins Schulterschützer des Triumphs</a>
but i`m still loking for the code to let achievements like this
http://wotlk.wowhead.com/?achievement=277
be achieved.
Post by
Malgayne
Skosiris has kindly informed me that the modifier is:
rel="who=Malgayne&when=1232962620000"
If you need help with the timestamp (as I did), you can use this javascript function:
(new Date('December 16 2009')).getTime()
or just use
this website
. :)
Post by
TheOnyx
What, everyone doesn't have the number of seconds since Jan 1st, 1970 memorized? :)
Post by
Wanderingfox
mmm epoch time :3 This is where one of
these
comes in handy.
Post by
Erorus
Skosiris has kindly informed me that the modifier is:
rel="who=Malgayne&when=1232962620000"
You guys know that sprintf isn't standard javascript and isn't in power.js, right? That's why completed achievements never worked.
if (y.who && y.when) {
av = av.replace("<table><tr><td><br />", '<table><tr><td><br /><span class="q2">' +
sprintf
(I.tooltip_achievementcomplete, y.who, y.when.getMonth() + 1, y.when.getDate(), y.when.getFullYear()) + "</span><br /><br />");
av = av.replace(/class="q0"/g, 'class="r3"')
}
edit
Not to mention, you never define tooltip_achievementcomplete.
Post by
Morwo
sounds cool,
but i`m still loking for the code to let achievements like this
http://wotlk.wowhead.com/?achievement=277
be achieved.
Post by
Malgayne
See my post above. It would look like this:
<a href="
http://www.wowhead.com/?achievement=277"
rel="who=Malgayne&when=1232962620000">'Tis the Season</a>
Post by
Erorus
Malgane
, dude, I'm telling you,
completed achievements don't work with the Powered By Wowhead script
. The reason is that you don't have sprintf defined in power.js. You have it defined in your global.js (which is why it works here on Wowhead).
Look here.
View the source. No tricks, it just doesn't work.
Post by
Skosiris
Erorus, we have the bug documented -- fear not :)
Post by
Morwo
hurray, just kidding
im awaiting it patiently ö,ö
Post by
TheOnyx
We've pushed a fix for this issue. The following syntax should now work:
<a href="
http://www.wowhead.com/?achievement=277"
rel="who=Malgayne&when=1232962620000">'Tis the Season</a>
Post by
Morwo
awesome, thx to you
Post Reply
You are not logged in. Please
log in
to post a reply or
register
if you don't already have an account.