wowcharsheet module

Events happening in the community are now at Drupal community events on www.drupal.org.
ytwater's picture

I have been working on a World of Warcraft module that caches and display wow toons on a Drupal website.

There are two separate modules:
wowcharsheet - loading (from wowarmory), caching and displaying on wow toons. Automated updates via cron.
wowguild - Extends wowcharsheet by loading guild from wowarmory given a single realm and guild name. Also adds several admin tools to users who are given the 'guild administrator' permission.

The module is currently deployed here http://synthesis.graviteedesigns.com/. The code can be obtained on the wowcharsheet forums. The documentation is a work in progress but please read the installation instructions. I am looking for feedback, bugs and suggestions on this module.

edit: updated live site URL due to guild change!

Comments

You have got to be kidding

cooperaj's picture

You have got to be kidding me! I've just put in about 10hrs on a World of Warcraft guild site module. The module itself is named, wait for it, 'wowguild'. It's not as complete as yours but it pulls in the wow armory stuff, makes custom nodes using the data and uses views integration to display rosters and I've got planning notes detailing a feature set that pretty much matches what you have now.

So now I'm stuck. Do I pull down your (more complete, but unfamiliar) code and work with that or stick with mine.

Mmm, decisions decisions.

P.S. There is no anger intended in this comment. I'm just gutted at my unfortunate timing. :-(

wowguild

ytwater's picture

Yeah,

This has been awhile in the making. It originally began just pulling toons from the armory and converting them into nodes. If you just install 'wowcharsheet' it could be a wow toon blog. I extended it with wowguild that just collects all toons in a guild and puts them in one place. It also adds the functionallity to add and remove toons from the list (armory is pretty slow up updates guilds).

Feel free to mess with my code. I think I'm doing it the proper drupal way, but an always up for advice. I haven't played with views much, it's possible I'm duplicating functionality that could be handled with views.

The code is pretty simple, I just duplicated the .xml you get from the armory and dump it into the database for the caching.

Good luck!

Armory Update

ytwater's picture

For those of you who are currently using wowcharsheet module, I've updated the code to work with the new armory. This is only a maintenance release to keep functionality going.

Much of the database has been revamped to match new data available, so each too will need to be updated. Usually accomplished via cron.

Code: http://www.graviteedesigns.com/drupal-wowcharsheet/official-releases-and...

Note: QueryPath module is required, as well as updating the QueryPath code to the most recent. (see above link for details)

QueryPath

code_man65's picture

Ok either I am an idiot or I don't get how to update QueryPath to 2.1. I downloaded both the minimal and full versions and I cannot get them installed properly. The documentation seems to be lacking from querypath on updating the module to 2.1 to put it lightly.

updating QueryPath

ytwater's picture

