AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   Convert STEAMID to Steam Community ID (https://forums.alliedmods.net/showthread.php?t=60899)

The JCS 11-19-2008 10:29

Re: Convert STEAMID to Steam Community ID
 
Quote:

Originally Posted by 3RMAC (Post 715597)
Is there a way to check it see if it's empty, if so end?

PHP Code:

if(!empty($string)) { showInfo(); } 


bl4nk 11-19-2008 13:03

Re: Convert STEAMID to Steam Community ID
 
if (sizeof($string) > 0) { showInfo(); }

8088 11-19-2008 21:33

Re: Convert STEAMID to Steam Community ID
 
Quote:

Originally Posted by 3RMAC (Post 715597)
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;



3RMAC 11-21-2008 11:45

Re: Convert STEAMID to Steam Community ID
 
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.

L. Duke 11-21-2008 12:14

Re: Convert STEAMID to Steam Community ID
 
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."

8088 11-21-2008 18:47

Re: Convert STEAMID to Steam Community ID
 
Nice suggestion, Mr. Duke. I'll add that too.
Quote:

Originally Posted by 3RMAC (Post 716511)
Note: I can't get the strlen to work.

You know where to find me ;)

3RMAC 11-23-2008 13:01

Re: Convert STEAMID to Steam Community ID
 
Quote:

Originally Posted by L. Duke (Post 716517)
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.

The JCS 11-24-2008 16:16

Re: Convert STEAMID to Steam Community ID
 
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

DontWannaName 12-13-2008 06:07

Re: Convert STEAMID to Steam Community ID
 
Quote:

Originally Posted by BAILOPAN (Post 531878)
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 :D http://topnotch.hlstatsx.com/?mode=p...o&player=67355

faken 12-23-2008 13:33

Re: Convert STEAMID to Steam Community ID
 
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! ;)


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

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