Item API

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
Item API
 Bahamut.Canchi
Offline
サーバ: Bahamut
Game: FFXI
user: Canchi
Posts: 4
By Bahamut.Canchi 2008-11-19 09:28:20  
hiya all, simple system, basically if u load in the api and u type in i.e. <item>Item's Name</item> and it will display an icon of the item, when you hover your mouse over the item, it displays the item's stats. Thanks for all your time and efforts into making a great site!
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2008-11-19 14:58:56  
you can use POLUtils and create a database with that information. We use the same item names and item Ids
 Bahamut.Canchi
Offline
サーバ: Bahamut
Game: FFXI
user: Canchi
Posts: 4
By Bahamut.Canchi 2008-11-19 17:16:31  
found it! http://users.telenet.be/pebbles/index.html kthx. yeah but would have been quite a neat feature to offer members ^^
 Lakshmi.Schultz
Offline
サーバ: Lakshmi
Game: FFXI
user: Schultz
Posts: 125
By Lakshmi.Schultz 2008-11-19 22:07:37  
I might have read that wrong, but it sounded like you wanted something like this:

http://blog.ffxiah.com/?p=40

but within the forums here and using BBCode like [item]Scorpion Harness[/item]. Considering that they already have the 'ffxiahify.js' script on hand locally, I couldn't see it being that hard to put into action, then again I know nothing about how this forum was written and how each post gets parsed.

Looking at it from a phpBB mod, it would be pretty easy to do with only a quick match vs the contents of [item][/item] against the item DB. Then again, adding an option to insert an item via AJAX and inserting [item]12579[/item] instead of a name would cut down things significantly since there wouldn't be the query against the DB to find the ID.

As I said before, I'm probably reading it wrong, just there's also been a few people recently asking for DB dumps here, and Scragg probably is just being defensive (like I would be).
 Bahamut.Canchi
Offline
サーバ: Bahamut
Game: FFXI
user: Canchi
Posts: 4
By Bahamut.Canchi 2008-11-20 12:33:51  
i tried building an item db but the application failed to load although i do have all the required dependencies installed
 Fenrir.Scragg
Administrator
Offline
サーバ: Fenrir
Game: FFXI
user: Scragg
Posts: 2579
By Fenrir.Scragg 2008-11-20 14:44:11  
Schultz said:

but within the forums here and using BBCode like [item]Scorpion Harness[/item]. Considering that they already have the 'ffxiahify.js' script on hand locally, I couldn't see it being that hard to put into action, then again I know nothing about how this forum was written and how each post gets parsed.

Looking at it from a phpBB mod, it would be pretty easy to do with only a quick match vs the contents of [item][/item] against the item DB. Then again, adding an option to insert an item via AJAX and inserting [item]12579[/item] instead of a name would cut down things significantly since there wouldn't be the query against the DB to find the ID.


Some users have modified ffxiahify script to work how you described. I believe they used their own database to translate names into ids. It's a good way but not everyone can do it. I want to upgrade ffxiahify so that it would except item names... like "http://www.ffxiah.com/item.php?name="blah" etc

Currently, ffxiahify will just look for links to items in your pages. http://www.ffxiah.com/item.php?id=15918

I will see about making an item db w/icons public.