[MODDB] Steam Mod

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [RC] Steam Mod

Post by muggins » Thu Dec 09, 2010 4:12 pm

bprsk8r4272, I got it sorted, but yes, please have a look at Clan ATX.

The instructions you provided for the custom id url confused me, but I downloaded and installed Steam under Wine, created a profile, and found the source of my confusion. :roll:

I'll make a change to the links so they open a new tab instead of taking viewers away from the Clan page, but otherwise, your mod is perfect! Thanks again.
Muggins

User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [RC] Steam Mod

Post by Prosk8er » Thu Dec 09, 2010 4:54 pm

muggins wrote:bprsk8r4272, I got it sorted, but yes, please have a look at Clan ATX.

The instructions you provided for the custom id url confused me, but I downloaded and installed Steam under Wine, created a profile, and found the source of my confusion. :roll:

I'll make a change to the links so they open a new tab instead of taking viewers away from the Clan page, but otherwise, your mod is perfect! Thanks again.

glad to hear you got it sorted

wow i just noticed you were talking bout steam and not to mod i clicked that link and it said profile not found thats something with steam though not the mod

User avatar
muggins
Registered User
Posts: 1183
Joined: Fri Feb 22, 2008 5:12 pm
Location: Texas
Name: Donovan
Contact:

Re: [RC] Steam Mod

Post by muggins » Thu Dec 09, 2010 5:34 pm

Yes, by default there is no custom url for the Steam profile. I entered the number for my badge id in the custom url field on Steam, and all works as I imagined it would.

Now, to get these kids in the clan to do the same... :roll:
Muggins

User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [RC] Steam Mod

Post by Prosk8er » Thu Dec 09, 2010 8:32 pm

muggins wrote:Yes, by default there is no custom url for the Steam profile. I entered the number for my badge id in the custom url field on Steam, and all works as I imagined it would.

Now, to get these kids in the clan to do the same... :roll:
ah glad to hear
the mod will use either of these so they wont have to change anything
http://steamcommunity.com/profiles/76561197978787705
http://steamcommunity.com/id/prosk8er
they just have to use whats in bold so they can use
76561197978787705 or prosk8er

eric0279
Registered User
Posts: 244
Joined: Fri Apr 13, 2007 9:22 pm

Re: [RC] Steam Mod

Post by eric0279 » Wed Dec 15, 2010 9:28 am

How to integrate this check to the registration of members please:

Code: Select all

if (!preg_match("/^STEAM_[0-9]:[0-9]:[0-9]*$/", $steam))
				{
					$error[] = $user->lang['STEAMID_IS_NOT_VALIDE'];
}
Thanks

eric0279
Registered User
Posts: 244
Joined: Fri Apr 13, 2007 9:22 pm

Re: [RC] Steam Mod

Post by eric0279 » Sat Dec 18, 2010 9:18 pm

bump pls

User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [RC] Steam Mod

Post by Prosk8er » Sat Dec 18, 2010 9:25 pm

eric0279 wrote:How to integrate this check to the registration of members please:

Code: Select all

if (!preg_match("/^STEAM_[0-9]:[0-9]:[0-9]*$/", $steam))
				{
					$error[] = $user->lang['STEAMID_IS_NOT_VALIDE'];
}
Thanks
have you tryed to add it to includes/ucp/ucp_register.php

eric0279
Registered User
Posts: 244
Joined: Fri Apr 13, 2007 9:22 pm

Re: [RC] Steam Mod

Post by eric0279 » Sun Dec 19, 2010 12:58 am

add to includes/ucp/ucp_register.php > doesn't works :(

User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [RC] Steam Mod

Post by Prosk8er » Sun Dec 19, 2010 1:18 am

eric0279 wrote:add to includes/ucp/ucp_register.php > doesn't works :(
where did you add it try adding it after this

Code: Select all

				if ($data['email'] != $data['email_confirm'])
				{
					$error[] = $user->lang['NEW_EMAIL_ERROR'];
				}
also did you make sure you added 'STEAMID_IS_NOT_VALIDE' in the language file?

eric0279
Registered User
Posts: 244
Joined: Fri Apr 13, 2007 9:22 pm

Re: [RC] Steam Mod

Post by eric0279 » Sun Dec 19, 2010 3:17 am

doesn't works :(

Code: Select all

if (!sizeof($error))
			{
				if ($data['new_password'] != $data['password_confirm'])
				{
					$error[] = $user->lang['NEW_PASSWORD_ERROR'];
				}

				if ($data['email'] != $data['email_confirm'])
				{
					$error[] = $user->lang['NEW_EMAIL_ERROR'];
				}
				if (!preg_match('#^STEAM_0:[01]:[0-9]{2,8}$#', $steamid_joueur))
				{
					$error[] = $user->lang['STEAMID_IS_NO_VALIDE'];
				}
			}

