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

Convert STEAMID to Steam Community ID


Post New Thread Reply   
 
Thread Tools Display Modes
8088
Veteran Member
Join Date: Jan 2008
Old 01-29-2009 , 21:35   Re: Convert STEAMID to Steam Community ID
Reply With Quote #121

Make sure your php has bcadd support. Also, enabling error reporting may help.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 01-30-2009 , 22:12   Re: Convert STEAMID to Steam Community ID
Reply With Quote #122

thanks 8088
__________________
siosios is offline
devil001
Member
Join Date: Feb 2008
Old 02-13-2009 , 04:32   Re: Convert STEAMID to Steam Community ID
Reply With Quote #123

Hey 8088,

when I included the last attached file from you in vbulletin it shows up good but doesnt work correctly. Whenever I hit the submit button it will just goto http://forumurl.com/index.php?s=87545

could you please attach the module you use?
__________________
Host Mist - Helping People Say Hello World
Shared | VPS | Dedicated Hosting
Backup-Spot
Secure,Fast and Reliable Offsite Backups
devil001 is offline
MadMakz
SourceMod Donor
Join Date: Oct 2008
Old 02-14-2009 , 12:34   Re: Convert STEAMID to Steam Community ID
Reply With Quote #124

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.
Great script!
But, any way to cover L4D idīs also? They use STEAM_1:....

Last edited by MadMakz; 02-14-2009 at 12:38.
MadMakz is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 02-15-2009 , 09:32   Re: Convert STEAMID to Steam Community ID
Reply With Quote #125

thanks again 8088, the below link is how it turned out on my site

http://www.n00bunlimited.net/index.php?pageid=steam

sio
__________________
siosios is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 02-15-2009 , 09:35   Re: Convert STEAMID to Steam Community ID
Reply With Quote #126

Quote:
Originally Posted by devil001 View Post
Hey 8088,

when I included the last attached file from you in vbulletin it shows up good but doesnt work correctly. Whenever I hit the submit button it will just goto http://forumurl.com/index.php?s=87545

could you please attach the module you use?
just edit the code and add:
<input type="hidden" name="pageid" value="xxx" />
(xxx= your vb pageid)
below:
<td>SteamID / FriendID / customURL:<br>

sio
__________________
siosios is offline
8088
Veteran Member
Join Date: Jan 2008
Old 02-15-2009 , 12:38   Re: Convert STEAMID to Steam Community ID
Reply With Quote #127

Quote:
Originally Posted by devil001 View Post
could you please attach the module you use?
See siosios's reply. This can also be used:
PHP Code:
<input type="hidden" name="pageid" value="<?php echo $_GET['pageid']; ?>" />
Quote:
Originally Posted by MadMakz View Post
But, any way to cover L4D idīs also? They use STEAM_1:....
As far as I know a SteamID is a unique ID to identify a Steam user, regardless the games he/she has installed. If I play Counter-Strike 1.6 I have the exact same SteamID as when I play Left 4 Dead. Also, I don't see what this has to do with this script.
Quote:
Originally Posted by siosios View Post
Thanks for the feedback, it's nice to see that it worked for you.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
siosios
SourceMod Donor
Join Date: Jan 2008
Old 02-15-2009 , 12:48   Re: Convert STEAMID to Steam Community ID
Reply With Quote #128

im thinking about adding some code so it reads the xml and pulls back info for <vacBanned>0</vacBanned> and displays whether this player has ever been vac banned on another engine, kinda like the plugin listed over in the approved section.

http://forums.alliedmods.net/showthread.php?t=80942

just thinking out loud

sio
__________________

Last edited by siosios; 02-15-2009 at 12:50.
siosios is offline
WaLLy3K
Junior Member
Join Date: May 2008
Location: Queensland, Australia.
Old 02-16-2009 , 22:06   Re: Convert STEAMID to Steam Community ID
Reply With Quote #129

Quote:
Originally Posted by siosios View Post
im thinking about adding some code so it reads the xml and pulls back info for <vacBanned>0</vacBanned> and displays whether this player has ever been vac banned on another engine, kinda like the plugin listed over in the approved section.

http://forums.alliedmods.net/showthread.php?t=80942

just thinking out loud

sio
http://files.w3k.mbpv.org/demos/sid_convert.php

Quote:
Originally Posted by 8088 View Post
]As far as I know a SteamID is a unique ID to identify a Steam user, regardless the games he/she has installed. If I play Counter-Strike 1.6 I have the exact same SteamID as when I play Left 4 Dead. Also, I don't see what this has to do with this script.
He's saying in other words that a FID for STEAM_0:1:2188497 will return the same FID as STEAM_1:1:2188497 and if there's anyone that's corrected this script breaking error. The problem is that sID to fID has a hardcoded 0 - at least in the php version in this thread and it's a problem with logged DB's that already have _0: recorded.

This is a very crap hack, but right now it's working with a couple of ID's I'm testing it on:

PHP Code:
    function fID2sID($id64)
    {
        
$id bcsub($id64'76561197960265728');
        if(
bcmod(bcdiv($id642), 3) == 0) { $auth1 0; }else{ $auth1 1; }
        if(
bcmod($id642) == 0) { $auth2 0; }else{ $auth2 1; }
        return 
"STEAM_".$auth1.":".$auth2.":".bcdiv($id2);
    } 
*Edit: Scratch that, I didn't test it enough before heading off to work.
__________________


Last edited by WaLLy3K; 02-17-2009 at 07:34.
WaLLy3K is offline
Send a message via MSN to WaLLy3K
siosios
SourceMod Donor
Join Date: Jan 2008
Old 02-16-2009 , 23:26   Re: Convert STEAMID to Steam Community ID
Reply With Quote #130

i havent dug into it so far wally due to rewriting my banlist and what not but ill show mine soon enough (i hope, lol)

sio
__________________
siosios 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 06:38.


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