Raised This Month: $105 Target: $400
 26% 

Convert STEAMID to Steam Community ID


Post New Thread Reply   
 
Thread Tools Display Modes
8088
Veteran Member
Join Date: Jan 2008
Old 05-09-2011 , 21:41   Re: Convert STEAMID to Steam Community ID
Reply With Quote #281

No, it wouldn't. As a matter of fact it has already been shared before in this topic.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Jоnny
Senior Member
Join Date: Jun 2007
Old 05-10-2011 , 09:10   Re: Convert STEAMID to Steam Community ID
Reply With Quote #282

steamID converter


It works here: http://www.joe.to/moo/sid_convert.php

Last edited by Jоnny; 05-10-2011 at 09:16.
Jоnny is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Old 05-10-2011 , 13:49   Re: Convert STEAMID to Steam Community ID
Reply With Quote #283

Apparently http://steamidconverter.com requires it to start with STEAM_0. I'm pretty sure most converters do work with STEAM_1 (the last number is simply ignored, as it's not used for the conversion).
__________________
DJ Tsunami is offline
serpent
New Member
Join Date: Nov 2010
Old 05-11-2011 , 19:50   Re: Convert STEAMID to Steam Community ID
Reply With Quote #284

Quote:
Originally Posted by 8088 View Post
No, it wouldn't. As a matter of fact it has already been shared before in this topic.
thx mate

I found only the one you used to have on noobsticks but it shows only profile link, not the same as the one you have now on steamfinder.

Can you zip it or point to post wich have it, i just went trough 28 pages and couldn't find it?
serpent is offline
8088
Veteran Member
Join Date: Jan 2008
Old 05-12-2011 , 14:14   Re: Convert STEAMID to Steam Community ID
Reply With Quote #285

Quote:
Originally Posted by DJ Tsunami View Post
Apparently http://steamidconverter.com requires it to start with STEAM_0. I'm pretty sure most converters do work with STEAM_1 (the last number is simply ignored, as it's not used for the conversion).
Whoops, silly bug. It should be fixed now: http://steamidconverter.com/STEAM_1:0:16766998
Thanks for pointing it out.
Quote:
Originally Posted by serpent View Post
I found only the one you used to have on noobsticks but it shows only profile link, not the same as the one you have now on steamfinder.

Can you zip it or point to post wich have it, i just went trough 28 pages and couldn't find it?
As far as I know there's no fully functional package to download, but there have been posted some examples on how to achieve this. You can also have a look at this: http://forums.alliedmods.net/showpos...5&postcount=68

Posting my own code won't do much good as it's still buggy and optimised for its own specific environment.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Xilver266
Member
Join Date: Apr 2011
Old 06-12-2011 , 15:34   Re: Convert STEAMID to Steam Community ID
Reply With Quote #286

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.
Hi, this php code does not work for me. (Attachment steamid.zip)
Look at my code

Code:
<?php /*
SteamID conversion tool by 8088 & KoST
For more info, visit AlliedModders @ http://forums.alliedmods.net/showthread.php?t=60899
*/
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>SteamID Converter</title>
    </head>
    <body>
    
<style>
a:visited {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
    color: #111;
}
a:link {
    font-weight: bold;
    color: #333;
    text-decoration: none;
}
input.button:hover {
    border: 2px solid #000000;
}
input.button {
    border: 2px solid #555555;
    border-radius: 5px 5px 5px 5px;
    cursor: pointer;
    font-weight: bold;
}
body {
    background-color: #D3D3D3;
}
legend {
    background-color: #999999;
    border: 2px solid #555555;
    border-radius: 10px 10px 10px 10px;
    padding: 0 10px;
}
fieldset {
    background-color: #DDDDDD;
    border: 2px solid #555555;
    border-radius: 10px 10px 10px 10px;
    font-weight: bold;
}
li {
    list-style: none outside none;
    margin-left: -30px;
}
.blockhead {
    background-color: #DDDDDD;
    border: 2px dashed #555555;
    border-radius: 30px 30px 30px 30px;
    font-family: arial;
    font-size: 20px;
    margin-bottom: 50px;
    padding: 10px;
    text-align: center;
}
</style>
    
<table align="center" cellspacing="0" cellpadding="0" width="100%">
    <tr valign="top">
        
        
            <td valign="top">
                <form method="get" action="">
