WoW - World of Warcraft Tooltips

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

Previous topic - Next topic

Garou

Sorry about that I had the wrong package-info.xml file in the package.   :o :-[

It should work just fine now.  ;)

gmarco

Hi, thanks for you quick reply ...

The mod install fine but I have a couple of problems...

http://img14.imageshack.us/img14/7367/problem2f.png [nofollow]

1) As you see the "wow" buttons are corrupted or mangled :-)
2) The mod is not able to display the wow tooltip ...

If it can helps I have installed smf in a smf subdir of the default site :

http://www.disturbia-guild.com/ [nofollow]

And I leave a test message in a place where you can see if you want :
Disturbia Guild -> Open Space -> Discussioni Generali -> Test WoWItems

So you can check what I mean ...

Garou

#142
The first page of this thread, the downloads page for the mod, and the readme.txt file in the package zip all contain many additional instructions for the mod. After looking at the raw source of your site I  see 2 primary issues that have been covered.

QuoteTo install the WoW - Tooltips mod on custom themes...

Copy the ./themes/default/images/bbc/wow.gif to the /images/bbc of your theme directory.

Open the themes ./index.template.php
add...
<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="wow/jquery-1.3.2.min.js"></script>
<script src="wow/wowhead_linker.js"></script></script>

before...
</head>

Open the themes /languages/Modifications.english.php
and add...
$txt['wow'] = 'WoW Tooltip';>
before...
</?>

I assume you haven't done this since on the custom theme you are using looks like...
// ]]></script>
</head>


It should be
// ]]></script>
<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="wow/jquery-1.3.2.min.js"></script>
<script src="wow/wowhead_linker.js"></script></script>
</head>


Also there are several issues that are in the section that may apply to your site....
QuoteKnown Issues:
For some users, if your forum is not in the root directory for your website this mod may not work correctly. Copying the wow folder found in yoursite.com/yourforum/wow to yoursite.com/wow will fix this in many cases.

Some hosts for security reasons will require you to set the file permissions (chmod) for the wow folder and the files within to 644 or rw-r-r.

Having Search Engine Friendly URLs turned on can cause the mod to fail.

Many web-hosts are using a utility known as ModSecurity to help protect the sites they host from hackers. Unfortunately ModSecurity is made overly secure and often can create false positives for many web programs including this one. You have have to contact your host and have them read http://blog.modsecurity.org/2007/02/handling-false.html. It will help them to create a personal rule for ModSecurity that recognizes the files in the wow folder as safe.

Since your forum is in www.disturbia-guild.com/smf/ the first issues listed states you may need to copy the wow folder to www.disturbia-guild.com/wow as www.disturbia-guild.com/smf/wow/ may not work especially since you are using Simple portal. Even if you get it to work right in forum its probably not going to work right in other portal functions such as blocks.

If you still cant get the mod to work after checking all of these issues let me know and Ill see if there is some other unknown issue.

gmarco

Sorry my fault I think that if the mod doesn't give any errors back during installation it patched everything by himself :-)

BTW it doesn't work the same but also make a very strange behaviour ... :-)
Text inside wow tag simply disappears ... ( probably after the fetching ? )
Pls check again the link :
http://www.disturbia-guild.com/smf/index.php?topic=148.msg481#msg481 [nofollow]


I have added the lines :
<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="wow/jquery-1.3.2.min.js"></script>
<script src="wow/wowhead_linker.js"></script></script>


in the right place in this way and using a absolute address like:
src="http://www.disturbia-guild.com/smf/wow/jquery-1.3.2.min.js"

I have copied the wow directory in main www folder ...
You can check also this using this link :
http://www.disturbia-guild.com/wow/ [nofollow]   (I have renamed the index.php to show files ... )

Any idea pls ? I have missed something ?

P.s
The button WOW is now ok :-))

gmarco

Parsing better the problem the result that wowhead give me back is :
<?xml version="1.0" encoding="UTF-8"?><wowhead><error>Item not found!</error></wowhead>

gmarco

Aaargh ... :-)

I found the problem. For the test I used the first obj I see in the game chat ... the problem is that this item doesn't exists in wowhead database with that name but with :

Aquatic Greatstaff + Random enchant ...

Infact now it works :-)

JBurlison

Hello im having some trouble with this mod there is nothig when i hover over the item, also the item is in grey and when i click on it, it just brings me to an XML:
http:// www. hxxp:royal-cerastae.com/wow/wowhead_wrapper.php?item=Lightbringer%20Faceguard [nonactive]

any idea? im using forum version SMF 2.0 RC2

Garou

gmarco, glad you got it working.  ;D

JBurlison, looking at you site you haven't made the changes to your custom theme. Read the first post of this thread and follow the instructions for installing on a custom theme there and also the known issues. After checking and following those instructions, if the mod still doesn't work let me know and Ill see if there is some other unknown issue.

gmarco

Quote from: Garou on January 09, 2010, 09:02:13 AM
gmarco, glad you got it working.  ;D

