![]() |
I have the parser working as it should be,
http://dramaloot.com/test2.php what happens is you do the normal [item]whatever[/item] , and it goes off to grab the xml from wowhead (it needs to get the item id). after parsing the XML, it writes a URL link in the proper format HTML Code:
<a class="q4" href="http://www.wowhead.com/?item=32239">[Slippers of the Seacaller]</a> I don't think i'll be able to have the entire thing as a plugin w/no external files to upload, but i dont think that will be a problem. The cache will use the existing gItemStats tables because it stores the two things you need, the item id and the item name. |
Awesome, that's really, really cool! Keep it up :)
|
My own release.
While i could be a jerk and post as my own plugin, i wouldnt have made this if it wasnt for Gryphon anyways. This replaced gItemStats mod all together install the attached XML file then un-install the gItemStats after that, you can delete the itemstats folder and the /includes/functions_gitemstats.php file My plugin creates a new database table and copies the needed data (item name, item id and item quality) from your existing gitemstats table. I don't see it being a challege to modify it so that it would either use thottbot or wowhead, but i prefer wowhead so i'm not changing it :) actually, hold on a few. i used to use the itemstats_parse() function in other areas, so im going to replace that in my addon. |
Since the main functions load up in global_start , you can use itemstats_parse("item name"); in things like custom pages and VBAdvanced modules.
I already had two custom modules written that used the gItemStats method itemstats_parse("[item]Guild Tabard[/item]"); so i adapted it to work with that also. |
My originial intention with gItemStats was just make ItemStats a simple upload and configure via vB options.
It appears you are doing exactly what I am working on for my revamp of the code. I never suggested there would be no caching. *Edit, posted while I was posting. Any reason you include xml parser code when vBulletin already has it's own class? |
Quote:
|
go to any page in your browser and view source
Look for HTML Code:
<!-- WoWHead Mouseover-Tooltips --> |
Quote:
I had to manually add that line to the header of the style, and now it works. With is was Bold like iteam stats though. That really made it stand out against darkers styles. |
odd.
create a new template named wowhead_headerinclude put the HTML Code:
<!-- WoWHead Mouseover-Tooltips --> |
You didn't include any templates in your product, that is why it is missing.
|
All times are GMT. The time now is 08:07 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|