World of Warcraft Blocks for Drupal

I have been working on a site for a World of Warcraft guild to get their frontpage up to scratch with their old site which was running the TinyPortal on SMF. With a server change and some mods becoming unsupported, the decision was made to switch to something else for the frontpage. I had only one thing on my mind which was Drupal. But soon found that there didn't appear to be many modules on Drupal.org for World of Warcraft. So far I have created two blocks using the Block API module I developed and will release more when I have written and tested them. Both blocks are set up in one module, which I have called wow_blocks. If you already have a module called wow_blocks, it may be a bit of a mission getting this to work, so you will have to chose one of the modules.

Download: Downloads can be found on the World of Warcraft Blocks project page.

Updates

2011-01-21 23:30
Added D7 version with the new zones.
2011-01-09 00:35
Added new zones and bosses to progression block.
2010-11-14 09:00
Fixed image paths to work if base_path isn't /.
2010-11-12 19:30
Updated the code for the newest version of block_api.

Block 1: Recruitment

The first block is a block for recruitment. An admin can set the roles and specs that the guild requires to be displayed in the block, so users know which areas the guild is recruiting in.

All the images are included in the ZIP file. The admin screen, allows the admin to select the links to use for the Apply now and Recruitment details buttons as well as options for each individual role and spec.


Click for larger version

Block 2: Progression

This block shows the guilds progression against the bosses of the game.

The block features an expandable group of game zones with all the bosses in the zone. All bosses from the following zones are in the module:

  • Icecrown Citadel
  • Argent Coliseum
  • Ulduar
  • Eye of Eternity
  • Obsidian Sanctum
  • Naxxramas
  • Vault of Archavon

As of 9th January 2011 the following extra zones are available:

  • Blackwing Descent
  • Bastion of Twilight
  • Throne of the Four Winds

Admins have full control over which zones are available and shown in the block as well as selecting which bosses have been defeated. If you have any requests for World of Warcraft related blocks, let me know in the comments.

Comments

[...] This post was mentioned on Twitter by wowplayer and Carissa Etheridge, James Tombs. James Tombs said: World of Warcraft Blocks for Drupal: I have been working on a site for a World of Warcraft guild to get their fron... http://bit.ly/cXHI1W [...]

Very nice! I'd suggest posting these here:

http://groups.drupal.org/world-warcraft-guild-website-modules

as it is a concentrated group of warcraft playing drupal admins.

Hey, your wowblocks has broken with your update of Blocks API I was wondering if you could update wowblocks, thanks

Forgot about that, I have updated the Zip with the required changes.

Thanks! That was really quick =]

Howdy,

I'm missing something obvious here...after installing and enabling the module, the block/s are nowhere to be seen.

Thanks for any help you can provide...

Aha, got it: admin/build/block/add-module-block

Thanks for the modules!

There is a typo in the module that prevents any of the images from displaying.

In wow_blocks.module, change all references from
<img src="/'
to
<img src="'

Find and replace should report 12 hits.

Errr, thats not quite right, since now the images only show on the front page...

I hadn't set up the image paths to work properly if drupal is installed in a sub directory. I have updated the ZIP on this page, replace with your current module.

Awesome, thanks James!

Is it possible to convert this to work with wordpress?

