Latest Diablo 3 News
DiabloWiki Updates
Support the site! Become a Diablo: IncGamers PAL - Remove ads and more!

Diablo 3 Historical Stats App

Discussion in 'Diablo 3 General Discussion' started by XjSv, Oct 29, 2012. | Replies: 2 | Views: 3791

  1. XjSv

    XjSv IncGamers Member

    Joined:
    Oct 29, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I am building a tool for D3 using the Web API and it would be nice to have some people test it.

    It gets user data every 6 hours and display it in a historical way. Meaning that you can see the gear you had on at any previous time. The BattleTags are provided or entered by users. At the moment I'm getting data for 81 accounts but I hope to have more people use it.

    Keep in mind its a beta version so its not stable yet. I am still wait for a API key from Blizzard, but in the meantime I am not reaching the daily limit with the amount of users in the DB.

    Technology: PHP, MongoDB, jQuery

    Live Site URL: http://www.d3stats.tk
    Preview Video: http://www.youtube.com/watch?v=LozMnrCti5g

    Using: https://github.com/XjSv/Diablo-3-API-PHP
    Source: https://github.com/XjSv/Diablo-3-Historical-Stats

    Change Log

    • 10/28/2012: Improved the graph, changed the heroes display and fix bug when you first come to the main page and no data loads. Also now data load happens every 6 hours due to the increased amount of users.
    • 10/27/2012: Various bug fixes.
    • 10/25/2012: Data now automatically loads every 2 hours.
    • 10/23/2012: Limited the most viewed to top 10 players and fixed some UI stuff.
    • 10/22/2012: Fixed some bugs when navigation and/or visiting for the first time or from a link with parameters. Also styles the attributes and skills based on Blizzards styles.
    • 10/21/2012: Added skills tooltip function and weapon elemental damage graphic.
    • 10/20/2012: Added seach/add battletag functionality, contact page, app stats and now the "Hero" list shows top 15 most viewed battletags. If your battletag does not exist in the db it will be added to the queue.
  2. Ross

    Ross IncGamers Member

    Joined:
    Nov 4, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hey thank you for your work on the PHP Diablo 3 Web API wrapper. I examined the diablo3.api.class.php and your regular expression arithmetic for validating the BattleTag helped me for when I did validation on a BattleTag using Javascript.


    I used your regular expression to validate BattleTag input on an existing web app.


    Code:
    var bTag = $("#bTag").val().trim();
    
    var pattern = new RegExp('^[a-zA-Z0-9ÀÃÅÃÆÇÈÉÊËÌÃÃŽÃÃÑÒÓÔÕÖØÙÚÛÜÃÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ]{3,12}#[0-9]{4}$');
    
    if ( !pattern.test(bTag) ){
        alert("The BattleTag Entered Is Not Valid");
        return;
    }
    Here is a link to the Enhanced Weapon Comparison Tool - http://bookstur.com/d3/calculator.html

    Here is some info I posted here about it - http://diablo.incgamers.com/forums/showthread.php?841443-Enhanced-Weapon-Comparison-Tool-App
  3. XjSv

    XjSv IncGamers Member

    Joined:
    Oct 29, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Thank you and im glad it helped but thanks for the regex should go to: https://github.com/nWidart. He actually contributed the regex validation to the project .

Share This Page