Indemnity83

Ramblings and musings of a technology addict

Drupal DKP Module

leave a comment

The Drupal DKP module will allow you to pull data from an existing eqdkp installation and display DKP stats directly in your Drupal setup. Currently this version is very beta, and there are no options. Your EQDKP installation needs to be in the same database as Drupal, and needs to have ‘eqdkp_’ in front of all table names. You can see it in action on guilds website.

Download DKP Module 5.x-0.1-dev - 3.07 kB
Pulls DKP information from an existing EQDKP installation and displays it in Drupal. For more information please check out the related post.

Details

Drupal DKP integrates with EQDKP by giving you the following functionality:

  • Display current standings
  • Display loot distribution
  • Display raid history
  • Display individual member history (loot, raids etc)

Dependencies

The loot linking relies on functions from the drupal_armory module, which is located at http://losmuertos.houseofbob.net.

Installation

  1. Download the module archive and expand it (you’ve likely already done this).
  2. Put the ‘dkp’ folder in your modules directory. Since the /modules/ folder is typically reserved for Drupal core modules, as of version 5.x you should create a sites/all/modules/ directory and put uploaded modules there.
  3. Go to administer > site building > modules. Check the ‘Enabled’ box next to the module and then click the ‘Save Configuration’ button at the bottom.
  4. Go to administer > users > access control and make sure you set the permissions up, otherwise nobody else will be able to view the page.
  5. Go to administer > site building > menus and create add a menu item (typically in your primary links). The name and description are arbitrary, but the path needs to be ‘dkp’.

Configuration

There are currently no configuration options available.

Known Issues

  • The wow_armory plugin has many known bugs and is officially unsuported. You may find that item names (typically ones with symbols in the name) will not link properly. This is a bug of wow_armory, and there is nothing I can do. The workaround is to enter the item ID in EQDKP instead of the name.

Frequently Asked Questions

What do I do if my eqdkp tables start with something other than ‘eqdkp_’.
You’ll need to go through the dkp.module file and replace every instance of ‘eqdkp_’ with whatever your tables start with. I hard coded the table names because I built this module for personal use, I never planned for it to be release to the public.
What do I do if my eqdkp database is not in the same location as my drupal database.
Because I built this module for personal use, I never planned for this. Without making significant changes to the code, its just not possible.

Anything else?

That about does it – enjoy!

Written by Kyle

May 21st, 2008 at 3:06 pm