Just no plugin exists to show raid progression :(

[...] have ported the Drupal module of the Word of Warcraft Progression block to be a WordPress [...]

Hi Chris,

I have made a Wordpress plugin which shows the progression block as a widget and has a settings screen to set the progression just like Drupal. It's my first Wordpress plugin but hopefully it will work. You can download it from here.

Thank you very much James.
I did a test and it look good, I had to disable it as it was clashing with my phpbb forum stats widget so I will have a look to see whats causing it. Other than that works fine :P

I had a quick look over the code and realised I had missed out a closing div tag which may have caused problems. You can download a fixed version here.

[...] Module/plugin details [...]

Im completely new to building a site and no php /mysql experience at all but love tinkering with drupal.

Im also a massive WOW player and just put the 2 together to create our guild site.

I have to say your Blocks are awsome!!

just a couple of things if you can find time at all

adding the baradin Hold boss to the progression (im sure more will be added)

the graphics used for apply here and information page are not very wow looking, anything you can do?

Also going forward a possible guild achievement block?

please feel free to look at my webby and give a few pointers as i said im new to all this. www.demonsguild.co.uk

Again fantastic blocks

Thank you

Fuzzyvision

Images are currently hardcoded and as there isn't great demand for the module will remain that way.

I don't play WOW so I have no idea which bosses are missing. If people let me know the different areas and bosses in those areas, I can set them up.

You can email me at james@jamestombs.co.uk with requests.

Hi,
this is exactly what i am looking for but when i try to download this plugin your website says:

The page you requested does not exist. For your convenience, a search was performed using the query wp content uploads 2010 07 wow blocks3 zip.

it would be very nice if you inform me when this plugin is available for download
my adress is: felix.wustrack@me.com

thank you
felix

I will reupload the links later.

Is there an easy way to make this work with Drupal 7 ? i ran the install and just says not compatible

I have uploaded the D7 version here. I haven't tried it but it should work.

Thank you very much for a fast reply
I have tried it and got lots of errors, i would love to say i understand them and will try sort it but i can't :(
you can view it at www.urban-elite.org/guild if it helps at all

Try this. I have tried it out on a test D7 install and everything appears to be working with no errors.

How do i work this Block into the website? i am completely lost.. Any help would be appreciated.

I downloaded this mod, but what do i do with the folder?

You will also need to download and install Block API and install both to your /sites/all/modules/ directory. Then enable them on the /admin/build/modules page of your Drupal installation.

I use drupal 7 and have the same problem. I enabled the modules as usual, but nothing shows up anywhere. Nothing in administration, no blocks to add in the 'structure', so where do I find everything?

Go to the blocks admin page and there will be a tab for Add module block.

I never saw that link. Works perfect now, thank you!

Wow this is cool!

I've made a little change - I've made it so that you get a mouse over when you hover over the raid names so it's obvious you have to click on it.

To do this I edited wow_blocks.module and changed line 563. On that line look for the < strong > tag and add < a href="" javascript="return false;" border="0" > and then < /a > before < /strong >. Remove the spaces I added before the < and > - I had to add these to make the code appear in this comment box.

I think it would also be cool if you could hover over each boss and it pop an image. The easiest way to do this (as I don't know drupal) would be for it to look for an image with the bosses name when you hover over it. I'll take a look and see what I come up with and post back here :)

My Wow site is www.heroicoutcasts.com :)

Hi James! Thank you for these two wonderful modules!

I have a quick question, how easy it is to change the hover location for the progression module? Currently, it looks like it's set to hover to the left. On the website I'm creating, it hovers behind my image slider... I'd prefer it to pretty much hover any direction but left... Is there any chance you could point me in the right direction? I've done some Google'ing, but I really don't know what I'm looking for unfortunately...

Website: http://www.pebkacg.com

Thank you for your time!

In the wow_blocks.recruitment.css, look for .wow_blocks-spec_wrapper.

Change margin-left: -175px; to right: 40px;

You can change the 40px anything between 30px and 60px with it still looking right. Setting it to 60px will have the hover starting at the very left of that block, 40px obviously gives a bit of room to the left.

You also have overflow: hidden set on some of the parent divs which will cut off some of the hover on the last recruitment role.

I really appreciate the help! I ended up going with the following:

margin-left -135px;

This ended up working pretty well. The top line (Death Knight) is being a bit of an oddball by displaying in a different spot than the rest, but it's workable. I assume it's inheriting code from somewhere else... Any ideas? If not, I'll live with it.

I'd like to add that your code is really well written. I modified the progression module quite a bit and it was very straight forward. Thanks for all of your work!

If you use right instead of margin, they will all align to the same place.