News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

WoW - World of Warcraft Tooltips

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

Previous topic - Next topic

Fooz

Quote from: grammaton on August 11, 2009, 09:33:40 AM
Quote from: GarouHave you tried either of these two fixes.

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

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

Also is it working on the default but not a custom theme or not at all? If its not working on a custom theme, which one?
Yes i tried both, and its not working on the default template.

Internet Explorer error message:

Meldung: 'null' ist Null oder kein Objekt
Zeile: 5
Zeichen: 2
Code: 0
URI: http://*zensur*/wow/wowhead_linker.js

\\Grammaton

I'm actually getting the same error on my page. But here is what I'm experiencing.

wow items mod works fine on my boards.
I have simpleportal 2.2.2 as my front and here the BBC isn't working. Or well it makes the [itemname] tag but links to the wrapper instead.

As I said it works great on the forum boards just not on my front page. I even tried making the changes you suggested for cusom themes.

Garou

You sure you have the right jquery call?

<script src="wow/jquery-1.3.2.min.js"></script>

Until recently I had it listed as jquery-1.2.1.js forgetting that I had dropped the newest version of the script in the mod.

You might also want to enter the full path to the wow folder as well, ie... http://www.yoursite.com/forum/wow/jquery-1.3.2.min.js also for the wow/wowhead_linker.js. Sometimes that helps but it may increase the time it takes for the tooltip to actually pop up.

Fooz

#102
Quote from: Garou on September 01, 2009, 10:49:09 AM
You sure you have the right jquery call?

<script src="wow/jquery-1.3.2.min.js"></script>

Until recently I had it listed as jquery-1.2.1.js forgetting that I had dropped the newest version of the script in the mod.

You might also want to enter the full path to the wow folder as well, ie... http://www.yoursite.com/forum/wow/jquery-1.3.2.min.js also for the wow/wowhead_linker.js. Sometimes that helps but it may increase the time it takes for the tooltip to actually pop up.

As i stated, my wow itooltips are working fine on the forums. So yes i have the right jquery version :)

It's propably something to do with either simpleportal or the maybe jqlightbox version of jquery is messing with me...?

//Edit: disabling JQLightbox makes no diff.

Garou

go to the page in question and tell your browser to view the source. Then look for the </head> and see if and how the js files are listed there.

Ive got a feeling that SP might be using its own headers or its in a different folder which could also be causing the problem.

When I get home tonight I will also have to get the new version of SP because I think there will probably be issues with the new article and pages system they just put in too.

iosys

AAF [nofollow]

Garou

hmm well its all working fine for me on my test site and live site with the default theme. The only thing I haven't tested yet is using the portal in stand alone mode as I'm having issues with that unrelated to the mod.

Are you using a custom theme, do you have a link to the site?


Fooz

Quote from: Garou on September 04, 2009, 12:48:10 AM
hmm well its all working fine for me on my test site and live site with the default theme. The only thing I haven't tested yet is using the portal in stand alone mode as I'm having issues with that unrelated to the mod.

Are you using a custom theme, do you have a link to the site?

The <script> is just above my </head> so I dont really know what the problem should be. But here's the link http://www.enafos.dk/index.php

Garou

The only links I could find on your site were on the front page in some block at the top, which worked but I'm not sure if you are getting the data some other way for that block.

I still suggest trying to change...
<script src="/wow/jquery-1.3.2.min.js"></script>
<script src="/wow/wowhead_linker.js"></script>

to...
<script src="http://www.enafos.dk/wow/jquery-1.3.2.min.js"></script>
<script src="http://www.enafos.dk/wow/wowhead_linker.js"></script>


Fooz

Quote from: Garou on September 04, 2009, 07:29:36 AM
The only links I could find on your site were on the front page in some block at the top, which worked but I'm not sure if you are getting the data some other way for that block.