Here's a how-to (done in windows).

  • When you download the Querypath Drupal module [http://drupal.org/project/querypath], it installs in:
    /sites/all/modules/querypath

  • The QueryPath version that comes with that is 2.0.1 and needs to be updated to 2.1+. It exists in:
    /sites/all/modules/querypath/QueryPath   (QueryPath.php is the actual file)

  • Delete the contents of /sites/all/modules/querypath/QueryPath, so it is an empty directory.

    Directory of D:\web\drupal6\sites\all\modules\querypath\QueryPath

    12/17/2010  09:57 AM    <DIR>          .
    12/17/2010  09:57 AM    <DIR>          ..
                   0 File(s)              0 bytes
                   2 Dir(s)  752,468,373,504 bytes free
  • Download the new QueryPath from [http://querypath.org/] minimal or full. We'll use Min for this example.

  • Unzip the file into your favorite directory:

    Directory of D:\downloads\firefox\QueryPath-2.1-minimal\QueryPath-2.1-minimal

    12/17/2010  09:50 AM    <DIR>          .
    12/17/2010  09:50 AM    <DIR>          ..
    01/01/1970  01:13 AM             1,461 API
    01/01/1970  01:13 AM               801 COPYING-LGPL.txt
    01/01/1970  01:13 AM             1,118 COPYING-MIT.txt
    01/01/1970  01:13 AM               167 CREDITS
    01/01/1970  01:13 AM            25,676 CssEventHandler.php
    01/01/1970  01:13 AM            17,610 CssParser.php
    12/17/2010  09:49 AM    <DIR>          Extension
    01/01/1970  01:13 AM             2,695 INSTALL
    01/01/1970  01:13 AM            26,436 LGPL-2.1.txt
    01/01/1970  01:13 AM            56,472 QueryPath.php
    01/01/1970  01:13 AM             1,227 QueryPathExtension.php
    01/01/1970  01:13 AM               797 RELEASE
                  12 File(s)        134,460 bytes
                   3 Dir(s)  752,468,406,272 bytes free
  • Copy all of the files in the zip file into:
    /sites/all/modules/querypath/QueryPath

  • Verify that QuryPath.php exists in the directory:

    Directory of D:\web\drupal6\sites\all\modules\querypath\QueryPath

    12/17/2010  09:59 AM    <DIR>          .
    12/17/2010  09:59 AM    <DIR>          ..
    01/01/1970  01:13 AM             1,461 API
    01/01/1970  01:13 AM               801 COPYING-LGPL.txt
    01/01/1970  01:13 AM             1,118 COPYING-MIT.txt
    01/01/1970  01:13 AM               167 CREDITS
    01/01/1970  01:13 AM            25,676 CssEventHandler.php
    01/01/1970  01:13 AM            17,610 CssParser.php
    12/17/2010  09:49 AM    <DIR>          Extension
    01/01/1970  01:13 AM             2,695 INSTALL
    01/01/1970  01:13 AM            26,436 LGPL-2.1.txt
    01/01/1970  01:13 AM            56,472 QueryPath.php
    01/01/1970  01:13 AM             1,227 QueryPathExtension.php
    01/01/1970  01:13 AM               797 RELEASE
                  11 File(s)        134,460 bytes
                   3 Dir(s)  752,468,365,312 bytes free

Hope this helps! Let me know if you still have issues.

Error after update

code_man65's picture

Ok, I appear to have gotten QueryPath updated correctly. However when I click on guildmembers on my sites menu bar I get the following error:

Fatal error: Uncaught exception 'QueryPathParseException' with message 'DOMDocument::loadHTML() [domdocument.loadhtml]: Tag canvas invalid in Entity, line: 132 (/home/thechaot/public_html/main/modules/querypath/QueryPath/QueryPath.php: 1872)' in /home/thechaot/public_html/main/modules/querypath/QueryPath/QueryPath.php:2242 Stack trace: #0 [internal function]: QueryPathParseException::initializeFromError(2, 'DOMDocument::lo...', '/home/thechaot/...', 1872, Array) #1 /home/thechaot/public_html/main/modules/querypath/QueryPath/QueryPath.php(1872): DOMDocument->loadHTML('??<html xmlns="...') #2 /home/thechaot/public_html/main/modules/querypath/QueryPath/QueryPath.php(165): QueryPath->parseXMLString('??<html xmlns="...') #3 /home/thechaot/public_html/main/modules/querypath/QueryPath/QueryPath.php(23): QueryPath->__construct('??<html xmlns="...', NULL, Array) #4 /home/thechaot/public_html/main/modules/wowcharsheet/wowcharsheet.update.inc.php(373): qp() #5 /home/thechaot/public_html/main/module in /home/thechaot/public_html/main/modules/querypath/QueryPath/QueryPath.php on line 2242

Any ideas?

Edit - His update he just released fixed this error.

Option to embed the armory model viewer?

mfossen's picture

I just installed/configured this module, and thus far it's working great! The only issue I'm having is that the option to embed the armory model viewer doesn't seem to be working for me. No matter what I do, each toon page displays a static background of the toon's "login" image; the page looks pretty cluttered and goofy this way (sometimes the toon is actually turned away from the camera). Any thoughts?

3D Armory Viewer

ytwater's picture

I assume you're talking about the flash 3D model viewer.

Blizzard is still updating the armory site, and they have not re-implemented the 3D model viewer. (If you go to your armory page, you'll see that the 3D View is not implemented).

Right now, the module just grabs the background images that the armory uses and uses that as well.

Once Blizzard finishes the 3D Model viewer it'll get implemented on the module.

I think you are correct that I did not remove the 3D model viewer options on the module, so it might still be trying to get it.

Any URLs (or toon / realm combos) with errors help me out so I can what's happening.

Hope this helps.

Ah, that makes perfect sense.

mfossen's picture

Ah, that makes perfect sense. I've been using the Mobile Armory for so long that I hadn't noticed the lack of a 3D view in the Web version. Thanks for the speedy reply!

World of Warcraft guild website modules

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: