• Resolved iamchris48

    (@iamchris48)


    When I try to register users via Steam, the 64bit steam id is used for the name instead of the player’s steam account nickname. After looking to see where the Steam API data is called, I found this line:

    $temp['username'] = isset($profileData->personaname) ? $profileData->personaname : '';

    Is this supposed to be happening? The API states that personaname should return the player’s steam name. I am confused as to why the id is being returned instead however.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Heateor Support

    (@heateor)

    It means “personaname” field in your Steam profile data is blank which leaves “$temp[‘username’]” empty and plugin checks for other profile fields to be used as username.

    iamchris48

    (@iamchris48)

    It means “personaname” field in your Steam profile data is blank which leaves “$temp[‘username’]” empty and plugin checks for other profile fields to be used as username.

    I understand this, but this doesn’t correlate to the result when I try testing the API on my own. Using the same API key and Steam account I tested for the plugin, I receive this response from the API:

    
    {
      "response": {
        "players": [
          {
            "steamid": "76561198071647653",
            "communityvisibilitystate": 3,
            "profilestate": 1,
            "personaname": "✘²",
            "lastlogoff": 1573683971,
            "commentpermission": 1,
            "profileurl": "https://steamcommunity.com/id/xthenew/",
            "avatar": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/b5/b55618de3c0277c55f0d8a1b5969219eaf61101e.jpg",
            "avatarmedium": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/b5/b55618de3c0277c55f0d8a1b5969219eaf61101e_medium.jpg",
            "avatarfull": "https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/b5/b55618de3c0277c55f0d8a1b5969219eaf61101e_full.jpg",
            "personastate": 0,
            "primaryclanid": "103582791455813684",
            "timecreated": 1347759292,
            "personastateflags": 0
          }
        ]
      }
    }
    

    profileurl,avatar,and steamid work for the plugin. Personaname however seemingly returns nothing(Even though the API does return a value for personaname).

    Plugin Contributor Heateor Support

    (@heateor)

    Personaname however seemingly returns nothing(Even though the API does return a value for personaname).

    Then it means, the characters in the Personaname field of your Steam profile are not allowed in WordPress user profile’s username field.

    Sorry for the late reply, that appears to have been the issue. Modifying my steam seemed to do the trick.

    Plugin Contributor Heateor Support

    (@heateor)

    Okay. No problem. Thanks for the update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.