News:

Wondering if this will always be free?  See why free is better.

Main Menu

WoW - World of Warcraft Tooltips

Started by Garou, March 28, 2009, 04:31:05 AM

Previous topic - Next topic

Garou

I know that it has been taking a while to connect to the power.js if you are using the one from Wowhead in your header. This can slow down the page loading times on your site when Wowhead is running slow or getting a lot of traffic.

You can sometimes speed things up by using the power.js included in the wow folder.

Go to your ./index.template.php and change...
<script src="http://www.wowhead.com/widgets/power.js"></script>

to...
<script src="http://your forum/wow/power.js"></script>

By default I use the one directly from Wowhead because you never know if or when they will revise the script. If they ever do it could break the mod on your site. They don't make that information public as they would prefer you to use the one on their site. The only reason it is included in the mod is because several people asked for it, to speed up the load times on their site.

Outside of that I rarely check the forums at Wowhead, I just dont have the time for it and it was always rare I found anything useful in their forums. Generally the tools they provide are awesome though, especially now that they work directly with Blizzard.

In any case I have no clue if or what problems they may be having, in the past they have had server issues due to poorly scripted advertisements slowing down their whole site. None the less the best place to look would be http://www.wowhead.com/forums

Aoife

must have been a glitch in their server because I checked it again a little while ago and the tooltips are working again.  o well....

Thrandil

Hellas,

I´ve a problem with the World of Warcraft Tooltips mod for SMF. When writing an itemname between [wow][/wow]
the mouseover effect does work, but the Item Name is not shown in the correct way.

You just see for example [Lightbringer Faceguard].

Does anybody know if I have to config something bevor this work correcty or can help to get this mod work?

sorry for my bad english

so long


Thrandil

Garou

Quote from: Garou on February 12, 2011, 01:42:02 PM
I have had it running on my guilds website for several months now, using RC4 and the current version of the mod.

The mod installs using some generic coding that works for most sites but sometimes you get better results by customizing it to run on your site.

Make sure the wow folder is in the root directory of your site, example yoursite.com/wow. Due to the limitations of SMF the mod can not place it there for you, as such it gets installed forums root directory which may not be the root for your site.

Using direct links to the wow folder in your themes ./index.template.php sometimes works better then the defaults. find and change to...
<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="http://yoursite.com/wow/jquery-1.3.2.min.js"></script>
<script src="http://yoursite.com/wow/wowhead_linker.js"></script></script>


./Sources/Subs.php also has a line that uses a generic link
'content' => '<b><a style="background-color:#303030" href="wow/wowhead_wrapper.php?item=$1" class="wowhead">[$1]</a></b>',

Change to...
'content' => '<b><a style="background-color:#303030" href="http://yoursite.com/wow/wowhead_wrapper.php?item=$1" class="wowhead">[$1]</a></b>',

After that it comes down to your hosts specifications for file permissions and applying that to the contents of the wow folder, usually 655 or 644 will work.

Customizing the mod to your site as outlined above will fix most possible issues. Checking the error log provided by your host (not the one in SMF) will usually tell you exactly what is wrong.

The one potential issue that there is nothing I can do to fix, depends on if your host is using mod_security along with certain rules sets. Some of the java code used in the mod to find an item by name or number and set the color of the link based on the items quality, triggers false positives as an injection script under certain rules for that program.

The codes used by this mod are completely safe and will not harm your site or their server in anyway. However as some malicious hackers out there sometimes use similar coding, some rule sets for mod_security will block the scripts the mod uses from running. You either have to get your host to white list the scripts in the wow folder as safe (the preferred method). You can also get them to turn off those particular rule sets but that can potentially open up your site to attacks by others.

The mod_security issues and fixes were posted long ago on their official blog. http://blog.modsecurity.org/2007/02/handling-false.html

Aoife

Quote from: Thrandil on June 30, 2011, 12:58:07 PM
Hellas,

I´ve a problem with the World of Warcraft Tooltips mod for SMF. When writing an itemname between [wow][/wow]
the mouseover effect does work, but the Item Name is not shown in the correct way.

