Jump to content
Sign in to follow this  

Primitīvs steam grupas informācijas logs.

Recommended Posts

define( "STEAM_GID" , "WAMLV" );/* Ievadi savu steam grupas id. Piemērs: Pilnais grupas links: https://steamcommunity.com/groups/WAMLV ievadi daļu aiz /groups/ */
	$url = "https://steamcommunity.com/groups/".STEAM_GID."/memberslistxml?xml=1";
	$xml = simplexml_load_file($url);
	$memberscount	= $xml->memberCount;
	$name = $xml->groupDetails->groupName;
	$summary = $xml->groupDetails->summary;
	$avatarI = $xml->groupDetails->avatarIcon;
	$avatarM = $xml->groupDetails->avatarMedium;
	$avatarF = $xml->groupDetails->avatarFull;
	$membersingame	= $xml->groupDetails->membersInGame;
	$membersonline	= $xml->groupDetails->membersOnline;
	$membersinchat = $xml->groupDetails->membersInChat;
<h2> Mūsu steam grupa - <?=$name;?></h2>
<p><img src="<?= $avatarI;?>"> <img src="<?= $avatarM;?>"> <img src="<?= $avatarF;?>">
<p>Grupas apraksts : <?=$summary;?>
<p>Biedri kopā: <?=$memberscount;?>
<p>Biedri čatā: <?=$membersinchat;?>
<p>Biedri iekš spēles : <?=$membersingame;?>
<p>Biedri online: <?=$membersonline;?>
<p><a href="https://steamcommunity.com/groups/<?= STEAM_GID;?>">Pievienojies mūsu steam grupai</a>

Live piemērs: https://wam.lv/skripti/steam.php

  • Upvote 2

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...