Yes thanks very much for your help ... next time I promise I'll read manual and post guideline before ask :-)

Thanks very much again :-)

JBurlison

#149
Im getting this error when i try to reload the page after applying the changes to the template:

Parse error: syntax error, unexpected '<' in .../Themes/raven/index.template.php on line 153

144:       }
145:       addLoadEvent(fPmPopup);' : '', '
146:       var ajax_notification_text = "', $txt['ajax_in_progress'], '";
147:       var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
148:    // ]]></script>';
149:
150:    // Output any remaining HTML headers. (from mods, maybe?)
151:    echo $context['html_headers'];
152:

153: <script src="hxxp:www.wowhead.com/widgets/power.js [nonactive]"></script>

154: <script src="wow/jquery-1.3.2.min.js"></script>
155: <script src="wow/wowhead_linker.js"></script> ';
156:
157:    echo '


I think its my theme "Raven" because your mod works with the defult theme

Garou

Try

// ]]></script>';

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];

echo '

<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="http://smf.balancegames.net/wow/jquery-1.3.2.min.js"></script>
<script src="http://smf.balancegames.net/wow/wowhead_linker.js"></script>

</head>


This will work on most Curve/RC2 based themes.

Entering the code the way you had it is generally needed for some custom themes on versions of SMF prior to 2.0 RC2. Most of those were by DzinerStudio and a handful of others, where the code looks like...
      // ]]></script>';

   echo '
</head>

...prior editing for this mod.

JBurlison

ahh worked like a charm thanks boss!

Garou


immix

Hi,

i installed your mod, but i only get tooltips working in the preview/reply view of an thread or if i am not logged in.
Any ideas?

Garou

Whats odd is on my test site and on my demo site I have set up tooltips created with the wow bbc dont work in the preview pane at all but they do display properly everywhere else including in the summary of previous post below. I'm curious as to why it is showing for you there.

Other then that it sounds like you might have some other mod conflicting with this one. Are you using one of the mods that show a preview of topics or links when you hover over them?  I never tested them with this mod but I know they did mess up DarkCloud14's WoW Itemstats when I was using that mod.

In any case a list of the mods on your site and a link to it might be helpful.

immix

I've got installed WoW Itemstats before, but uninstalled it completely.
List of installed Addons:

WoW Character Profiles    1.9.1 
AJAX Instant Quick Reply    1.0.2 
Separate Sticky and Normal Topic    1.0 
Aeva Media    1.0 Beta 1.1     
WoW - World of Warcraft Tooltips    1.2     
SMF Arcade    2.0.18

thx 4 your assignment

Garou

I know its not Aeva or the WoW character profiles as Ive used both on various sites before and Aeva is on the demo site Ive got set up right now.

A link to your site would help too. If its a configuration problem I can usually tell without ever setting an account up on the site. In the meantime Ill start testing the mods you have listed on my test server.

immix

Here the forum link: hxxp:ww.adrenaline.in/forum/index.php/topic,1137.msg14730.html#msg14730 [nonactive]

The login is mastered by a drupal cms (hxxp:ww.adrenaline.in/ [nonactive]).

thx 4 help ;)



Garou

Well I figured it out, you haven't made the changes for your custom theme, you dont have a copy of the wow folder in your root directory, and it looks like you have some form of search engine friendly urls turned on or maybe drupal is effecting this.

All of which can cause the mod to fail and is covered on the first post of the thread here, the download page for the mod, and the readme.txt in the mod.

First edit your themes index.template.php
if it looks like
// ]]></script>
</head>

Change to
// ]]></script>
<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="wow/jquery-1.3.2.min.js"></script>
<script src="wow/wowhead_linker.js"></script></script>
</head>


If it looks like...
      // ]]></script>';

   echo '
</head>

Change to
      // ]]></script>
<script src="http://www.wowhead.com/widgets/power.js"></script>
<script src="wow/jquery-1.3.2.min.js"></script>
<script src="wow/wowhead_linker.js"></script> ';

   echo '
</head>


If that doesn't fix it copy the wow folder from ww.adrenaline.in/forum/wow to ww.adrenaline.in/wow

If that doesn't fix it then open up ./Sources/Subs.php and change
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 />\' => \'\'));'),
),

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

This should get you around the SEF problem

After all of that if it still doesn't work attach your themes index.template.php and ./Sources/Subs.php and Ill see if I cant fix it for you.

Worst case scenario your host is running ModSecurity in which case you will need to contact them to about whitelisting the files in the wow folder.

immix

#159
thx 4 your advice, but didn't work @ all =/

attached 2 files, maybe you can find out whats wrong in my config

my hoster is hxxp:all-inkl.com [nonactive] (dunno if mod-security is running, but will check it out)

Update: hxxp:ww.adrenaline.in/phpinfo.php [nonactive] (can't find any mod-security informations...so think i don't strike the worst case ;))



Advertisement: