vb.org Archive

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

jluerken 02-19-2009 11:59 AM

Is there a way to get a working version for php 4.3.x ?

y2krazy 02-23-2009 08:31 PM

For some reason, the tooltips are not showing up. Any ideas as to why the item is pulled correctly, links to the correct Wowhead URL and gets colored properly, but no tooltip shows up? Thanks.

The latest .zip file released is missing some files, including power.js compared to the older .zip file. Am I missing some files if I only downloaded the newest .zip?

~ Sean

sweede 02-23-2009 09:18 PM

Don't check "Local power.js"

if you really want to, you can download the power.js from wowhead.com (http://www.wowhead.com/widgets/power.js) and put it in your clientscript folder.

y2krazy 02-26-2009 06:37 PM

Quote:

Originally Posted by sweede (Post 1752686)
Don't check "Local power.js"

This didn't solve my issue. I still do not see a tooltip when hovering over an item link.

~ Sean

sweede 02-26-2009 07:58 PM

URL to example post ?

y2krazy 02-26-2009 08:56 PM

Quote:

Originally Posted by sweede (Post 1755477)
URL to example post ?

The board I use is a dev board, which is always closed. Umm... for a general overview:

The item gets processed fine. The color of the text is correct (purple for epic, etc.). The item name is right. The item link on Wowhead is right. The ONLY issue is that the item tooltip (like on some other sites) does not popup when you hover over the item. That is the only problem I am having.

Thanks.

~ Sean

sweede 02-27-2009 01:50 AM

view page source, search for power.js and paste that here.

y2krazy 02-27-2009 10:32 AM

Hmph. I just checked the link from home and it seems to work just fine. Maybe it's an issue with some out-of-date software on my work PC. >.>

~ Sean

Bumpaneer 03-16-2009 07:10 PM

Is there any way that this mod could respect the subdomain of wowhead that is being referenced? For example, when a link is made to something on the PTR section of wowhead (http://ptr.wowhead.com/?item=45440), this addon causes that link to get messed up if the item does not exist in the normal wowhead database (it gets translated to http://www.wowhead.com/?item=45440). Ideally the addon should respect the subdomain of the link I enter, keeping ptr.wowhead.com instead of replacing it with www.wowhead.com

sweede 03-16-2009 09:15 PM

Quote:

Originally Posted by Bumpaneer (Post 1769901)
Is there any way that this mod could respect the subdomain of wowhead that is being referenced? For example, when a link is made to something on the PTR section of wowhead (http://ptr.wowhead.com/?item=45440), this addon causes that link to get messed up if the item does not exist in the normal wowhead database (it gets translated to http://www.wowhead.com/?item=45440). Ideally the addon should respect the subdomain of the link I enter, keeping ptr.wowhead.com instead of replacing it with www.wowhead.com

Currently this is intended.

I will have to change how that whole URL to itemcode thing works to allow urls like ptr.wowhead.com to work.

however, it will also allow people to properly use wowhead links for spells, quests, etc; so it'll be a couple days before i get the new code written.

4yBak 03-31-2009 03:08 PM

how I can add support for russian language (Default Wowhead item link langauge). An example russian link from wowhead - http://ru.wowhead.com/?item=40194

sweede 04-02-2009 01:02 AM

Quote:

Originally Posted by 4yBak (Post 1781128)
how I can add support for russian language (Default Wowhead item link langauge). An example russian link from wowhead - http://ru.wowhead.com/?item=40194

sorry, tons of horrible pc issues. i'll get that updated tomorrow though.

4yBak 04-04-2009 10:00 AM

I receive 2 times this error using your modification:
Code:

Database error in vBulletin 3.8.1:

Invalid SQL:
 SELECT * FROM itemstat_cache WHERE id like http://ru.wowhead.com/?spell=23214;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '://ru.wowhead.com/?spell=23214' at line 1
Error Number  : 1064
Request Date  : Friday, April 3rd 2009 @ 05:26:20 PM
Error Date    : Friday, April 3rd 2009 @ 05:26:20 PM
Script        : http://forumlink/newthread.php?do=postthread&f=5
Referrer      : http://forumlink/newthread.php?do=newthread&f=5


bigcurt 04-16-2009 01:18 AM

How is this looking?

y2krazy 04-16-2009 01:50 PM

Quote:

Originally Posted by bigcurt (Post 1792124)
How is this looking?

Works fine on 3.8.1.

~ Sean

pooslokka 04-18-2009 07:56 AM

what is this mod really, all sample / screen shot links are not working :(

Juravieal 04-20-2009 10:45 PM

What would cause the item popups to work perfectly in one thread, and not in another? Same forum, posted by the same user. Im at a loss here.

J.Walter 04-21-2009 01:10 PM

Quote:

Originally Posted by Juravieal (Post 1795575)
What would cause the item popups to work perfectly in one thread, and not in another? Same forum, posted by the same user. Im at a loss here.

Same here :(

tatu 05-07-2009 04:42 PM

Hello, i'm french and i have installed this script. And i have a little problem with some special caracter.
I have search a little, and there is a compatibility problem from UTF-8 to ISO-8859-1.
i put the original link of wowhead : http://fr.wowhead.com/?item=40071

sweede 05-24-2009 07:51 PM

I updated to add Russian support and made an attempt to allievate database queries and any perceived load issues from it.

Multiple language support will not work with 0.6.0 !!

Tatu, I do not have any control over the display of the tooltip.

sweede 05-24-2009 07:53 PM

Quote:

Originally Posted by 4yBak (Post 1783587)
I receive 2 times this error using your modification:
Code:

Database error in vBulletin 3.8.1:

Invalid SQL:
 SELECT * FROM itemstat_cache WHERE id like http://ru.wowhead.com/?spell=23214;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '://ru.wowhead.com/?spell=23214' at line 1
Error Number  : 1064
Request Date  : Friday, April 3rd 2009 @ 05:26:20 PM
Error Date    : Friday, April 3rd 2009 @ 05:26:20 PM
Script        : http://forumlink/newthread.php?do=postthread&f=5
Referrer      : http://forumlink/newthread.php?do=newthread&f=5


I do not support anything but items at this time.

if you need to link a spell, using the URL tags will work, do not use item tags.
HTML Code:

[url=http://ru.wowhead.com/?spell=23214]Spell [/url]

sweede 05-26-2009 11:26 PM

just a quick update,

I do have a rudimentary spell, quest, achievement support worked out.

There may be a bbcode tag for this but i don't think i'll have one.

There is no reliable, accurate method to get a proper spell ID from a keyword (for example, search wowhead.com for `Blood boil' )

Achievements are the same way.

Yes yes i know that someone write a rather complex set of "interfaces" to pull stuff from wowhead but i want something light that requires very little configuration and maintenance.

Support for spells etc will be done by pasting wowhead URLs.

The lookup is done and the name is retrieved and stored for so that it doesnt keep hitting wowhead for lookups.

HolyKiller 05-28-2009 06:14 AM

2 Sweede: Excelent!! Finally i have no problem with loading page with a LOT items in posts. I tried to send post with 200 items. Post sending took about 10s. Any another post show is loaded almost instantly.

4yBak 06-01-2009 07:55 AM

version 0.6.0 don't work with russian links, for example I put link http://ru.wowhead.com/?item=45244 and then this url convert to next code:
[url=http://ru.wowhead.com/?item=45244][code][/code][/url]

and when I use code [ITEM]Наголенники молниеносной расправы[/ITEM] I was receive an error:
Code:

12:06:49 called in wowhead_item::start:415 Item not found!

sweede 06-01-2009 09:09 AM

Russian text is getting mangled in php / vbulletin on my test server. I don't think php is compiled with proper support for russian characters.

i won't be able to get to that one just yet, sorry :(


However, about the memory load on the improved cache..
I write a script to crawl wowhead and import tons of items, and modified my code a little bit to show memory used before the cache variable is created and after.

Number of Rows: 12483
05:06:13 called in wowhead_item::CreateCache:54 Memory before: 3,782,776
05:06:14 called in wowhead_item::CreateCache:65 Memory after: 9,260,188 ( 5,477,412)


12480 items using 5.4mb of memory or 438 bytes per item. I don't consider this to bad since most databases will only have 400-500 items, maybe 1,000, which would put memory around 440k

Going to push through and crawl item IDs up to 55,000 and see how large i can make this.

HolyKiller 06-01-2009 06:17 PM

2 sweede: One of my users found this bug:

If you have some hyperlinks to wowhead in post and use WYSWIG editor, after save changes the wowhead links are totaly broken.

Try next steps:

- Post new post like this:
HTML Code:

[URL="http://wowhead.com/?faction=1011"]Wowhead[/URL]
[URL="http://google.com"]Google[/URL]


- Then edit this post (ajax or advanced edit, it doesn't matter) with WYSWIG enabled and save it again.

- After this, you get post with this exactly:
Code:

fhioasdfhosdfsad
Google


Can you look at this please? Lot of users on my forum wrote a very nice guides with many hyperlinks to wowhead, so when someone edit post in WYSWIG and save it, ALL of them will be lost :(


Thanks

Holy

sweede 06-01-2009 06:25 PM

Disable WYSIWYG for now, and go to (provided you are admin and can make yourself superadmin in the config file) Execute SQL Query,
from the automatic query select "Show Standard Editor Toolbar"

Some of that is fixed in 0.6.0

the rest will be fixed when i upload 0.6.1

Update.

HolyKiller 06-02-2009 09:08 AM

2 sweede: Upgraded to 0.6.1 and links now stay OK, but the text are changed by Wowhead title.

Use this:
HTML Code:

[url=http://www.wowhead.com/?faction=1011]click me[/url]
and after edit in WYSIWYG you get this:
HTML Code:

[url=http://www.wowhead.com/?faction=1011]Lower City[/url]
Anyway thanks again for fastest fix previous bug :)

EDIT: Sorry, i see, this is a new feature. Looks cool and works fine for achivs, spells, quests, ... etc. EXCELENT!!

But, bad thig is what i wrote before edit. Modifing ALL the hyperlinks text not good in some case. So, maybe limit that for links inside some TAGS will be better ... like a

[ITEM]http://www.wowhead.com/?quest=10985[/ITEM] -> this will be autohyperlinked to [A Distraction for Akama]. I know, this is not a "item" exactly, but it is easiest way for users ... ONE TAG do LOT of MAGIC :)

BTW: Please add brackets ( "[" and "]" ) in autohyperlink

4yBak 06-02-2009 09:38 AM

version 0.6.1
1) links like http://ru.wowhead.com/?faction=935 work perfect (without any errors and russian link names also displayed correctly)
2) if I post 2 different wowhead (english) links I see a bug with wrong link names (I was use standart editor). Example:
posting
Code:

http://www.wowhead.com/?item=28742
http://www.wowhead.com/?item=39216

and after saving this post I see next:
Code:

[Pantaloons of Repentance]
[Pantaloons of Repentance]

where first link for [Pantaloons of Repentance] correctly show tooltip for link for item http://www.wowhead.com/?item=28742 and has correct link name, but for link http://www.wowhead.com/?item=39216 I see also correct tooltip but wrong link name.
When I add one more links - it's also use link name from previous wowhead link.

sweede 06-02-2009 10:53 AM

Quote:

Originally Posted by 4yBak (Post 1821907)
version 0.6.1
1) links like http://ru.wowhead.com/?faction=935 work perfect (without any errors and russian link names also displayed correctly)

It's hard for me to test any type of character set like russian or any type of chinese/korean language. The next release will have a slightly different way of debugging that will make it easier to debug strange bugs such as..
Quote:

2) if I post 2 different wowhead (english) links I see a bug with wrong link names (I was use standart editor). Example:
posting
Code:

http://www.wowhead.com/?item=28742
http://www.wowhead.com/?item=39216

and after saving this post I see next:
Code:

[Pantaloons of Repentance]
[Pantaloons of Repentance]

where first link for [Pantaloons of Repentance] correctly show tooltip for link for item http://www.wowhead.com/?item=28742 and has correct link name, but for link http://www.wowhead.com/?item=39216 I see also correct tooltip but wrong link name.
When I add one more links - it's also use link name from previous wowhead link.
I noticed some other odd behavior and i was working on a replacement, but i think i'll just quickly fix this and rewrite the entire class for a 0.7.x series.

sweede 06-02-2009 10:58 AM

Quote:

Originally Posted by HolyKiller (Post 1821899)
2 sweede: Upgraded to 0.6.1 and links now stay OK, but the text are changed by Wowhead title.

Use this:
HTML Code:

[url=http://www.wowhead.com/?faction=1011]click me[/url]
and after edit in WYSIWYG you get this:
HTML Code:

[url=http://www.wowhead.com/?faction=1011]Lower City[/url]
Anyway thanks again for fastest fix previous bug :)

EDIT: Sorry, i see, this is a new feature. Looks cool and works fine for achivs, spells, quests, ... etc. EXCELENT!!

Ya, it should overwrite whatever name you try to give it to its correct warcraft name. But there are issues with it and since i hacked a lot of the code together it's difficult to fix. I need to re-think and re-write most of the code.

Quote:

But, bad thig is what i wrote before edit. Modifing ALL the hyperlinks text not good in some case. So, maybe limit that for links inside some TAGS will be better ... like a

[ITEM]http://www.wowhead.com/?quest=10985[/ITEM] -> this will be autohyperlinked to [A Distraction for Akama]. I know, this is not a "item" exactly, but it is easiest way for users ... ONE TAG do LOT of MAGIC :)

BTW: Please add brackets ( "[" and "]" ) in autohyperlink
I was looking at making something like..

[item=faction]Lower City[/item] or
[item=quest]10985[/quest]

which would return what you would expect.

HolyKiller 06-02-2009 12:58 PM

Yea your idea is perfect.

/target Sweede
/bow

Thanks :)

etzero 06-12-2009 04:00 PM

Does anyone else see a 30 sec delay when Wowhead is down for maintenance?

When I try to refresh pages, even those that have no wowhead links, the page hangs and on the bottom left it says "looking up wowhead.com" or something similar. Eventually it times out and the page loads. This only happens when wowhead is down or under maintenance.

4yBak 06-14-2009 07:00 PM

etzero, I confirm it too.

sweede 06-15-2009 06:20 PM

the zip package should include a power.js file to upload and there is a vbulletion option to change to use power.js locally instead of getting it from wowhead

paulomt1 07-26-2009 07:55 PM

very nice mode :) ty

any news about quest and spell feature?

rstan 09-08-2009 10:28 PM

have been using this for a couple years. just switched to wowhead-tooltips.com, there is no vb integration can be integrated just like itemstats instructions. everything works except for the profile tab which is just showing name, guild icon and not the full table thats parsed into in the database. there is integration for everything but vb for some reason. maybe sweede can hook it up??? it basicly does item, spell, achievements, armory profile, quests, npc, item sets and guild tags.

abouthere 09-25-2009 09:41 AM

rstan - I have also been using the tooltip mod you mention for quite a while, albeit on a PHPBB forum. I've been looking for the same thing on vB but not yet found it...

ArcVieh 11-12-2009 01:23 PM

I come from germany and my vB 3.7.1 is utf-8, the database too. If i use the german locale in the addon, there are problems with '????' in the linked itemnames.

Example: Muster: Sch?rpe der uralten Kraft => [ITEM]45102[/ITEM]

PHP Code:

Table:  itemstat_cache
Name
MusterSch
htmltooltip
: <table><tr><td><class="q4">MusterSch 

Where is the problem?

k, i fixed:
Quote:

$xmlobj->parse('utf-8');
Thx

sweede 11-12-2009 02:07 PM

Thanks for fixing the issue :)

http://dramaloot.com/forums/f74/test-8670/

in just a second i'm going to upload a minor update which will allow you to specificly the language of an item.

[item=de]41502[/item] will show you the german name of the item ID.

Also supports PTR wowhead finally (only in english)

[item=ptr]49968[/item]

[item=ptr]Chilled Heart of the Glacier[/item]


All times are GMT. The time now is 03:24 PM.

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.01731 seconds
  • Memory Usage 1,852KB
  • 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
  • (8)bbcode_code_printable
  • (6)bbcode_html_printable
  • (1)bbcode_php_printable
  • (12)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