vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Add-On Releases - Wowhead Item tooltips for World of Warcraft (https://vborg.vbsupport.ru/showthread.php?t=163987)

sweede 04-10-2008 09:07 PM

You mean the icon you click when making a post to wrap the [item] tag around the selected text?

http://www.wowwiki.com/images/6/6e/I...head-22x22.png

but that should still work.

that is added to teh toolbar in the WoWhead - Adds Icon to toolbar plugin.

Sixpack 04-11-2008 12:55 AM

Sweede!

Nice mod, working well.. Just one query though - I am running a forum with a white backdrop, and was hoping that somehow I could edit the colour of the basic/low quality items, to a darker scale? At the moment they are coming up white (aka flasks, potions, leathers etc) and I would love if it could come up as a different colour, something more readable!!

Any Ideas? Help would be appreciated!!

ssslippy 04-12-2008 10:32 AM

One more request, can this mod also create the bbcode for spell linking. Wowhead already supports it however I appreciate how this mod doesnt require the item #.

sweede 04-12-2008 10:43 AM

Quote:

Originally Posted by ssslippy (Post 1488936)
One more request, can this mod also create the bbcode for spell linking. Wowhead already supports it however I appreciate how this mod doesnt require the item #.

https://vborg.vbsupport.ru/showpost....6&postcount=83

sweede 04-12-2008 10:57 AM

Quote:

Originally Posted by Sixpack (Post 1487940)
Sweede!

Nice mod, working well.. Just one query though - I am running a forum with a white backdrop, and was hoping that somehow I could edit the colour of the basic/low quality items, to a darker scale? At the moment they are coming up white (aka flasks, potions, leathers etc) and I would love if it could come up as a different colour, something more readable!!

Any Ideas? Help would be appreciated!!


I added a color "configuration" to this by adding CSS that overrides the wowhead default css.

vbulletin options -> wow head item stats

the common item color, i found that #444444 works well.

Hopefully it still overrides the imported CSS from the wowhead tooltip script.

KURTZ 04-13-2008 11:01 PM

Swede just wondering is it compatible onto 3.7.x?

sweede 04-13-2008 11:31 PM

havent had any issue with it.

KURTZ 04-14-2008 10:37 AM

OK thx Sweede :) i'll try ...

KURTZ 04-16-2008 03:01 PM

OK, just tested onto 3.7.x and it runs ... anyway i've a question Sweede, i don't understand the 'read me' file ... where i should do these edits?

sweede 04-16-2008 03:11 PM

There was a readme file?

you should only have had to import the XML file. the zip file attached was for something totally different

KURTZ 04-16-2008 03:26 PM

Quote:

Originally Posted by sweede (Post 1492213)
There was a readme file?

you should only have had to import the XML file. the zip file attached was for something totally different

yes there is a read me.html into your package ...

sweede 04-16-2008 03:31 PM

Quote:

[----------------------------------------------------------------------------]
[ For the EqDKP + vBulletin Users,
[ i've whipped up a quick script to add the wowhead power tooltips to your
[ EqDKP installation and makes use of the already cached item info from your
[ existing table provided by this mod.
[
[ The attached zip file will contain the php file you need to upload to the server
[ and the edits that are required to complete the changes.
[
[ Enjoy !
unless you are using EqDKP, you do not use the zip file.

ssslippy 04-17-2008 02:01 PM

I attempted to the EQDKP setup and it caused 500 server errors. I was unable to locate anything in the apache logs or the mysql logs.

The edits in the following are off and dont follow the pattern of the line they are replacing.
viewmember.code
viewevent.code
viewraid.code

KURTZ 04-21-2008 02:47 PM

Sweede is possible to implement an option which can allow the usage of this code only to a specific UG?

quarum 04-22-2008 01:33 PM

I have this working on my site - but it is not respecting the colors - it seems to take the colors from the sites defatul css and not from the WoWHead css.

Mouseovers work great - I love this - but would like the colors to display properly. Any thoughts?

My site is at www.argoswow.com

(and yes, I am a vBulletin noob - just switched the site over yesterday - so please be nice to me until I understand all this.)

Have fun!

sweede 04-22-2008 04:04 PM

you are of course refering to the pasting of wowhead item urls (http://www.wowhead.com/?item=29759) into the editor box as opposed to typing out [item]Ruby Slippers[/item] instead ?

I noticed this on my site to but havent had time to fully investigate it.

quarum 04-22-2008 04:09 PM

If I use [item]Ruby Slippers[/item] the mouse over works great - pops up with all the info, however the color is not being displayed purple, like the Epic is set to display. It is just holding the standard colors of my skin.

TruthElixirX 04-22-2008 10:00 PM

The EQdkp part is still broken, any help? I get this:

Code:


Warning: include_once(./vbulletin_wowhead.code) [function.include-once]: failed to open stream: No such file or directory in /home2/berserk/public_html/wow/tier6dkp/common.php on line 20

Warning: include_once() [function.include]: Failed opening './vbulletin_wowhead.code' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/berserk/public_html/wow/tier6dkp/common.php on line 20


sweede 04-22-2008 10:16 PM

Quote:

Originally Posted by TruthElixirX (Post 1496867)
The EQdkp part is still broken, any help? I get this:

Code:


Warning: include_once(./vbulletin_wowhead.code) [function.include-once]: failed to open stream: No such file or directory in /home2/berserk/public_html/wow/tier6dkp/common.php on line 20

Warning: include_once() [function.include]: Failed opening './vbulletin_wowhead.code' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home2/berserk/public_html/wow/tier6dkp/common.php on line 20



Sorry but that has nothing to do with my plugin.

sweede 04-22-2008 10:19 PM

Quote:

Originally Posted by quarum (Post 1496668)
If I use [item]Ruby Slippers[/item] the mouse over works great - pops up with all the info, however the color is not being displayed purple, like the Epic is set to display. It is just holding the standard colors of my skin.

Install this plugin,
https://vborg.vbsupport.ru/showthread.php?p=1496875

Update to 0.4.3 of Wowhead Item tooltips

Go to admincp ->options -> WoW item stats options -> enable debugging

Create a new post with an item in it ( [item]Ruby Slippers[/item] or http://wowhead.com/?item=33585 ).

go to admincp -> devlog , click on the wow item stats click, click on "wowhead_build_url"

that should look like
HTML Code:

<a class="q1" style="text-decoration: none; font-weight: bold;" href="http://www.wowhead.com/?item=34414" target="_blank">[Shattered Sun Banner]</a>

quarum 04-22-2008 11:21 PM

Okay - its working - but I have noticed that when you edit the post - that seems to be when it stops working.

Any thoughts?

Basically the first time I post - it is fine - if I go back and edit the post - then it seems to be defaulting back to the standard text colors of the theme. The only way to get it back is to delete the post and make a totally new post. Something in the formatting of the post when it gets edited might the culprit?

sweede 04-22-2008 11:53 PM

Please re-read the mod description. i added a note about your issue.

quarum 04-23-2008 11:03 AM

Perfect - thanks for everything!!!!!!!!!

TruthElixirX 04-23-2008 11:34 AM

Quote:

Originally Posted by sweede (Post 1496892)
Sorry but that has nothing to do with my plugin.

It does though, from your readme.html:


common.code
add
Code:
Code:

        include_once( $eqdkp_root_path . "vbulletin_wowhead.code");
after
Code:
Code:

        setcookie('herefirst', 'yes');


And the error is saying

Code:

Warning: include_once(./vbulletin_wowhead.code) [function.include-once]: failed to open stream: No such file or directory in /home2/berserk/public_html/wow/tier6dkp/common.php on line 20
Which means it cannot locate the file for some reason, and when I add the full path of the file it starts telling me it cannot redeclare functions. This is from the EQdkp add on.

sweede 04-23-2008 12:23 PM

wtf?

in the entire readme.html file, every instance of the characters php was changed to code :|

TruthElixirX 04-23-2008 01:34 PM

Quote:

Originally Posted by sweede (Post 1497210)
wtf?

in the entire readme.html file, every instance of the characters php was changed to code :|

Yeah...

I'm acrtually installing this on a EQdkp set up for someone else. I thought maybe there were different versions of EQdkp (as in perl, php, coldfusion, asp, etc ) and that the .code thing meant EQdkp would automaticlly replace it.

So, uh, should I uninstall it from the EQdkp setup?

sweede 04-23-2008 01:50 PM

change all references of .code to .php and it may work. you may have to do some additional work though depending on your specific eqdkp setup.

TruthElixirX 04-24-2008 10:54 PM

I'm now getting this error:

Code:


Fatal error: Cannot redeclare itemstats_parse() (previously declared in /home2/berserk/public_html/wow/tier6dkp/vbulletin_wowhead.php:139) in /home2/berserk/public_html/forums/includes/init.php(329) : eval()'d code on line 37


sweede 04-25-2008 12:38 PM

hmm.. i wrote the vbulletin_wowhead.php file quite some time ago, before i re-worked the item stats plugin.

I updated the plugin and the zip file, please try those.

TruthElixirX 04-26-2008 05:39 PM

New problem:

Code:

Parse error: syntax error, unexpected ')' in /home2/berserk/public_html/wow/tier6dkp/vbulletin_wowhead.php on line 38

Line 34-39:

Code:

function itemstats_parse($item)
{
        $o = new wowhead();
        $o->debug($item_name,"itemstats_parse");
        return $o->wowhead_parse($item));
}

I believe wowhead_parse($item)); needs to be wowhead_parse($item);.

I took out the extra ) and it now does this:

Code:


Fatal error: Cannot redeclare itemstats_parse() (previously declared in /home2/berserk/public_html/wow/tier6dkp/vbulletin_wowhead.php:34) in /home2/berserk/public_html/forums/includes/init.php(329) : eval()'d code on line 37


sweede 04-26-2008 08:33 PM

You didnt install the new XML file

TruthElixirX 04-27-2008 01:31 AM

Quote:

Originally Posted by sweede (Post 1500089)
You didnt install the new XML file

>.>
<.<

D'oh.


It appears to be working now. Thanks!

comicus 04-29-2008 04:58 PM

Hey there. I've been a big fan of this mod for awhile now!

does this work with 3.7? Thanks!

sweede 04-29-2008 05:01 PM

Yes, Now that 3.7 is out i will most likely create a new project thread in the 3.7 section also.

comicus 04-30-2008 02:36 AM

faaantastic! thanks. =)

BlackRabbit1971 05-01-2008 11:12 AM

Sweede, the .js has been updated and a forced reload of it by the end user is required before your addon will work again..

I'd sugest a change in your xml...

PHP Code:

<template name="wowhead_headerinclude" templatetype="template" date="1207639601" username="sweede" version="0.4.1"><![CDATA[<!-- WoWHead Mouseover-Tooltips -->
<
script src="http://www.wowhead.com/widgets/power.js" 

To:

PHP Code:

<template name="wowhead_headerinclude" templatetype="template" date="1207639601" username="sweede" version="0.4.1"><![CDATA[<!-- WoWHead Mouseover-Tooltips -->
<
script src="http://www.wowhead.com/widgets/power.js?lol" 

Can you think of a way to set something in Admin to force an update? rather than an xml update in future?



Anyone wanting to quick fix..

Under "Styles & Templates" go to the (WoW Head ItemStats Templates >> wowhead_headerinclude template and find

PHP Code:

<script src="http://www.wowhead.com/widgets/power.js" type="text/javascript"></script

Replace with:

PHP Code:

<script src="http://www.wowhead.com/widgets/power.js?lol" type="text/javascript"></script

(please note that you'll have to repeat this for each template you use)

I hope this helps... and thanks again Sweede for such a cool addon.

sweede 05-01-2008 01:05 PM

This isn't something that most people should ever have to do.

The browser cache should keep the power.js file up to date since the request for the file (should) always be http:://www.wowhead.com/widget/power.js . you can view your own browsers file cache and see that there (should) is only one copy of the above file and view it's last modified (downloaded) time.

Now, im not saying dont do this or you're wrong to do this, it's just that this isnt a reason to update the plugins XML file.

I also cannot find anywhere on the wowhead.com site that describes anything that wowinsider claims.

BlackRabbit1971 05-01-2008 03:01 PM

After taking a closer look, its true that the .js file will get renewed when it times out/ your browser fetches the new version. This can take time and if you have a user base that likes everything working and not have to wait then this is a quick fix and does work.. I do agree it isn't worth updating the xml.

The older cached js file won't break anything on your boards but it will not show any hover information either, stating that the item can't be found. :(

So, you have 2 options really, you can wait and eventually the .js file will be fetched by your users browsers and start working again YAY! or you can temp change the template and force your users browsers to download the new js file. I guess it all depends on what your users are like and how much they whine at you. lol

Deepdog009 05-03-2008 12:49 PM

Sweede I've been looking at the WOWhead javascript and I have a few ideas...

Let me test them and then I will post my findings here... L8ter;)

Danoxth 05-03-2008 10:49 PM

Just put this over to my 3.7 board and works a treat, however I do have one issue.

On the posting box the button which brings up instant Item tags does not have an image.

It appears as if its pointing to WoW Wiki, more specificly to "http://www.wowwiki.com/images/6/6e/I...head-22x22.png"

How would I go about editing this so I can have it pointing to an image on my own server?

Thanks for any help in advance!


All times are GMT. The time now is 07:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01537 seconds
  • Memory Usage 1,845KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (9)bbcode_code_printable
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete