Raised This Month: $51 Target: $400
 12% 

Fix SteamIDs for the new update


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Phaiz
AlliedModders Donor
Join Date: Feb 2014
Location: USA
Old 09-01-2014 , 11:55   Re: Fix SteamIDs for the new update
Reply With Quote #11

Quote:
Originally Posted by bottiger View Post
I didn't notice it was broken but to fix it just edit playerinfo_general.php and find the Player profile table and replace it with this.

PHP Code:
                                <tr class="data-table-head">
                                        <td style="vertical-align:top;">Player Profile<br /><br /></td>
                                        <td style="text-align:center; vertical-align:middle;" rowspan="7" id="player_avatar">
                                                <?php
                                                        $db
->query
                                                        
("
                                                                SELECT
                                                                        hlstats_PlayerUniqueIds.uniqueId,
                                                                        CONCAT('[U:1:',hlstats_PlayerUniqueIds.uniqueId,']') AS communityId
                                                                FROM
                                                                        hlstats_PlayerUniqueIds
                                                                WHERE
                                                                        hlstats_PlayerUniqueIds.playerId = '
$player'
                                                        "
);
                                                        list(
$uqid$coid) = $db->fetch_row();
                                                        
$pagedata file_get_contents("http://steamcommunity.com/profiles/$coid?xml=1");
                                                        
preg_match('/<onlineState>(.*?)<\/onlineState>/'$pagedata$results);
                                                        
preg_match('/<avatarFull><!\[CDATA\[(.*?)\]\]><\/avatarFull>/'$pagedata$results2);
                                                        
$status ucwords($results[1]);
                                                        
$avatar_full $results2[1];
                                                        
$avimg getImage("/avatars/$player");
                                                        if (
$avimg)
                                                        {
                                                                
$avatar_full $avimg['url'];
                                                        }
                                                        else if (
$avatar_full == '' || $playerdata['blockavatar'] == '1')
                                                        {
                                                                
$avatar_full IMAGE_PATH."/unknown.jpg";
                                                        }
                                                        if (
$status == '')
                                                                
$status '(Unknown)';
                                                        echo(
"<img src=\"$avatar_full\" style=\"height:158px;width:158px;\" alt=\"Steam Community Avatar\" />");
                                                
?>
                                        </td>
                                </tr>
Thanks for that Bot, it fixed it!
Phaiz is offline
 



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 00:23.


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