Hello everyone, just thought i'd share this with anyone who is interested if you don't play World of Warcraft you can probably stop reading now..
I have been helping some friends make a new website for thier World of Warcraft guild and for the main page we decided on Drupal after looking at all the other CMSs out there we found Drupal not only had some of the most apealing visual styles but also was very easy to use whilst still being very flexible and powerful. The one thing we did struggle with was getting some of the "standard" WoW website things working, namely itemstats (which is a library that allows you to link ingame items by name and post stats et, with nice javascript popups) and integration with the DKP system. As a complete novice to both php and Drupal it took me a few hours but this here is my working solution for integrating itemstats and eqdkp into drupal. I basically modified some code posted by wordpress users and used it in a php sideblock, more info here: http://aoth.info/drupal/?q=node/14. I know this is very messy so please dont criticise my coding abilities (i have none) but as i'd seen a few people searching for the same thing i thought it may be handy.
I guess this should probably be made into a module but that is way beyond my abilities at the moment, however with some more reading, you never know...
Comments
I forogt to mention, the
I forogt to mention, the site linked is just my own personal drupal page which i use for testing things out and posting links for friends etc, so you may find some things dont quite work 100% of the time.
Module?
First of all, thanks for your efforts, nice job.
I've made something similar, a "last 10 items" block for our drupal based guild site, and it works well.
But i wonder if it is possible to make it as a module, that filters(?) every output (nodes, comments, etc) from the drupal engine, and parses the [item]xxx[/item] tags into itemstat code. The point is that the [item] tags should be stored, thinking of the non-tech users who want to edit their stuff.
I've modified the itemstats code, made a loadable module - it seems to be working, since the css, js and init are called from here, not from the side block.
The thing i didnt manage is what function i should use for parsing output. Overhailed the docs, already tried with hook_filter and hook_view, but without any success.
I'd appreciate any wise thoughts.
Itemstats
I have been working on this as well. Here it is in a complete module:
http://drupal.org/node/138726
**edit - removing outdated code**
Other important links:
Other important links:
http://www.rpgoutfitter.com/addons/wowinterface.cfm (icon packs)
http://itemstats.free.fr/news.php?lang=en-US (Itemstat)
I can't remember where I obtained the socket icons.