Raised This Month: $12 Target: $400
 3% 

Convert STEAMID to Steam Community ID


Post New Thread Reply   
 
Thread Tools Display Modes
The JCS
AlliedModders Donor
Join Date: Jan 2007
Location: Brazil
Old 12-23-2008 , 19:40   Re: Convert STEAMID to Steam Community ID
Reply With Quote #111

Get the XML file: http://steamcommunity.com/id/fakenz0r?xml=1
Look for the steamID64 value: <steamID64>76561197992206829</steamID64>
The JCS is offline
Send a message via MSN to The JCS
faken
Junior Member
Join Date: Dec 2008
Old 12-24-2008 , 00:10   Re: Convert STEAMID to Steam Community ID
Reply With Quote #112

The JCS Explain please as to me to edit this page http://steamcommunity.com/id/fakenz0r?xml=1?
As I understand it is necessary to remove a word fakenz0r in a line <customURL> fakenz0r </customURL>, but I do not know how it with to do. It by means of the program is done?
--
Thankful in advance!
faken is offline
The JCS
AlliedModders Donor
Join Date: Jan 2007
Location: Brazil
Old 12-24-2008 , 11:08   Re: Convert STEAMID to Steam Community ID
Reply With Quote #113

Do you need the value of customURL?
If you are using php, you need to load the page and read it with any XML function
The JCS is offline
Send a message via MSN to The JCS
8088
Veteran Member
Join Date: Jan 2008
Old 12-27-2008 , 04:13   Re: Convert STEAMID to Steam Community ID
Reply With Quote #114

With simplexml_load_file you can easily retrieve the FriendID to eventually get the SteamID.

If you combine this with this:
PHP Code:
$xml=simplexml_load_file('http://steamcommunity.com/id/'.$input.'?xml=1');
$friendid =$xml->steamID64;
if (!
ereg('765611979'$friendid)) return "Error: invalid link";
else 
// calculate SteamID 
you should get what you seem to be asking for. I hope...

You can try it here.
__________________
steamID converter with OpenSearch browser plugin

Last edited by 8088; 12-27-2008 at 04:16.
8088 is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 12-30-2008 , 07:04   Re: Convert STEAMID to Steam Community ID
Reply With Quote #115

PHP Code:
        private string GetFriendID(string authid)
        {
            
authid.Replace("STEAM_""");
            
string[] split authid.Split(':');
            return 
"765611979" + ((Convert.ToInt64(split[2]) * 2) + 60265728 Convert.ToInt64(split[1])).ToString();
        } 
C# Version
Styles is offline
Send a message via AIM to Styles
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 01-14-2009 , 16:45   Re: Convert STEAMID to Steam Community ID
Reply With Quote #116

Quote:
Originally Posted by styles View Post
PHP Code:
        private string GetFriendID(string authid)
        {
            
authid.Replace("STEAM_""");
            
string[] split authid.Split(':');
            return 
"765611979" + ((Convert.ToInt64(split[2]) * 2) + 60265728 Convert.ToInt64(split[1])).ToString();
        } 
C# Version
I used your code to make a little program. I use this to lookup player names of people on my banlist.

http://tchalo.com/bman_/progs/SteamConvert.exe
bman87 is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 01-18-2009 , 08:44   Re: Convert STEAMID to Steam Community ID
Reply With Quote #117

nice tool
__________________
siosios is offline
8088
Veteran Member
Join Date: Jan 2008
Old 01-26-2009 , 13:16   Re: Convert STEAMID to Steam Community ID
Reply With Quote #118

I've received some requests to share the code I used to create this page, so I've attached a complete, working page below. It's nothing more than a compilation of what has been said/shared before in this thread.
Attached Files
File Type: zip steamid.zip (1.5 KB, 1000 views)
__________________
steamID converter with OpenSearch browser plugin

Last edited by 8088; 10-26-2010 at 11:36. Reason: replaced attachment with community id -> SteamID fix
8088 is offline
Chris-_-
SourceMod Donor
Join Date: Oct 2008
Old 01-27-2009 , 13:15   Re: Convert STEAMID to Steam Community ID
Reply With Quote #119

Sweet, was thinking about PM'ing you about that one yea.
Cheers for sharing!
Chris-_- is offline
Maurice
Senior Member
Join Date: Nov 2006
Location: Netherlands
Old 01-29-2009 , 17:49   Re: Convert STEAMID to Steam Community ID
Reply With Quote #120

Quote:
Originally Posted by 8088 View Post
I've received some requests to share the code I used to create this page, so I've attached a complete, working page below. It's nothing more than a compilation of what has been said/shared before in this thread.
Thanks alot for making this code and even more for sharing it but it seems ive a problem. When i try to convert Here a steamID or communityID i get a blank output.
__________________
Luck? Luck is only one feeling of amazement concerning a seemingly incidental circumstance which one himself must create.
Maurice is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:45.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode