Giter Club home page Giter Club logo

sc2ranks-drupal's Introduction

sc2ranks module for drupal

Usage

  1. Make sure you have the profile module enabled.
  2. Create two fields for user's to enter character region, character name and character code data for battle.net, be sure to note the names of these fields.
  3. Install and enable the sc2ranks module.
  4. Configure permissions to view and administer the sc2ranks module
  5. Configure the sc2ranks module @ /admin/settings/sc2ranks be sure to set the field names you set earlier in the profile configuration panel so sc2ranks module knows where to look for a user's character name and code.
  6. Check everything is working by visiting a user's profile page that has set a battle.net character name and id.

Screenshot

Sample profile data

Theming

You can override theme data by creating your own profile-sc2ranks.tpl.php

Refer to the default profile-sc2ranks.tpl.php for variable data.

Views Integration

If you have the views module installed you may use the cached data from sc2ranks.com in a views, simple create a new view of type sc2ranks. There is a default view at sc2ranks/player_listing containing a listing of players. You can add associated user to the relationships to get access to the user's drupal information in the view. You can add different fields from all the information stored in the system about the user.

Sample views

TODO

  • Better Theming documentation
  • Player Portraits (Merge w/Troyan's Code)
  • Better Views integration
    • Custom sort on league field
    • Make image handlers optional, add profile link handlers.
  • Make reliance on profile module optional (offer up fields through module if wanted)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.