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
Vertigo
not alot of ways how install it incorrectly :P im check it more then 5 times. I think bug in whp_parse
When i remove everything from whp_parse function, all working ok (ofc its not parse data) but its working.
function whp_parse($message)
{
return $message;
}
So now im sure its bug in this function.
ok more testing... :P when i set false on use mysql its working, when i set true on it its not working.
and finally... when i set cache db in different then forum db and whoa! its working. Im dunno why its not working with db same as a forum.
Post by
Lockslap
Yeah, I thought I posted that warning in the initial post, but apparently I didn't. I think it has something to do with the syntax of my MySQL queries, I'm gonna look into it. Until then, keep the Wowhead cache & phpBB databases separate. Glad to hear you got it working.
Post by
136885
This post was from a user who has deleted their account.
Post by
Lockslap
Just installed the latest version and found another bug. It's a small one though.
If you insert an item like this;
it will find the item and the will work as normal. However when this attempts to cache this it will cache it without the extra
The script is intended to run w/o the square brackets, adding them would be redundant. However, to prevent any problems I will update the script. Seems as though the easiest fix for this would be to simply remove them from the name when it gets its match from preg_match. That way changing the MySQL table and subsequent queries to the table would not be necessary. Thanks for finding, it!!!
I have changed the code to account for "" being in the item query, and it will no longer mess up the cache system. You can download the newest version @
http://downloads.exhume-guild.com/?dl=wowhead.zip
Post by
136885
This post was from a user who has deleted their account.
Post by
Vertigo
PHP Notice: in file /wowhead/includes/functions.php on line 23: Use of undefined constant host - assumed 'host'
PHP Notice: in file /wowhead/includes/functions.php on line 22: Use of undefined constant path - assumed 'path'
PHP Notice: in file /wowhead/includes/functions.php on line 22: Use of undefined constant query - assumed 'query'
errors if i turn debug on
edit:
fix pretty simple just add brackets ('host' & etc)
Post by
136697
This post was from a user who has deleted their account.
Post by
Lockslap
If phpBB will run on your website then my script will run on it.
Post by
Lockslap
Just installed the latest version and found another bug. It's a small one though.
If you insert an item like this;
it will find the item and the will work as normal. However when this attempts to cache this it will cache it without the extra
The script is intended to run w/o the square brackets, adding them would be redundant. However, to prevent any problems I will update the script. Seems as though the easiest fix for this would be to simply remove them from the name when it gets its match from preg_match. That way changing the MySQL table and subsequent queries to the table would not be necessary. Thanks for finding, it!!!
I have changed the code to account for "" being in the item query, and it will no longer mess up the cache system. You can download the newest version @
http://downloads.exhume-guild.com/?dl=wowhead.zip
That's still open to abuse, for example;
http://www.wowhead.com/?item=-High%20Test%20Eternium%20Fishing%20Line-cdc&xml
http://www.wowhead.com/?item=High%20Test%20Eternium%20Fishing%20Line&xml
those both return the same item data and the first wouldn't be fixed by your changes. Wowhead isn't really strict enough on these item names so that first item would be cached each time the page is loaded.
Okay I have changed the code yet again for Wowhead's non-strict item name queries. I added another field to MySQL that will hold the name that the person used to query wowhead, that way when the site is refreshed, it will no longer add duplicate entries. In addition, I modified the query used to get the item info from the cache to look in either itemid, search_name, and name to prevent any duplicate entries from someone using {itemid} and then use {name} to get info for the same item. To update the MySQL simply run create_table.php, it will drop your old table and create a new one.
Another feature that was also added to the script is the ability to display the links as you wish. It uses wildcards like {name}, {id}, etc. and you can create your own pattern for how it should display the links. You can set this up in config.php, or leave it as default. Enjoy!
If you find any other bugs, please let me know.
Post by
Vertigo
something wrong with links today they are not work. On u site craCkpot they not work also :( wowhead team change something?
Post by
Lockslap
something wrong with links today they are not work. On u site craCkpot they not work also :( wowhead team change something?
Yeah it would have to be on their end, I haven not had a chance to change any of the code lately due to computer problems.
Post by
etoel
I think all the image links in the css fail for some reason.
http://www.wowhead.com/images/tooltip.png
returns 404 as an example.
http://static.wowhead.com/images/tooltip.png
does work if you need a quick fix until it's back in order.
I guess that is the limitation of running all the scripts central - if something is wrong at wowhead nothing shows...
On our end we had the text showing (in the cache) but no background and icon. We have a temp workaround using the static links, but it's not a good way of doing it ofc....
Thanks for all the work Crackpot.
Post by
Lockslap
I think all the item links in the css fail for some reason.
http://www.wowhead.com/images/tooltip.png
returns 404 as an example.
http://static.wowhead.com/images/tooltip.png
does work if you need a quick fix until it's back in order.
I guess that is the limitation of running all the scripts central - if something is wrong at wowhead nothing shows...
On our end we had the text showing (in the cache) but no background and icon. We have a temp workaround using the static links, but it's not a good way of doing it ofc....
Thanks for all the work Crackpot.
Yeah I am getting the same problems on my website. There's really nothing that can be done on our end, short of writing our own tooltips. Which gets a big no thanks from me. However, on a side note I am adding another section to the manage_cache.php script I released in a previous post. It will allow you to loop through the phpBB database (without harming it) and add any cache items that it finds. This is will speed up the overall loading time of a forum post with a lot of links in the text.
Post by
142096
This post was from a user who has deleted their account.
Post by
134215
This post was from a user who has deleted their account.
Post by
etoel
It should be working again now - the
http://www.wowhead.com/widgets/power/power.css
has been updated to use static.wowhead instead of
www.wowhead
:)
Back to enjoying the mod..
Post by
Lockslap
I believe Wowhead updated their tooltips to allow for Quests to be linked as well, although I have not tested it. It should work without any problems. I will do some testing to see if I need to adjust the code to allow for the quests.
Okay after some testing, I have found that Wowhead does indeed support Quests and NPC for their tooltips. The problem is that they do not use the same functionality as they do with items. Meaning that they do not have an XML feed for each quest, and you cannot goto a quest's page by using their name.
For example, for the quest "Sunfury Attack Plans" the url is:
http://www.wowhead.com/?quest=11877
But you cannot do:
http://www.wowhead.com/?quest=sunfury+attack+plans
This means that you must know the quest's id given to it by Wowhead, before you can link it. The only way I could make the script find the quest is by using Wowhead's search function and then grab the first item that shows up. The only problem with this is that its extremely slow, and may put unnecessary stress on Wowhead's database, which I'm sure they wouldn't appreciate it.
I will do some further testing to see if I can get it work. I'll keep you posted.
Post by
142788
This post was from a user who has deleted their account.
Post by
Lockslap
First off thanks for all the work on this.
I'm having the same issue as several others. When I enable MySQL my topics don't show, when I disable caching everything works correctly. My cache is set up in it's own database, created correctly. Php 4.4.7, MySQL 5.0.45, and this is a mod-less phpbb3 install.
Website linked in sig. Keep us posted on a fix! :)
I have not noted any issues with topics not showing, and have been unable to duplicate any such problems. Perhaps it has to do with you using MySQL 5.x, when this script has only been tested on 4.x. I'm not sure on the differences between the two, so I cannot say for sure that this is causing it. I am going to need more information before I can work out what's going on.
Post by
142788
This post was from a user who has deleted their account.
Post Reply
This topic is locked. You cannot post a reply.