You just see for example [Lightbringer Faceguard].

Does anybody know if I have to config something bevor this work correcty or can help to get this mod work?

sorry for my bad english

so long


Thrandil

I noticed this too when I was posting items that were in the PTR and WoWHead's PTR database and not in the main WoWHead.com database yet. I ignored it at the time and just posted the items using the correct item number. I don't know what needs to be done to fix the issue, if it's on Garou's side or on WoWHead's side. Essentially, I think what's happening is that the query on an item name is returning the incorrect item number which then displays the incorrect item name and tooltip.

Don't know if that helps you Thrandil, but it is something I've recently encountered myself. Hopefully Garou will get back to us on this soon.

:)



Garou

The Java Script in the mod isnt set up to use the PTR data and only searches the official site. If script cant find the item by name or number entered it tries to find something that is close.

This is the same problem that caused the mod to be updated to use item IDs as well as names because blizzard starting giving different items the same name. You may have wanted to post a rouges version of the item but the Warriors version was first on the list therefore in order to keep the mod working I had to add the code to search by item, which was provided by another user. Java Script just isnt my forte.

Aoife

Quote from: Garou on June 30, 2011, 01:54:06 PM
The Java Script in the mod isnt set up to use the PTR data and only searches the official site. If script cant find the item by name or number entered it tries to find something that is close.

That's kinda what I figured was happening. Thanks for the quick reply!    :D

Spovik

I'm having the same issue as Thrandil's post above.  When I attempt to use the [wow] tags, either by name or item number, nothing works.  The Wowhead script is working fine since mouseover direct links works, but if I use [wow]45868[/wow], i get a link to the wrapper, and it wont work.  The URL it links to is:

http://www.mysite.org/forum/wow/wowhead_wrapper.php?item=45868 [nofollow]

Any thoughts.

Garou

Like Ive said before the two biggest problems with this mod is mod_security and the inability of the package manager to put the wow folder in the sites root directory rather then the forum directory, is the hardest part to making this mod work out of the box. All I can do is refer to this post again.

Quote from: Garou on February 12, 2011, 01:42:02 PM
I have had it running on my guilds website for several months now, using RC4 and the current version of the mod.

The mod installs using some generic coding that works for most sites but sometimes you get better results by customizing it to run on your site.

Make sure the wow folder is in the root directory of your site, example yoursite.com/wow. Due to the limitations of SMF the mod can not place it there for you, as such it gets installed forums root directory which may not be the root for your site.

Using direct links to the wow folder in your themes ./index.template.php sometimes works better then the defaults. find and change to...
<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="http://yoursite.com/wow/jquery-1.3.2.min.js"></script>
<script src="http://yoursite.com/wow/wowhead_linker.js"></script></script>


./Sources/Subs.php also has a line that uses a generic link
'content' => '<b><a style="background-color:#303030" href="wow/wowhead_wrapper.php?item=$1" class="wowhead">[$1]</a></b>',

Change to...
'content' => '<b><a style="background-color:#303030" href="http://yoursite.com/wow/wowhead_wrapper.php?item=$1" class="wowhead">[$1]</a></b>',

After that it comes down to your hosts specifications for file permissions and applying that to the contents of the wow folder, usually 655 or 644 will work.

Customizing the mod to your site as outlined above will fix most possible issues. Checking the error log provided by your host (not the one in SMF) will usually tell you exactly what is wrong.

The one potential issue that there is nothing I can do to fix, depends on if your host is using mod_security along with certain rules sets. Some of the java code used in the mod to find an item by name or number and set the color of the link based on the items quality, triggers false positives as an injection script under certain rules for that program.

The codes used by this mod are completely safe and will not harm your site or their server in anyway. However as some malicious hackers out there sometimes use similar coding, some rule sets for mod_security will block the scripts the mod uses from running. You either have to get your host to white list the scripts in the wow folder as safe (the preferred method). You can also get them to turn off those particular rule sets but that can potentially open up your site to attacks by others.

The mod_security issues and fixes were posted long ago on their official blog. http://blog.modsecurity.org/2007/02/handling-false.html

