Raised This Month: $120 Target: $400
 30% 

Convert STEAMID to Steam Community ID


Post New Thread Reply   
 
Thread Tools Display Modes
The JCS
SourceMod Donor
Join Date: Jan 2007
Location: Brazil
Old 11-19-2008 , 11:29   Re: Convert STEAMID to Steam Community ID
Reply With Quote #101

Quote:
Originally Posted by 3RMAC View Post
Is there a way to check it see if it's empty, if so end?
PHP Code:
if(!empty($string)) { showInfo(); } 
The JCS is offline
Send a message via MSN to The JCS
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 11-19-2008 , 14:03   Re: Convert STEAMID to Steam Community ID
Reply With Quote #102

if (sizeof($string) > 0) { showInfo(); }
bl4nk is offline
8088
Veteran Member
Join Date: Jan 2008
Old 11-19-2008 , 22:33   Re: Convert STEAMID to Steam Community ID
Reply With Quote #103

Quote:
Originally Posted by 3RMAC View Post
Also, for people who have not put in the in their steam id yet I get an ssl error, which is odd.
I explained this here ;)
Quote:
I have only noticed this error on people with the show id check, but no steam id. Is there a way to check it see if it's empty, if so end?
On my forums I have the SteamID field set to 'required' and checked by a regular expression:
PHP Code:
STEAM_[0-9]:[0-9]:[0-9]{4,} 
If you don't want to make it a required field you could add some code like bl4nk or The JCS suggested. I would prefer to use strlen so you can also check wether the SteamID has the minimum required length of 14 characters. Otherwise you would still end up with SSL errors if a user has entered 'lol' in his field. Untested example (add after line 17 and before 20):
PHP Code:
if (strlen($profilefield['value']) < 14) {
$profilefield['value']='invalid SteamID';
return;

8088 is offline
3RMAC
Junior Member
Join Date: Jul 2006
Old 11-21-2008 , 12:45   Re: Convert STEAMID to Steam Community ID
Reply With Quote #104

I like 8088's idea. I have people who are putting their friends name. Requiring is a good idea, I just hope they can figure it out.

Note: I can't get the strlen to work.

Last edited by 3RMAC; 11-21-2008 at 12:52.
3RMAC is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 11-21-2008 , 13:14   Re: Convert STEAMID to Steam Community ID
Reply With Quote #105

Put a note below the steam ID entry box that says something like "Your Steam ID is NOT your login user name. If you don't know your steam ID, use The Steam ID Finder or type 'status' in the console while connected to a server."
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
8088
Veteran Member
Join Date: Jan 2008
Old 11-21-2008 , 19:47   Re: Convert STEAMID to Steam Community ID
Reply With Quote #106

Nice suggestion, Mr. Duke. I'll add that too.
Quote:
Originally Posted by 3RMAC View Post
Note: I can't get the strlen to work.
You know where to find me ;)
8088 is offline
3RMAC
Junior Member
Join Date: Jul 2006
Old 11-23-2008 , 14:01   Re: Convert STEAMID to Steam Community ID
Reply With Quote #107

Quote:
Originally Posted by L. Duke View Post
Put a note below the steam ID entry box that says something like "Your Steam ID is NOT your login user name. If you don't know your steam ID, use The Steam ID Finder or type 'status' in the console while connected to a server."
That's basically what I did. Let them know we don't want their login name, but rather their steam id, etc. Combined that with the steam checker from 8088.
3RMAC is offline
The JCS
SourceMod Donor
Join Date: Jan 2007
Location: Brazil
Old 11-24-2008 , 17:16   Re: Convert STEAMID to Steam Community ID
Reply With Quote #108

To find the GroupID (used on L4D), you can try:
GroupURL ID - 103582791429521408.
GroupURL ID can be found on the "Enter Chat" link on the group page.

eg:
http://steamcommunity.com/groups/portaltf2 -> steam://friends/joinchat/103582791430044186
103582791430044186 - 103582791429521408 = 522778
(The "1035827914" will never be changed)

I can't see a functional application to this, but I think VALVe will release more stuff related to the groups...

Edit:
You can access the group page using: http://steamcommunity.com/gid/GroupURLID
The first group is.... VALVe official group -.-' : http://steamcommunity.com/gid/103582791429521412

Last edited by The JCS; 11-24-2008 at 17:21.
The JCS is offline
Send a message via MSN to The JCS
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 12-13-2008 , 07:07   Re: Convert STEAMID to Steam Community ID
Reply With Quote #109

Quote:
Originally Posted by BAILOPAN View Post
That's pretty awesome, voogru. I'm curious as to how you discovered this -- observation with some trial and error?

out of boredom I went and looked up the first few steamids to see how many were definitely valve employees:
Code:
steam_0:0:1 (alfred)
steam_0:1:1 (ErikJ)
steam_0:1:2 (alfred)
steam_0:0:5 (greg coomer)
steam_0:0:6 (john cook)
steam_0:1:7 (taylor sherman)
steam_0:0:8 (chris bokitch)
steam_0:1:9 (lyncho?)
steam_0:1:10 (eric smith)
Confirmed EricS http://topnotch.hlstatsx.com/?mode=p...o&player=67355
__________________

DontWannaName is offline
faken
Junior Member
Join Date: Dec 2008
Old 12-23-2008 , 14:33   Re: Convert STEAMID to Steam Community ID
Reply With Quote #110

Hello all! Help please! I Can write even not on a theme in the given theme!
I wish to return back in mine STEAM account my # profiles:
http://steamcommunity.com/id/fakenz0r ---> http://steamcommunity.com/profiles/76561197992206829 (that is at me now http://steamcommunity.com/id/fakenz0r, and I I want http://steamcommunity.com/profiles/76561197992206829)
As to me it to make prompt please.
---
Thankful in advance!
PS: Excuse me for bad English! I communicate with you by means of the translator on a computer! ;)
faken 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 14:43.


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