Raised This Month: $64 Target: $400
 16% 

Steam Group XML help ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SychO
Junior Member
Join Date: Jan 2016
Old 01-10-2016 , 14:10   Steam Group XML help ?
Reply With Quote #1

Greetings,

i have a problem with my steam group XML,, the thing is that there is 105 members but in the XML

the members SteamIDs shown are very lower than 105

How can i see all steam ids ?

http://steamcommunity.com/groups/dza...listxml/?xml=1

Thank YOU

Last edited by asherkin; 01-10-2016 at 14:46.
SychO is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 01-10-2016 , 15:18   Re: Steam Group XML help ?
Reply With Quote #2

Probably because it's outdated.
look into Web API
__________________

Last edited by Mitchell; 01-10-2016 at 15:18.
Mitchell is offline
SychO
Junior Member
Join Date: Jan 2016
Old 01-10-2016 , 15:51   Re: Steam Group XML help ?
Reply With Quote #3

i checked the Web API i can't find anything about group members
SychO is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 01-10-2016 , 16:26   Re: Steam Group XML help ?
Reply With Quote #4

I can see all members with chrome and firefox. Try the show source function if you can't.
__________________

Last edited by Impact123; 01-10-2016 at 16:27.
Impact123 is offline
SychO
Junior Member
Join Date: Jan 2016
Old 01-10-2016 , 16:47   Re: Steam Group XML help ?
Reply With Quote #5

oh,, i am really sorry it appears that the problem was in my browser,,

well,, i have another problem then,, the php codes that i am using

and i am a very beginner

the page takes long to load

what could be the problem

and i am sorry again
SychO is offline
Akuba
Senior Member
Join Date: Oct 2013
Old 01-10-2016 , 17:57   Re: Steam Group XML help ?
Reply With Quote #6

If you need php, you could use this. I use this method to get various information for my Server: http://pastebin.com/uxBMMFaS
replace YOURGROUPNAME with the customurl you gave your steamgroup.
It is requiered that your host has it enabled that file_get_contents can access other websites. If not, it will not work, regradless which method you will choose.

Also, if you do not post your code, we cannot help you.

Side Note: You should stick to xml as much as possible, I just use the above method because informations I need are not available in xml or with the api.

Last edited by Akuba; 01-10-2016 at 18:08.
Akuba is offline
Disowned
Member
Join Date: Oct 2015
Old 01-11-2016 , 16:58   Re: Steam Group XML help ?
Reply With Quote #7

If you're trying to see if a user is apart of a specific group in a script, you could also use 'Steam_RequestGroupStatus(client, groupAccountID);' from the SteamTools extension. This would allow you to kick users based on groups by checking their group status in the 'OnClientConnect' forward.
Disowned is offline
SychO
Junior Member
Join Date: Jan 2016
Old 01-12-2016 , 13:39   Re: Steam Group XML help ?
Reply With Quote #8

let me explain to you what i have exactly done,

Request info from the group XML, the XML shows the members SteamIDs,

and i want to make a page where the group members are shown with their names avatars and stat

like this

PHP Code:

$steamurl 
"http://steamcommunity.com/groups/groupid";


       
$xml file_get_contents($steamurl.'/memberslistxml/');
    if(
strpos($xml,'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01')===FALSE){
    
$parsed simplexml_load_string($xml);

                    foreach (
$parsed->members->steamID64 as $mem) {
                
                
$xml file_get_contents('http://steamcommunity.com/profiles/' .$mem'/?xml=1');
                
$parsed simplexml_load_string($xml); 
and that successfully showed the group members, if you want the online page link i can post it

the problem is that the page takes time loading,, the more members in the group the more load time
SychO is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 01-12-2016 , 14:24   Re: Steam Group XML help ?
Reply With Quote #9

Quote:
Originally Posted by SychO View Post
let me explain to you what i have exactly done,

Request info from the group XML, the XML shows the members SteamIDs,

and i want to make a page where the group members are shown with their names avatars and stat

like this

PHP Code:

$steamurl 
"http://steamcommunity.com/groups/groupid";


       
$xml file_get_contents($steamurl.'/memberslistxml/');
    if(
strpos($xml,'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01')===FALSE){
    
$parsed simplexml_load_string($xml);

                    foreach (
$parsed->members->steamID64 as $mem) {
                
                
$xml file_get_contents('http://steamcommunity.com/profiles/' .$mem'/?xml=1');
                
$parsed simplexml_load_string($xml); 
and that successfully showed the group members, if you want the online page link i can post it

the problem is that the page takes time loading,, the more members in the group the more load time
Of course it's going to take time to load for the following reason:
1) When you request the webpage, the webserver executes the php code on itself.
2) The php code tells the server to initiate a web request to the url for the group's member list.
3) The server then waits(pauses php execution) until the webserver it's contacting returns a web response.
4) The php code once it receives the xml response then parses it.
Steps 5 to 7 repeat for each member in the steam group:
5) The php code tells the server to initiate a web request to the member's profile
6) The server then waits(pauses php execution) until the webserver it's contacting returns a web response for the member's profile.
7) Once it has the profile xml, it then parses it.
WildCard65 is offline
SychO
Junior Member
Join Date: Jan 2016
Old 01-12-2016 , 14:45   Re: Steam Group XML help ?
Reply With Quote #10

so basically there is no way to make this work better is there ?
SychO 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 05:11.


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