I still suggest trying to change...
<script src="/wow/jquery-1.3.2.min.js"></script>
<script src="/wow/wowhead_linker.js"></script>

to...
<script src="http://www.enafos.dk/wow/jquery-1.3.2.min.js"></script>
<script src="http://www.enafos.dk/wow/wowhead_linker.js"></script>


Just checked that out and still no go :/

Axodious

#109
Ok, so I'm running an SMF forum using 1.1.x and using the mod fine. However I just installed a 2.0 RC version of SMF and I am having the same issues all throughout this post where using a url link works but using the custom [wow] doesn't work (colored background and a link that forwards to the index). This is a fresh install (less than an hour old) ran through all the settings roughly copying from my other forum.

I've tried (I think) every attempt to fix it listed in this forum with no luck.

*EDIT*
Turns out the test domain I installed SMF 2.0 on was actually on a different server. Looks like it is a ModSecurity issue, will continue to look into it.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Garou

Have your host look at this http://blog.modsecurity.org/2007/02/handling-false.html

Its the best info I have found yet for getting around the rules for a particular file.

Axodious

#111
Quote from: Garou on September 08, 2009, 06:50:29 PM
Have your host look at this http://blog.modsecurity.org/2007/02/handling-false.html

Its the best info I have found yet for getting around the rules for a particular file.


Hmm, so when I turn on "Search Engine Friendly URLs" in SMF it seems to be messing up the [wow] links. Not ModSecurity (which is compiled into the server but not enabled).

*EDIT*
Not directly related to the mod but for a while my test forum was working with "Search Engine Friendly URLs" enabled but not allowing the [wow] links to work. Now it won't let me browse a category of the forum (e.g. main page -> General Discussion), it just sits there endlessly loading.

*EDIT #2*
Ok it seems that the endless loading is a bug with Chrome when switching Search Engine Friendly URLs from off to on (If I open the forum in a new tab after I turn it on it works). However, the bug still exists where if this option is enabled THAT is what is causing [wow] to not work for me.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Garou

Hmmm I just tested this apparently effects 2.x on Apache servers as well.

To be honest I don't have a clue whats causing this. I don't know enough about how SMF converts urls to their SEF format. The only thing I can think of is if SMF is using a Java Script to convert their urls it could be conflicting with one or both of the java scripts in this mod, neither of which were written by me as I don't really understand Java.

More over I never thought to test the mod with SEF turned on.
One because SEF only works on Apache Servers, which not everyone uses.
Two SEF really does nothing to improve Search Engine Optimization anymore. Almost all modern Spiders will search and index an SMF site just fine with or without SEF turned on.

I can get in to all kinds of reasons not to use SEF's but that's not what I am here for. Ill take a look and see if I can come up with something but this going to take a while while I tear apart SMF to see what its doing.




Axodious

Quote from: Garou on September 09, 2009, 08:11:54 PM
Hmmm I just tested this apparently effects 2.x on Apache servers as well.

To be honest I don't have a clue whats causing this. I don't know enough about how SMF converts urls to their SEF format. The only thing I can think of is if SMF is using a Java Script to convert their urls it could be conflicting with one or both of the java scripts in this mod, neither of which were written by me as I don't really understand Java.

More over I never thought to test the mod with SEF turned on.
One because SEF only works on Apache Servers, which not everyone uses.
Two SEF really does nothing to improve Search Engine Optimization anymore. Almost all modern Spiders will search and index an SMF site just fine with or without SEF turned on.

I can get in to all kinds of reasons not to use SEF's but that's not what I am here for. Ill take a look and see if I can come up with something but this going to take a while while I tear apart SMF to see what its doing.

I just turned it off once I figured out what it was, more or less just letting you know what the problem is; Hope you can get it fixed. ;)
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Axodious

#114
Found a new bug when creating an index page via SSI.php.

