Results 1 to 18 of 18
  1. #1

    [ezStats2] Linking Battlelog Platoon memberlist

    Hey guys,

    I couldn't find anything about this by searching, so I figured it'd ask it.
    Is there a way to retrieve a platoon memberlist from Battlelog (say every night) and use that list in ezStats for the leaderboard? I installed ezStats, but I'm not going to input all our 150+ members into it AND remove the ones being kicked etc..

    Thanks in advance!
    You can check out our website at: www.saskmilitia.com
    ezStats2 Leaderboard example here: http://www.saskmilitia.com/?page_id=218

  2. #2
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    314
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: [ezStats2] Linking Battlelog Platoon memberlist

    Hi Xtreme2Fear!

    It is a great idea, to sync your platoon with your leaderboard at ezStats. But therefor you need access to the list of players of a platoon, and I don't know any possibility for this.

    But perhaps 1April knows a way. Regards, ezzemm
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  3. #3

    Re: [ezStats2] Linking Battlelog Platoon memberlist

    Thanks for responding, I do hope there's a way of syncing these two great services. For now I had my clan register on the website, and create a memberlist out of that. Wanted to add the BF3Stats API to it, to read out the stats individualy. Ended up being way to much work for me though

    Hope 1April can help me!

  4. #4

    Re: [ezStats2] Linking Battlelog Platoon memberlist

    Ok so I found a website that is retrieving platoon stats, but I want to use ezStats with it.
    Here's the site: (with one of ours platoon preset)
    http://www.bf3log.com/en/360/Platoon...talion/228175#

    @ezzemm: Is it possible for ezStats to have a function to retrieve those names and mass import those into my list?

    Cheers!

  5. #5
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    314
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: [ezStats2] Linking Battlelog Platoon memberlist

    I've sent a mail to the programmer of this site. Lets see if I get an answer
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  6. #6

    Re: [ezStats2] Linking Battlelog Platoon memberlist

    Any news on this? I'd like to hear some of BF3stats developers aswell, maybe ya'll know a better way?

  7. #7
    Administrator 1ApRiL's Avatar
    Join Date
    2011-02-12
    Location
    Waiblingen, Germany
    Posts
    1,316
    BFBC2 PC
    1ApRiL
    NFS World
    1APRIL
    BF2
    1ApRiL
    BF3 PC
    1ApRiL

    Re: [ezStats2] Linking Battlelog Platoon memberlist

    To get all Members of a Platoon as JSON you need to do this:

    GET http://battlelog.battlefield.com/bf3...5/listmembers/

    2832655391301375615 is the Platoon ID, you get this from the URL of you platoon.
    And you need to send the HTTP Header:
    X-Json: 1

    Then you get a bunch of JSON which contains all Members.
    Admin of bf3stats.com / bfbcs.com / nfstimes.com / mohstats.com / crystats.com | Twitter

  8. #8
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    314
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: [ezStats2] Linking Battlelog Platoon memberlist

    Hi 1April!

    Thank you for your information. I tried this:
    PHP Code:
        $c=curl_init('http://battlelog.battlefield.com/bf3/platoon/2832655391301375615/listmembers/');
        
    curl_setopt($c,CURLOPT_HTTPHEADER,array('X-Json:1'));
        
    $result json_decode(curl_exec($c));
        
    curl_close($c);
        
    print_r($result); 
    But I got HTML-code instead of JSON-code. What have I done wrong?
    Regards, ezzemm
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  9. #9
    Administrator 1ApRiL's Avatar
    Join Date
    2011-02-12
    Location
    Waiblingen, Germany
    Posts
    1,316
    BFBC2 PC
    1ApRiL
    NFS World
    1APRIL
    BF2
    1ApRiL
    BF3 PC
    1ApRiL

    Re: [ezStats2] Linking Battlelog Platoon memberlist

    Sorry, the header was wrong.

    This would be the right one:
    X-AjaxNavigation: 1

    I build an PHP script to pull the members:
    battlelog_query.php.txt

    Note:
    level: 1 is an applying member
    level: 4 is a normal member
    level: 128 is a leader
    level: 256 is the founder
    Admin of bf3stats.com / bfbcs.com / nfstimes.com / mohstats.com / crystats.com | Twitter

  10. #10
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    314
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: Re: [ezStats2] Linking Battlelog Platoon memberlist

    Quote Originally Posted by 1ApRiL View Post
    Sorry, the header was wrong.

    This would be the right one:
    X-AjaxNavigation: 1

    I build an PHP script to pull the members:
    battlelog_query.php.txt

    Note:
    level: 1 is an applying member
    level: 4 is a normal member
    level: 128 is a leader
    level: 256 is the founder
    Thank you very much
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  11. #11

    Re: [ezStats2] Linking Battlelog Platoon memberlist

    Looks like progress! Thanks to both of ya for your efforts! Hoping we can get a platoon based leaderboard going soon!

  12. #12
    PHP Developer
    Join Date
    2011-11-21
    Location
    Amsterdam, The Netherlands
    Posts
    279
    BF3 PC
    Grezvany13
    Gamer IDs

    XFIRE ID: Grezvany13 Steam ID: Grezvany13

    Re: [ezStats2] Linking Battlelog Platoon memberlist

    There's 1 minor problem with the script (or actually the data available); there's no clantag attached to the persona.

    However I think it's safe enough to use the platoon tag instead, since we're retrieving the platoon members afterall.


    Here's my "version":
    PHP Code:

    $response 
    = array(); // array retrieved after call
    $memberLevels = array(
        
    => 'not member',
        
    => 'join waiting',
        
    => 'invited',
        
    => 'member',
        
    128 => 'admin',
        
    256 => 'creator'
    );
    $data = array();

    $members $response['context']['listMembers'];
    $platoon $response['context']['platoon'];
    foreach( 
    $members as $member ):
        
    $data[] = array(
            
    'id' => $member['persona']['personaId'],
            
    'name' => $member['persona']['personaName'],
            
    'clantag' => $member['persona']['clanTag'], // is always empty
            
    'level' => $member['membershipLevel'],
            
    'type' => $memberLevels$member['membershipLevel'] ],
            
    'online' => $member['user']['presence']['isOnline'],
            
    'playing' => $member['user']['presence']['isPlaying'],
            
    'platoon' => $platoon['name'],
            
    'tag' => $platoon['tag']
        );
    endforeach; 
    Member of [DD] DoubleDutchClan - Largest Dutch Multi Gaming Community Since 2007



    Proud developer of: BF3Stats API Class - A simple PHP Framework for your own projects

  13. #13
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    314
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: Re: [ezStats2] Linking Battlelog Platoon memberlist

    Quote Originally Posted by Xtreme2Fear View Post
    Looks like progress! Thanks to both of ya for your efforts! Hoping we can get a platoon based leaderboard going soon!
    Hi!

    I assume that I can realize that in version 0.51 of ezStats. Stay tuned
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  14. #14

    Re: [ezStats2] Linking Battlelog Platoon memberlist

    Looking forward to it, our members are eager to see what the results are from this!
    One more thing, as we have multiple platoons, is it possible to give all these platoons a different leaderboard?
    Like have a dropdown menu or so for different leaderboards inside the administration area.

    Cheers!

  15. #15
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    314
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: [ezStats2] Linking Battlelog Platoon memberlist

    In future, you can syncronize your leaderboard with multiple platoons. If you want a different leaderboard for every platoon, then the easiest way is to install ezStats multiple times. Therefore you have to upload ezStats into different folders. You can use the same database, but you must use different table prefixes.

    Regards, ezzemm
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  16. #16
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    314
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: [ezStats2] Linking Battlelog Platoon memberlist

    The new version of ezStats is out now. Including syncronization with platoons
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

  17. #17

    Re: AW: [ezStats2] Linking Battlelog Platoon memberlist

    Quote Originally Posted by ezzemm View Post
    The new version of ezStats is out now. Including syncronization with platoons
    Sweet! Updating it now!
    Can't wait to show my platoon this.

    *After update*

    I noticed that my players are not getting added to the list. I've been syncing multiple times.
    All the members appear on the list in the back-end, but do not get added in the front end.
    Example:
    http://saskmilitia.com/ezStats2/

    Only shows 3 players for me, while we have 70+ members in the back-end.

    How can I get those players in there, with the correct stats?

    Also, noticed that players get added as PC players (Windows logo infront of em)
    *Checked that, players do get added as PC players, that's why it's not syncing correctly.
    Any fix?
    Last edited by Xtreme2Fear; 2012-03-31 at 20:04.

  18. #18
    ezStats programmer ezzemm's Avatar
    Join Date
    2011-08-18
    Location
    Germany
    Posts
    314
    BFBC2 PC
    ezzemm
    BF2
    siX|ezzemm
    Crysis2 PC
    ezzemm
    MOHW PC
    ezzemm
    Gamer IDs

    Steam ID: ezzemm

    AW: [ezStats2] Linking Battlelog Platoon memberlist

    Hi Xtreme2Fear!

    There was a bug in the first release of the platoon sync. In the actual version, the sync with PS3 and 360 platoons should work trouble-free.
    Please keep in mind, that in default settings, the Sync starts every fifth update of the player stats.

    Regards, ezzemm
    ezStats.org
    Clanleaderboard for Battlefield 4, Battlefield 3, Crysis 3, MoH Warfighter, XBOX Live and Playstation Network
    Serverviewer & RCON

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
P-STATS NETWORK FORUM LOGIN CREATE ACCOUNT