If putting the wow folder in the root directory, changing the code to use direct links, oh and adjusting folder permissions doesn't work, then its a mod security issue and there isnt anything I can do to fix it. Sorry.

Spovik

I missed the direct link post and totally forgot about mod security.  I so hate it ><

Thanks for taking the time to respond though, it helped me rule out my own ineptitude, or at least the majority of it.  :)

Garou


Spovik

Thanks for the help.  After a quick response from my hosting company all is working great.  Were you ever able to find out how to get the links to work in the previews?

I saw the thread where you had someone who surprisingly had it working in their previews, though it didn't work on your test site.  I didn't know if you happened to figure it out.  Thanks a ton for maintaining this mod by the way.

http://www.simplemachines.org/community/index.php?topic=301619.msg2459473#msg2459473

Garou

No problem. The funny thing is I dont even play the game anymore and I'm not currently active in running any SMF site. :)

When I first started with this, the other mod hadn't been converted for 2.x (still hasn't and I dont think it ever will be, not even sure if it works for 1.x). I found a post on Wowhead about the scripts for this, which was originally written for VB and WP, there was also a tutorial on how to make the scripts work with the custom BBC mod.

The worst part was that Matt (aka Horus) had already taken everything off his site. I'm assuming it was due to all the complaints about it not working but in hindsight that was probably due to mod_security. I tracked down about a dozen websites that had the scripts running and contacted the admins about getting the scripts before I found one kind enough to share.

After that I figured it was better to just make a real mod out of it instead of having to go through the hassle of configuring it to work with the custom BBC mod. Besides making a BBC command for SMF is quite simple without the mod.

As for the previews, I never got around to fixing it. IIRC its only a 2.x issue and my guess is that there is a separate display template for them, I just never tracked it down. If Wowhead or SMF winds up changing something to where I have to update the mod again, I will probably track it down and include it.

Spovik

Thanks.  I was seeing if anyone happened to know off hand.  I'll do some digging over the weekend and if I find anything, I'll be sure to post back.  Thanks again for the help.

Zirc

Can anybody tell me if it would be difficult to adjust this mod to work with the new Torhead?  It's the wowhead equivilant for the new Star Wars MMO.

commonmind

I'm not sure if this will work for anyone else, but I thought I'd give it a shot.

I had the same issue as so many above; I followed the fix instructions and had no luck. After banging my head against this wall for a while, I decided to edit the URL's for my site links to include the www.

This fixed the issue for me.

0Connors

Hi,

After trying all your techniques I still can not display the item was on my forum using the [wow] [/ wow] tag tooltip does not appear and the links me to a page XML .. .

http://www.pafteam.com/wow/wowhead_wrapper.php?item=Claws% 20of% 20Shek'zeer

I do not understand why ...

Yet a simple link like this: http://fr.wowhead.com/item=86864/griffes-de-shek-zeer

Works perfectly.

An example of the two links:

http://pafteam.com/forum/index.php?topic=1580.0

Thanking you
Site : www.pafteam.com

Projet : www.pafteam.com/beta-test/maj-site/

Version SMF : 2.0.9

Warhaven

#277
Does the javascript break for anyone else during the preview?  I've run into this problem:

http://www.simplemachines.org/community/index.php?topic=490504.msg3437102#msg3437102

The class name is getting cut off for the link inside the preview div and breaking the javascript.


Nevermind.  I guess it's a known issue.  It happens with my own mod as well.  I made a mod that uses a jquery lightbox effect to display Pathfinder spells/magic items/feats/etc., and the forum is cutting off the css in preview for that as well.

[edit]

I'll keep working with my lightbox mod, and if I figure out where the forum is messing up the CSS, I'll let you know.

mroller

Hello WoW Tool Tips. I'm having a problem getting WoW Tooltips to install, it is giving me an error in this screen cap. It happens when I try to add this line of code.
Open the themes /languages/Modifications.english.php
and add...
Code: [Select]
$txt['wow'] = 'WoW Tooltip';>



Shambles

Well, open that file and remove the ">" character. Simple.

Advertisement: