This site makes extensive use of JavaScript.
Please enable JavaScript in your browser.
Live
PTR
10.2.7
PTR
10.2.6
Beta
Add Wowhead tooltips to your forums or CMS.
Return to board index
Post by
Talonos
ok i'd check your sql database and see what your wowhead_cache is actually called because for some reason i see it looking for 'asgardda_forum.wowhead_cache' when usually the configs actually just input the info into 'wowhead_cache' in your database have a look at your config.php at the bottom and make sure it says define('WHP_CACHE_TBL', 'wowhead_cache'); // main cache table
define('WHP_CRAFT_TBL', 'wowhead_craftable'); // craftable table
define('WHP_CRAFT_REAGENT_TBL', 'wowhead_craftable_reagent'); // table for reagents of craftable
define('WHP_CRAFT_SPELL_TBL', 'wowhead_craftable_spell'); // craftable spells
define('WHP_ITEMSET_TBL', 'wowhead_itemset'); // itemset table
define('WHP_ITEMSET_REAGENT_TBL', 'wowhead_itemset_reagent'); // itemset reagent table
define('WHP_GEM_TBL', 'wowhead_gems'); // gem table
define('WHP_ENCHANT_TBL', 'wowhead_enchants'); // enchant table
if it that exact text it should actually find your sql info aslong as you inputed the create_table.php but if u edited your config.php AFTER you used create_table.php the error your recieveing now happens, check your sql db first to see how its been inputed first
also the enlarged font on your forum could be happening because of the sql error so fixing the sql first might fix that error but if not hit me up again and i'll look into it for you
Post by
60445
This post was from a user who has deleted their account.
Post by
Talonos
don't run create_table.php via any program just direct your browser to create_table.php on your website and it will run its commands into your sql database
ok i've actually just done it for you, all u needed to do was run that file by the looks of it, if u could test it out for me, but hopefully thats all it was
Post by
337872
This post was from a user who has deleted their account.
Post by
60445
This post was from a user who has deleted their account.
Post by
Talonos
cssux the reason u might be having problems is wowhead itsself, russian compatability isn't 100% yet wowhead are still working on some issues with the russian side of the site and until then errors will occur, u can help the wowhead item tooltip script thou by sending crackp0t your itemcache.wdb so then he could get it working a little better for the russian players of the world
the itemcache.wdb file will help u link the item directly instead of using a search function which in makes it a lot more constistant, so sending that file to crackpot via the email provided on his website will be a HUGE jump for the russian community,
Post by
Talonos
Ah thanks Talonos, that now works. Thank you very much. Could you link the directory to get that to work for if i need that in the future as i couldn't get this to run whatsoever from any url.
the link u should have been using to run the sql script was in
http://www.asgard.darkstargamers.com/forums/wowhead/create_table.php
not in
http://www.asgard.darkstargamers.com/html/forums/wowhead/create_table.php
where u was trying to run it from
Post by
Lockslap
Hi!
I have installed itemstats for phpbb. And i have problem with support of Russian language.
I think that problem is in this place.
File wowhead.php
function wow_url($lang)
{
switch ($lang)
{
case "en":
return '
http://www.wowhead.com';
case "de":
return '
http://de.wowhead.com';
case "fr":
return '
http://fr.wowhead.com';
case "es":
return '
http://es.wowhead.com';
case "ru":
return '
http://ru.wowhead.com';
default:
return '
http://www.wowhead.com';
}
}
function getItem($name)
{
global $config;
// Ignore blank names.
$name = trim($name);
if (empty($name))
{
return null;
}
$item = array('name' => $name);
// remove extra spaces (vB is known to add them)
$fixed_name = implode(' ', preg_split ("/+/", urldecode(urldecode($name))));
// encode the name so it can be used to build the url
$encoded_name = urlencode($fixed_name);
$encoded_name = str_replace('+' , '%20' , $encoded_name);
$encoded_name = "/?item=". $encoded_name;
$item_url = $this->wow_url($config) . $encoded_name . '&xml';
$itemxml = $this->getItemData($item_url);
$itemhtml = $this->buildTooltip($itemxml);
return $itemhtml;
}
In this lines
$encoded_name = urlencode($fixed_name);
$encoded_name = str_replace('+' , '%20' , $encoded_name);
$encoded_name = "/?item=". $encoded_name;
$item_url = $this->wow_url($config) . $encoded_name . '&xml';
It makes link to item, according to its name.
for example:
http://www.wowhead.com/?item=Frozen%20Orb&xml
- this one for English item
http://fr.wowhead.com/?item=Orbe%20glac%C3%A9&xml
- this for French.
But for linking Russian item I can't just use
http://ru.wowhead.com/?item=
Ледяной%20Шар&xml
Could You help me please how to make a link to Russian item, using only its name?
What encoding to use in link and is it even possible?
Thanks!
this script is
NOT
itemstats, if you want support for it you must look elsewhere. no support for it will given in this thread.
Post by
Lockslap
I forgot to mention, I am currently working on a NPC extension to the script. It will support tooltips for NPC's by building our own using Wowhead's JS file. It still in the early stages, and I am not sure how long it will take to be completed. I am still working out the details on what information I was to get and put into the tooltip. I'll keep you posted.
Post by
202748
This post was from a user who has deleted their account.
Post by
Lockslap
For some reason the item icons will not show up on forum. Is this do to my theme or do I have to change something in the code to make the icons show up?
Also, I seem to get an error when i try to use the {id} and {id} codes. The item shows up fine, but I get an error on the forums that say:
Array ( => 39996 )
Any help is much appreciated, thank you!
This is the last time that I am answering any questions regarding this "error", fyi it is NOT an error, it is a debugging tool that I neglected to remove prior to releasing 3.1.1.
To fix it go
here
.
I understand that this thread has 33 pages of posts and people do not want to go through it all before posting a problem, but it gets REALLY old having to answer the same questions over and over. This issue will be resolved in 3.2, when it is ready.
The NPC extension and PTR extension will be included in this release.
Post by
Tedeum
Using your Joomla version on Joomla 1.5. Works perfectly in articles but I also have the integrated Agora forum component and the wohead javascript and css includes aren't showing up in the page source when in forums. The itemlink points to the correct url but items obviously don't style and there is no tooltip.
errors with
2: in_array() : Wrong datatype for second argument
Datei: (...)/wowhead/includes/wowhead.php
Line: 428
as well but have suppressed the errors for the moment as per other instructions in thread.
Post by
Lockslap
UPDATE
As it turns out the script is unintentionally capable of handling PTR info (from
http://ptr.wowhead.com
) by setting lang=ptr inside of the tags.
For example, Andonisus, Reaper of Souls makes
Andonisus, Reaper of Souls
.
This was a nice side effect of how the script handles the multiple languages. Seeing as the PTR is only available in English (as far as I know) this won't cause any conflicts with anything else.
Okay then, back to the NPC extension.
Post by
13384
This post was from a user who has deleted their account.
Post by
Lockslap
Update: <!]!>
Hey! craCkpot, loving your script to bits already, but, when I tried installing it on my Guild's forum I ran into a few small problems.
Problem 1: using the tag with any type of special characters like : or ' cause it to not being able to find that achievement, like this ->
Problem 2: Quests, it just doesn't seem to search for it sometimes. Using the Quest ID first, then using the Quest-name however seem to solve that problem, is that correct?
And the final problem lies with itemsets. It's parsing it and all, somewhat. When linking the Valorous Dreadnaught Battlegear, it shows the "heading" of the itemset, linking to
http://www.wowhead.com/?itemset=40525
which of course returns a "Does not exist" error, then breaks when it's supposed to parse out the items from that itemset. It breaks between the <ul class="itemset-items"></ul> tags.
Do you have any solution for these problems I'm getting? (I'm using php 5.2.8 with MySQL server version 4.0.26 / library version 5.0.67, without cURL enabled.)
After looking in the error log of SMF it's getting these problems:
2: Invalid argument supplied for foreach()
File: /data/web/webspace/09/55/08/0500085509/forum/wowhead/includes/wowhead_itemset.php
Line: 177
8: Undefined index: quality
File: /data/web/webspace/09/55/08/0500085509/forum/wowhead/includes/wowhead_cache.php
Line: 131
8: Undefined variable: match
File: /data/web/webspace/09/55/08/0500085509/forum/wowhead/includes/wowhead_itemset.php
Line: 78
Like I said in the past, the way in which the script must get info for anything other than items is hit or miss. Sometimes it will work, sometimes it doesn't. I am trying my best to ensure that it is as accurate as possible, but there will still be times when it won't.
Post by
13384
This post was from a user who has deleted their account.
Post by
xodium
How do I know what version I currently have, and what is the process for an upgrade?
Thank you for this wonderful tool!
Post by
293107
This post was from a user who has deleted their account.
Post by
337872
This post was from a user who has deleted their account.
Post by
Lockslap
Could you fix this items xml table?
http://www.wowhead.com/?item=44464&xml
how could i possibly fix their xml feeds? i don't work for wowhead.
Post Reply
This topic is locked. You cannot post a reply.