Several of the variables in the code are static and not dynamic, for example in the index.template.php you have <script src="wow/jquery-1.3.2.min.js"></script>. This is fine unless you are using a file that isn't in the forum root. I have a domain and in the domain is /forum where the SMF forum is, also in the root of that domain I have an index.php which is using SSI.php. If I copy the entire wow dir to the domain root it works fine, but there should be a variable you can put to say that it's in the root of the forum dir.

I believe you can change <script src="wow/jquery-1.3.2.min.js"></script> to <script src="' . $boardurl . '"/wow/jquery-1.3.2.min.js"></script>. However there are some settings in the Javascript that are doing the same thing and I don't know how to change them.

*UPDATE*

$boardurl hasn't been globaled at that point and I'm not sure if it's safe to global it.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Garou

I'm in the process of rewriting the mod  for RC2 as there are a couple places that I hook the bbc code to that have moved or changed. Ill see what I can come up with. A similar suggestion was made by SunKing before I just haven't had the time to look into it as Ive been doing the updates for the Custom Form Mod lately and that alone is eating up most of my spare time.

As far as the java script goes, I'm not sure what to do about that, I have no java experience, I just borrowed the original script and the author abandoned it long before that. He really didn't care for the way it worked himself but unfortunately nobody has come up with anything better yet.

When I put it all together it was a custom job for a friends guild site (which has since disbanded) and I thought it would be nice to share with the rest of the community. The really nice thing about it is that its portable and can be worked into just about any type of forum software, Wordpress and a few other things pretty easily. The only thing I wrote for it was the BBC and the install package both of which were fairly easy. I never would have thought there would be so many odd glitches with it.  :(

Axodious

After doing some digging it isn't part of the Javascript that is also not dynamic, it's the code in the Subs.php.

<add><![CDATA[
array(
'tag' => 'wow',
'type' => 'unparsed_content',
'content' => '<b><a style="background-color:#303030" href="wow/wowhead_wrapper.php?item=$1" class="wowhead">[$1]</a></b>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
),
]]></add>


The href="wow/wowhead_wrapper.php?item=$1" needs to be similar to what I said about the script inclusion. Again $boardurl isn't globaled at that point in Subs.php and I'm not sure how safe it is to global it. However when you do add $boardurl to these 2 places with them globaled it works.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Axodious

Quote from: Fooz on August 31, 2009, 07:39:51 AM
Quote from: grammaton on August 11, 2009, 09:33:40 AM
Quote from: GarouHave you tried either of these two fixes.

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

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

Also is it working on the default but not a custom theme or not at all? If its not working on a custom theme, which one?
Yes i tried both, and its not working on the default template.

Internet Explorer error message:

Meldung: 'null' ist Null oder kein Objekt
Zeile: 5
Zeichen: 2
Code: 0
URI: http://*zensur*/wow/wowhead_linker.js

\\Grammaton

I'm actually getting the same error on my page. But here is what I'm experiencing.

wow items mod works fine on my boards.
I have simpleportal 2.2.2 as my front and here the BBC isn't working. Or well it makes the [itemname] tag but links to the wrapper instead.

As I said it works great on the forum boards just not on my front page. I even tried making the changes you suggested for cusom themes.

You are most likely having the same issue I am currently talking with Garou about.

He said to change the <script> on your main site to <script src="http://www.enafos.dk/wow/wowhead_linker.js"></script>, he was on the right track but I'm going to assume that your forum isn't in the root of your website but most likely in a sub directory such as http://www.enafos.dk/forum/. If you copy the wow directory from your forum into the root of your website it should work. So if it was in http://www.enafos.dk/forum/wow/ copy it to http://www.enafos.dk/wow/.
"You make my heart pound; my mouth water. Yeah, there's nothing like a chili dog." Sonic the Hedgehog

Garou

that was going to be my next sugestion. Drop the wow folder in the root directory and adjust the calls in the header to point directly to the folder.

skullmonkey

#119
How do I change that the background gets the forum color? I get some dark gray color.

Advertisement: