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
Nephr
Works greatly on my phpBB2 forums... but I got a little annoyance there. When post includes multiple item links, opening it takes a very long time. Is there any way to make it work more smoothly?
Problem occures only if there is many tags. If using url links it works just fine... so maybe it has something to do with parse items or icons?
Post by
134215
This post was from a user who has deleted their account.
Post by
134276
This post was from a user who has deleted their account.
Post by
134421
This post was from a user who has deleted their account.
Post by
Lockslap
Hmm, maybe putting the code on the first line (~line 70) would fix the problem. Line 125 occurs after the bbcode was prepared, before being parsed. I will change my code to add the code to the first occurrence of the line. Thank you for pointing it out.
@beny, the reason it takes longer to load w/ more items is because for each item it has to send a request to wowhead's website to get the XML information it needs to display the links. A cache system would be ideal, see more on that below.
I am going to rewrite the code to clean things up and make them quicker to parse. There will be an option to cache the links to a MySQL database. It will be a more involved installation, but it shouldn't be too difficult. I may write an installation script for it, just to make things easier. I hope to have a test version up within the next day or so.
Thanks for all of the suggestions.
Post by
Lockslap
Oh, if you can't see the links when you're previewing the post then you need to also add the code to your bbcode.php. The viewtopic.php only works when you have actually saved the post.
Post by
Lockslap
@benv, as it turns out wowhead seems to freak out when a quote is in the url, even though the item is valid. Even attempting to escape the character causes the item to not be found, so this appears to be a bug on wowhead's end. I am working on a workaround for this, where you could do {itemid} and it would get the information that way. Sorry I couldn't be much more help, as there is nothing I can do about it.
The next version of my script is in the works, and hopefully will be released soon.
Post by
Lockslap
Okay currently I am on the end-stages of development for the completely rewritten code. I have tested under numerous situations, and I think I have finally found a place in phpBB3 to put the code so that the script can parse whether posting, editing, previewing, etc., while only having to edit one file. It works whether or not BBCode is in the actual post, but does not interfere with the parsing of the BBCode.
It also can use (you can turn it on or off) a cache using a MySQL table inserted into phpBB3's database, and seems to allow the page to load considerably faster when having to parse quite a few links in a given post. All in all, I think it is quite a nice script.
As for the problem with having single quotes (') in the item name and it not displaying, while I have no been able to come up with a fix, I have inadvertently created a work around. Now with the ability to use the syntax {item number}, where {item number} is the number that wowhead has assigned the item into its database. You will have to goto wowhead and look up the item in order for it to work, but it will function normally when using an item number. After the item is added to the cache you can use the item's name (including any single quotes) to display it from the database.
Also included in the script is the ability to manually add items to the database using a small script. It will allow you to see if a given item is already in the database, or if you choose, add it. You can also choose to purge (empty) the cache as well.
I will post the updated script on the first post of this thread, along with the new installation instructions later on today.
Post by
136357
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
136597
This post was from a user who has deleted their account.
Post by
136801
This post was from a user who has deleted their account.
Post by
113922
This post was from a user who has deleted their account.
Post by
113922
This post was from a user who has deleted their account.
Post by
Epoch18
Any input on getting this to work on a vBulletin forum?
Post by
136801
This post was from a user who has deleted their account.
Post by
136885
This post was from a user who has deleted their account.
Post by
12178
This post was from a user who has deleted their account.
Post by
Epoch18
Any input on getting this to work on a vBulletin forum?
I think this is what you are looking for
http://www.wowhead.com/?forums&topic=3464#p37094
Negative. The link you provided simply shows how to insert the script, then make a bbcode that merely strips out the wowhead url.
I want to use crackpot's script, from this topic. His script is
much
more powerful than a simple bbcode because no wowhead information is needed. Only an item name.
So, does anyone know how to use crackpot's functions_wowhead.php script to work with vBulletin?
Post by
Lockslap
Hey guys, sorry for my lack of activity lately. My guild has been doing a lot of progression, so that has taken up most of my time. I will release the newest version this weekend. To my best knowledge, I have eliminated all of the bugs that were posted on this forum, as well as a few that I found on my own. It should not break your BBCode from working, and it will work in preview mode as well. I found a place in the phpBB3 code that is called by both modes (viewing topics, and previewing posts) with only 1 line of code.
@Garryn, ty so much for finding this fix. It has nagged the hell out of me for so long. It is now in the newest version.
@Epoch, I cannot make any promises if it will work in vB, but if you can find a place to put the function call in side of vB's code, then it should work independently. I do not have access to a vB install, so I couldn't make it work.
@Clinth, the XML class is used by ItemStats to do its parsing, so that probably means that you have Itemstats installed as well, which would be redundant. However, I have renamed the function names to prevent any naming issues.
Post Reply
This topic is locked. You cannot post a reply.