<h2 class="blockhead">Introduzca un SteamID, friendID o customURL para buscar el respectivo ID</h2> 
        <fieldset>
            <legend>Ejemplos</legend>
            <ul>
                <li type="disc"><span style="font-size:14px;">STEAM_0:<span style="color:#ff6600;">X</span>:<span style="color:#ff6600;">XXXX</span></span></li>
                <li><span style="font-size:14px;">7656119<span style="color:#ff6600;">XXXXXXXXXX</span></span></li>
                <li><span style="font-size:14px;color:#ff6600;">&lt;customURL&gt;</span></li>
                <li><span style="font-size:14px;">http://steamcommunity.com/profiles/7656119<span style="color:#ff6600;">XXXXXXXXXX</span></span></li>
                <li><span style="font-size:14px;">http://steamcommunity.com/id/<span style="color:#ff6600;">&lt;customURL&gt;</span></span></li>
            </ul>
         </fieldset>
                <br>
                <fieldset>
                    <legend>Formulario</legend>
                    <table>
                        <tbody>
                            <tr>
                                <td>SteamID / FriendID / customURL:<br>
                                    <input type="text" size="70" name="s" value="<?php echo htmlentities(stripslashes($_GET['s']),ENT_QUOTES); ?>">
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <input class="button" type="submit" accesskey="s" value="Enviar">
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </fieldset>
                </form>
                <br />

        <?php
        $ret=get_input_type($_GET['s']);
        if ($ret==''){

        }else if (is_string($ret)){
            echo '<div><fieldset><legend>Resultado</legend><table><tbody><tr><td>';
            echo $ret;
            echo '</td></tr></tbody></table></fieldset>';
            if ($_GET['s']!=='') {    echo $notice; }
            echo '</div>';
        }else if (is_array($ret)){
            echo '<div><fieldset><legend>Resultado</legend><table><tbody><tr><td>';
            convert($ret['type'],$ret['data']);
            echo '</td></tr></tbody></table></fieldset>';
            if ($_GET['s']!=='') {    echo $notice;}
            echo '</div>';
        }

        function convert($type,$data){
            switch($type){
                case 'steamid':
                $main='http://steamcommunity.com/profiles/'.bcadd((($data['auth']*2)+$data['server']),'76561197960265728');
                echo 'FriendID: <a href="'.$main.'" title="Visit Steam Community page" target="blank">'.bcadd((($data['auth']*2)+$data['server']),'76561197960265728').'</a>';
                break;
                case 'friendid':
                if (substr($data,-1)%2==0) $server=0; else $server=1;
                $auth=bcsub($data,'76561197960265728');
                if (bccomp($auth,'0')!=1) {echo "Error: invalid FriendID or SteamID";return;}
                $auth=bcsub($auth,$server);
                $auth=bcdiv($auth,2);
                echo 'SteamID: STEAM_0:'.$server.':'.$auth;
                break;
            }
        }

        function get_input_type($data){
            $data=strtolower(trim($data));
            if ($data!='') {
                if (strlen($data)>80) return "too long";
                if (substr($data,0,7)=='steam_0') {
                    $tmp=explode(':',$data);
                    if ((count($tmp)==3) && is_numeric($tmp[1]) && is_numeric($tmp[2])){
                        return array('type'=>'steamid','data'=>array('auth'=>$tmp[2],'server'=>$tmp[1]));
                    }else{
                        return "Error: invalid SteamID";
                    }
                }else if ($p=strrpos($data,'/')){
                    $tmp=explode('/',$data);
                    foreach ($tmp as $item){
                        if (is_numeric($item)){
                            $a=$item;
                            break;
                        }
                    }
                    if ((is_numeric($a)) && (ereg('7656119', $a))) return array('type'=>'friendid','data'=>$a);
                    else {
                        $xml = @simplexml_load_file($data."?xml=1");
                        $steamid64=$xml->steamID64;
                        if (!ereg('7656119', $steamid64)) return "Error: invalid link";
                        else return array('type'=>'friendid','data'=>$steamid64);
                    }
                }else if ((is_numeric($data)) && (ereg('7656119', $data))){
                    return array('type'=>'friendid','data'=>$data);
                }else{
                    $xml = @simplexml_load_file("http://steamcommunity.com/id/".$data."?xml=1");
                    $steamid64=$xml->steamID64;
                    if (!ereg('7656119', $steamid64)) return "Error: invalid input";
                    else return array('type'=>'friendid','data'=>$steamid64);
                }
            }else{
                return "";
            }
        }
        ?>
                    <center><span class="smallfont" style="color:#444;"><font size="3">Visita <a href="http://steamidconverter.com">SteamIdConverter.com</a> para utilizar la versión mejorada.</font></span></center><br />
                    <font size="2">
                    <span class="smallfont" style="color:#444;"><center>Gracias a <a href="http://forums.alliedmods.net/member.php?u=2557" title="voogru" target="blank">voogru</a> por este algoritmo a <a href="http://forums.alliedmods.net/member.php?u=6220" title="KoST">KoST</a> por la conversión a php, y a <a href="http://www.noobsticks.com/members/8088/" title="8088">8088</a> por su script. <br />Para obtener más información acerca de cómo convertir a SteamIDs FriendIDs y viceversa, Visita: <br>
                    <a href="http://forums.alliedmods.net/showthread.php?t=60899" title="Allied Modders" target="blank"><i>Allied Modders : Convert STEAMID to Community ID</i></a>.<br /><br /><b>WebExtra By Xilver266</b></center></span>
                    </font>
        </td>
    </tr>
</table>
    </body>
</html>
Look at my Web http://clan-assassins.22web.net/steamid.php

Help Please!
Xilver266 is offline
8088
Veteran Member
Join Date: Jan 2008
Old 06-12-2011 , 16:09   Re: Convert STEAMID to Steam Community ID
Reply With Quote #287

Quote:
500 Internal Server Error
Try the original script without changing anything and see if that works.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Xilver266
Member
Join Date: Apr 2011
Old 06-12-2011 , 16:49   Re: Convert STEAMID to Steam Community ID
Reply With Quote #288

Nothing, still does not work
Xilver266 is offline
8088
Veteran Member
Join Date: Jan 2008
Old 06-12-2011 , 17:48   Re: Convert STEAMID to Steam Community ID
Reply With Quote #289

It's still returning a 500. Try this:
PHP Code:
<?php
if(function_exists(bcadd)) echo "bcmath is supported<br>";
else echo 
"bcmath is NOT supported<br>";
if(
function_exists(simplexml_load_file)) echo "simplexml is supported";
else echo 
"simplexml is NOT supported";
?>
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Xilver266
Member
Join Date: Apr 2011
Old 06-12-2011 , 23:29   Re: Convert STEAMID to Steam Community ID
Reply With Quote #290

Hi!

bcmath is NOT supported

simplexml is supported
Xilver266 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 18:37.


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