you make sure you added 'STEAMID_IS_NOT_VALIDE' in the language file?
Yes.... (langage/fr/steamid.php) :

Code: Select all

'STEAMID_IS_NO_VALIDE'	  => 'Le format du STEAMID n\'est pas correct, la syntaxe correct est <font color="red">STEAM_0:X:XXXXXX</font>.',

I tested add to langage/fr/common.php and any change...

User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [RC] Steam Mod

Post by Prosk8er » Sun Dec 19, 2010 3:21 am

eric0279 wrote:doesn't works :(

Code: Select all

if (!sizeof($error))
			{
				if ($data['new_password'] != $data['password_confirm'])
				{
					$error[] = $user->lang['NEW_PASSWORD_ERROR'];
				}

				if ($data['email'] != $data['email_confirm'])
				{
					$error[] = $user->lang['NEW_EMAIL_ERROR'];
				}
				if (!preg_match('#^STEAM_0:[01]:[0-9]{2,8}$#', $steamid_joueur))
				{
					$error[] = $user->lang['STEAMID_IS_NO_VALIDE'];
				}
			}

you make sure you added 'STEAMID_IS_NOT_VALIDE' in the language file?
Yes.... (langage/fr/steamid.php) :

Code: Select all

'STEAMID_IS_NO_VALIDE'	  => 'Le format du STEAMID n\'est pas correct, la syntaxe correct est <font color="red">STEAM_0:X:XXXXXX</font>.',

I tested add to langage/fr/common.php and any change...
k i'll look into this some more

MaLeKo
Registered User
Posts: 210
Joined: Tue May 06, 2008 3:32 am

Re: [RC] Steam Mod

Post by MaLeKo » Sat Dec 25, 2010 8:29 am

Wouldn't it be a good idea to use Steam's openid to retrieve user's steamid instead?

http://steamcommunity.com/dev

User avatar
Prosk8er
Registered User
Posts: 1444
Joined: Sun Mar 12, 2006 3:30 am
Location: Rochester, NY
Name: Tyler
Contact:

Re: [RC] Steam Mod

Post by Prosk8er » Sat Dec 25, 2010 8:38 pm

MaLeKo wrote:Wouldn't it be a good idea to use Steam's openid to retrieve user's steamid instead?

http://steamcommunity.com/dev
nah i like it how it is its way easier

User avatar
keitzy
Registered User
Posts: 359
Joined: Thu Nov 12, 2009 6:32 am
Location: Esperance, Western Australia
Contact:

Re: [RC] Steam Mod

Post by keitzy » Fri Jan 07, 2011 3:53 pm

Mess wrote:Thanks, I meant with the online/offline text and blue/green/grey colored text though. But I haven't seen that done anywhere so its probably not possible. :)
This can be done.

Custom profile field PROFILE_STEAM_ID64

$xml = simplexml_load_file('"http://steamcommunity.com/profiles/' . $steam_id64 . '?xml=1"');

basicaly getting the $xml->online state and making the online state as a css class around the user avatar

$xml->avatarIcon // is the avatar
$xml->onlineState // is the online state

so make say a 2pix border around avatar pick
and make three different css classes.

.online {border:solid 2px blue;}
.ingame {border:solid 2px blue;}
.offline {border:solid 2px blue;}

I can write the script for you and post it back here.

I have to ask permission from someone first to use their steam_id sign in first b4 i go ahead and do it.
But it can be done.
Image

User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [RC] Steam Mod

Post by Mess » Fri Jan 07, 2011 6:57 pm

keitzy wrote:
Mess wrote:Thanks, I meant with the online/offline text and blue/green/grey colored text though. But I haven't seen that done anywhere so its probably not possible. :)
This can be done.

Custom profile field PROFILE_STEAM_ID64

$xml = simplexml_load_file('"http://steamcommunity.com/profiles/' . $steam_id64 . '?xml=1"');

basicaly getting the $xml->online state and making the online state as a css class around the user avatar

$xml->avatarIcon // is the avatar
$xml->onlineState // is the online state

so make say a 2pix border around avatar pick
and make three different css classes.

.online {border:solid 2px blue;}
.ingame {border:solid 2px blue;}
.offline {border:solid 2px blue;}

I can write the script for you and post it back here.

I have to ask permission from someone first to use their steam_id sign in first b4 i go ahead and do it.
But it can be done.
Thats great news!
What I was thinking was something like this:
  • Posts: 270
    Joined: Sun Mar 28, 2003 10:38 am
    Steam: Offline

    Posts: 270
    Joined: Sun Mar 28, 2003 10:38 am
    Steam: Online

    Posts: 270
    Joined: Sun Mar 28, 2003 10:38 am
    Steam: Ingame: Counter-Strike
If nothing is entered in the Profile field then it shouldnt show a status or label. :)

I'm not sure what you mean by borrowing a steam ID?

Locked

Return to “[3.0.x] MODs in Development”