+ Antworten
Ergebnis 1 bis 2 von 2

Thema: vB Steamgroup on Sidebar

  1. #1

    Registriert seit
    05.03.2010
    Alter
    33
    Beiträge
    155

    vB Steamgroup on Sidebar

    Basierend auf / Based on: [WIDGET] Steam Group Stats.
    $group = "mygroup"; // Groupname from [url]http://steamcommunity.com/groups/[/url] URL

    $error_reporting = error_reporting();
    error_reporting(0);
    $url = file_get_contents('http://steamcommunity.com/groups/'.$group);
    ini_set('default_socket_timeout', 0);
    if($http_response_header[0] != "HTTP/1.1 200 OK"){
    error_reporting($error_reporting);
    return "<div class=\"blockrow\"><b>Steamcommunity appears to be down.</b></div>";
    }
    preg_match('#<h1>(.+)</h1>#sU', $url, $aMatches);
    $return = "<div class=\"blockrow\">";
    $return .= "<table>";
    $return .= "<a class=\"clanname\" href='http://steamcommunity.com/groups/$group' target='_blank'>$aMatches[1]</a>";
    $return .= "<br>";
    preg_match('#<div class="groupMemberRow">(.+)</div>#sU', $url, $aMatches);
    $aMatches = str_replace('class="linkStandard"', 'class="linkStandard" target="_blank"', $aMatches[1]);
    $pieces = explode(" ", $aMatches);
    $domain = strstr($pieces[3], '>');
    $strip1 = substr($domain, 1);
    $return .= "<span class=\"resultsb\">$strip1 Members</span>";
    $return .= "<br>";
    $domain1 = strstr($pieces[6], '>');
    $strip2 = substr($domain1, 1);
    $return .= "<span class=\"membersInGame\"><font color=#8bc53f>$strip2 In-Game</font></span>";
    $return .= "<br>";
    $domain2 = strstr($pieces[9], '>');
    $strip3 = substr($domain2, 1);
    $return .= "<span class=\"membersOnline\"><font color=#62a7e3>$strip3 Online</font></span>";
    $return .= "</table>";
    $return .= "</div>";
    error_reporting($error_reporting);
    return $return;

    Für nicht vB -> http://sourceserver.info/index.php?p...profileContent


    My Wishlists: Amazon | Steam

  2. #2

    Registriert seit
    04.12.2011
    Beiträge
    1
    THX

    i moded it a bit

    Code:
    $group = 'it320'; 
    $error_reporting = error_reporting();
    error_reporting(0);  
    $url = file_get_contents('http://steamcommunity.com/groups/'.$group); 
    ini_set('default_socket_timeout', 0);
    if($http_response_header[0] != "HTTP/1.1 200 OK"){
        error_reporting($error_reporting);
        return "<div class=\"blockrow\"><b>Steamcommunity appears to be down.</b></div>";
    }
    preg_match('#<h1>(.+)</h1>#sU', $url, $aMatches);
    $return = "<div class=\"blockrow\">";
    $return .= "<table>";
    $return .= "<a class=\"clanname\" href='http://steamcommunity.com/groups/$group' target='_blank'>$aMatches[1]</a>"; 
    $return .= "";
    preg_match('#<div class="groupMemberRow">(.+)</div>#sU', $url, $aMatches); 
    $aMatches = str_replace('class="linkStandard"', 'class="linkStandard" target="_blank"', $aMatches[1]);
    $pieces = explode(" ", $aMatches);
    $domain = strstr($pieces[3], '>');
    $strip1 = substr($domain, 1); 
    $return .= "<br><span class=\"resultsb\">$strip1 Members</span><br>";
    $return .= "";
    $domain1 = strstr($pieces[6], '>');
    $strip2 = substr($domain1, 1);
    $return .= "<span class=\"membersInGame\"><font color=#8bc53f>$strip2 In-Game</font></span><br>"; 
    $return .= "";
    $domain2 = strstr($pieces[9], '>');
    $strip3 = substr($domain2, 1); 
    $return .= "<span class=\"membersOnline\"><font color=#62a7e3>$strip3 Online</font></span>";
    $return .= "</table>";
    $return .= "</div>";
    error_reporting($error_reporting);
    return $return;

+ Antworten

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •