Resource icon

XBL, PSN, and Steam profiles with Images 1.1

No permission to download
The first step in editing Message_User_Info, it says to find the code, but the field is blank. What am i finding?

edit v3: I got everything working, expect the image will not appear, but if I rollover where it is supposed to be I get the popups. I tried doing a direct link to the image and I get a 403 permission error. Why can't I see the image?

 
The first step in editing Message_User_Info, it says to find the code, but the field is blank. What am i finding?

edit v3: I got everything working, expect the image will not appear, but if I rollover where it is supposed to be I get the popups. I tried doing a direct link to the image and I get a 403 permission error. Why can't I see the image?

PM your site so I can check it out :) It could be a number of things

Sorry for the late response. I was getting an error everytime I hovered over it. I disabled the addon a while back until I can come up with something similar. I was thinking of doing my own modifications so I could buttons similar to your addon but without tooltips and would contain more than just gaming sites (eg. skype, soundcloud, gtalk, etc). If you put out this version your working on I'll def use it (I dont think i'll get to do my modifications, too busy atm). Thanks for the update!
Yes It has to deal with the XML link itself now. I suppose it's improperly formatted so I'll have to make adjustments. Because making it an image will not solve the issue (already tried).

Yes, feel free to change how you'd like. A few people have already told me they used it for other purposes. It's simple enough :)

You could also just remove the bit that has the cards pop-up
 
I have had my eyes on this one and finally got around to it. BTW, there is an error in your code, TinyMCE has decided to have a few indent bbcodes included inside your code tags (for the html and the CSS).
 
New look for Steam ID and no errors so far. I am really beginning to dislike Steam for their XML >.> but I'd probably be annoying if I didn't want people overloading my server with requests lol
update.webp
 
I need time to actually fix up the instructions due to WYSIWYG editor being weird and adding indents/font/color crud to the code sections.

For now this is the new and improved Steam Widget.

Replace all steamwidget.php code with the following

PHP:
<html>
<head>
<style type="text/css">
.steamcontainer { background:  #333333;
                  width: 210px;
                  border: 1px solid #555555;
                  height: 105px;
                  padding: 5px;
                  -moz-border-radius: 8px;
border-radius: 8px;}
.avatar { -moz-border-radius: 5px;
border-radius: 5px;}
.steamidcss {
              font-family: Arial;
              color: #ffffff;
              margin: 0px;
              padding: 0px;
              font-size:10px;
              overflow: hidden;
              width: 100%;
              }
.steamfloat { float: left; margin: 3px;
              }     
.clearit { clear:both; }
.id {font-size:20px; } 
 
/* http://meyerweb.com/eric/tools/css/reset/
  v2.0 | 20110126
  License: none (public domain)
*/
 
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
 
              </style>
              </head>
              <body>
<?php
/* Steam Community Widget
*/   
 
error_reporting(0);
 
    //Variables. Edit Profile URL to match the link to your personal Steam Community Page.
        $ProfileURL = 'http://steamcommunity.com/id/';
        $getit = $_GET['SteamID'];
        $profilelink = 'http://steamcommunity.com/id/' . $getit . '/';
        $xmlurl = $ProfileURL . $getit . '?xml=1';
        $xml = simplexml_load_file($xmlurl);
       
        if (!$xml) {
                  echo "Failed loading Steam profile";
                    }
            else {   
 
      //Begin Widget Content
     
     
                                  echo '<div class="steamcontainer"><div class="steamidcss">';
                                  echo '<div class="steamfloat"><img src="' . $xml->avatarMedium . '" class="avatar">
                                  </div>';                   
                                  echo '<div class="steamfloat"><div class="id">' . $xml->steamID . '</div>';
                    echo '<strong>Joined:</strong> ';
                                       
                  echo $xml->memberSince . '<br /><strong>Rating:</strong> ';
                  echo $xml->steamRating . '<br /><strong>Played:</strong> ';
                  echo $xml->hoursPlayed2Wk . 'hrs in 2 weeks</p></div><div class="clearit"></div>';
                   
                    for($i = 0; $i < 1; $i++){
                    if ($xml->mostPlayedGames->mostPlayedGame[$i]->gameLink != "") {
                    echo '<div class="steamfloat">
                        <a href="' . $xml->mostPlayedGames->mostPlayedGame[$i]->gameLink . '">
                        <img src="' . $xml->mostPlayedGames->mostPlayedGame[$i]->gameIcon . '" />
                        </a> </div> Most played game is ' . $xml->mostPlayedGames->mostPlayedGame[$i]->gameName . '
                        for ' .    $xml->mostPlayedGames->mostPlayedGame[$i]->hoursPlayed . ' hrs</p>';
                        }
                    }
                echo '</div></div>';
               
                }
 
            //End Widget Content
?>
 
</body>
</html>

For those code savvy you'll notice I added
error_reporting(0);

I really don't have the experience or knowledge of how to hide a 503 error from the error_logs and I'm really annoyed with large error_log every week.

So for those entertained by 503 errors codes you can comment out
error_reporting(0);

The 503 error code is on steam servers end, not my own sourcing of code or modifications.
So for those of you who don't want to see an outrageous error_log with 503 errors, then don't do anything. Just paste in the entire script and save. Voila :)
 
I followed the steps and now all I get is an error on the user panels in the forums it just says:[/INDENT]/ [/INDENT=2] with less brackets im just breaking the code here.
 
I followed the steps and now all I get is an error on the user panels in the forums it just says:[/INDENT]/ [/INDENT=2] with less brackets im just breaking the code here.
yes the tutorial got screwed up after a quick edit a while ago. I have fixed it up
Please repeat steps 2 and/or 3

It should work now. The WYSIWYG editor added some unwanted bbcode to my tutorial. that is what is causing your error.
 
It kinda works now the area under names is there but no "System" icons pop up its just blank but if i hover over in the area the popups come
 
If your images are not showing please do this

Go to EXTRA.css and find any instance of
/game_images/
and replace with
game_images/

Basically make sure the file path to the .png is correct
 
How do you install this???? :confused:

Found an entirely different page with install instructions. Didn't understand it very well. Either way...with my XBL username in this is what I've got...

Can anyone help? I've undid the plugin until someone can help.

image.png
 
How do you install this???? :confused:

Found an entirely different page with install instructions. Didn't understand it very well. Either way...with my XBL username in this is what I've got...

Can anyone help? I've undid the plugin until someone can help.

image.png
Are you trying to only install XBOX pop out?

You can PM me and I can help you work through it. I really should make this TMS too lol
 
I just get this error when I hover over the "Steam" icon in the postbit. View attachment 38589
That's a Steam server issue (notice it's a 503 error). That's why I removed the error logging. Steam will only allow so many public requests per amount of time. It's really random and I can't replicate it or fix it, so we have to accept it or remove it entirely.

From the steam widget code provided you could create an image and store it via site. Allowing them to only update ever so often. That's almost an entire new code, but it's not impossible.

The only way past this is to become a steam developer and get an api. I heard they even have limits. I haven't bothered as I'm not sure I could use the API code for everyone to see and utilize... and I'm not about to create another steam sig site lol.
The point of my widget is just to be independent of 3rd party stat sites. BUT the consequence is 503 errors because steam wants to limit us.
 
xbox fix in FireFox browsers (because it doesn't like embedded links)

Turns embed into iframe

IF you have followed this modification already, then find and replace

message_user_info
Code:
<xen:if is="{$user.customFields.xboxid}">
<a href="http://live.xbox.com/en-US/Profile?Gamertag={$user.customFields.xboxid}" target="_new" class="OXYgames xbox"/><span><div class="xboxcontainer"><div class="left2"><embed src="http://gamercard.xbox.com/en-US/{$user.customFields.xboxid}.card" width="200px" height="135px"></div><div class="right2"><img src="http://avatar.xboxlive.com/avatar/{$user.customFields.xboxid}/avatar-body.png" width="68px" height="135px"></div></div></span></a>
</xen:if>

With
Code:
<xen:if is="{$user.customFields.xboxid}">
<a href="http://live.xbox.com/en-US/Profile?Gamertag={$user.customFields.xboxid}" target="_new" class="OXYgames xbox"/><span><iframe src="/game_images/XBL.php?XBL={$user.customFields.xboxid}" scrolling="no" frameborder="0" height="135" width="268" style="overflow: hidden;">{$user.customFields.xboxid}</iframe></span></a>
</xen:if>

Download, unzip, and upload the file to /game_images/ directory - Should be your_XenForo_Install/game_images/XBL.php

This is a temp fix and I will be releasing something better very soon with overlays and possibly something built into the existing member card.

Thanks to toodlez for helping this move along with a donation (I know I didn't ask for any, but I've been in need of extra financial support since I took up a few new costly projects).
 

Attachments

Top Bottom