Advertisement:
NameCheap

Author Topic: Steam Profile Ajax Mod v1.0  (Read 23177 times)

Offline roco

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
  • Imagination is more Important than Knowledge
    • RicoRoco
Steam Profile Ajax Mod v1.0
« on: April 07, 2010, 06:38:30 PM »
Link to Mod

Version: 1.0 Date: January 7, 2o1o
Compatibility: 1.1.11 and 2.0 RC2 / RC3

Steam Profile - Ajax Indicator Mod - v1.0
by Roco - priv Polish SMF-Help! Board

Link to Mod | Support Topic | Demo and My Own Suport


SteamProfile
About

SteamProfile is an Ajax-based Java-Script widget to embed the profile status of a Steam Community member into a HTML webpage.
( ..and now with my mod, into SMF Boards to..)

It uses the Steam Community XML API to read the raw data and jQuery for the transformation into HTML elements.

PHP is used as well for a server-side XML proxy to ensure fast and stable XML delivery.
See example.html for examples and instructions for proper embedding into your website, (ins steamprofile folder).

Examples:



With slider menu opened:





Steam Profile Mod for SMF will:

Integrate Steam profile script, into SMF Board
  • Adds Steam Profile field to the "Forum Profile Information" page, (in SMF 2.0 "Profil Forum").
  • Adds Steam Profile image-indicator and link to the "View Profile", (sumary view), page showing the status of that user.
  • Adds Steam Profile image,(baner)-indicator to user details in forum posts that links to their Steam Community page.

The following files get edited, so if you use a custom theme that changes any of these files, you will need to manually update them yourself.
This Mod change files:

In SMF 1.1.11 -

Themes/default/
  • Profile.template.php
  • Display.template.php

Themes/default/Languages/
  • Modifications.english.php
  • Modifications.english-utf8.php
  • Modifications.polish.php
  • Modifications.polish-utf8.php


In SMF 2.0 -

Sources/
  • Profile-Modify.php

Themes/default/ (the Curve Theme)
  • Profile.template.php
  • Display.template.php

Themes/default/Languages/
  • Modifications.english.php
  • Modifications.english-utf8.php
  • Modifications.polish.php
  • Modifications.polish-utf8.php

The mod will update only the default templates, for another please read install[1 or 2].xml - is easy for integration with different styles as well.


Entries language for translators:

Code: [Select]
// Steam Profile Mod by Roco
$txt['steamprofile'] = 'Steam Profile';
$txt['steamprofile_profile'] = 'Profile';
$txt['steamprofile_user_ID'] = ' or: Steam Community <b>Number</b>, or: Profile <b>Alias</b><br />
Like: <b>76561197965018417</b> or: <b>STEAM_0:0:148902</b> or: <b>robinwalker</b>';
$txt['steamprofile_input_title'] = 'Type Your Steam Profile: ID - here';
$txt['steamprofile_view'] = 'view';
$txt['steamprofile_view_desc'] = 'Your own Profil from Steam Community';
// End of Steam Profile Mod by Roco

= = = = = = = = = = = = = = = = = = = =

From the Autor of the script.:

SteamProfile
SteamProfile Overview

Installation and Usage

The directory cache is used for caching, therefore it must be read- and writable for the web server process.
..so.. folder "cache" in cataloge "steamprofile" (here --> YourForum/steamprofile/cache), must stetting CHMOD into 777 (or 0777  - is the same)

You can change configurations for the XML proxy in xmlproxy.php. For client configuration and template editing, open steamprofile.xml.
See example.html for examples and instructions for proper embedding into your website, (ins steamprofile folder).


Requirements


Server Requirements

  • Any PHP-compliant webserver (tested with Apache/2.2.11)
  • PHP 5.0.0 or higher, 5.2.x recommended (tested with PHP/5.2.6-3ubuntu4.2)


Required PHP extensions

  • SteamProfile Ajax
    • cURL (libcurl 7.x)


  • SteamProfile Image
    • cURL (libcurl 7.x)
    • GD2 (libgd 2.0.x)


Client Requirements

  • Any modern browser with enabled JavaScript


Browser Compatibility

  • no problems:
    • Firefox 3.7
    • Opera 10.10
    • Internet Explorer 8
    • Safari 4.0
    • Chrome 3.0


  • minor problems:
    • Internet Explorer 7 & Internet Explorer 8 in compatibility mode:
      • - "Loading..." is not displayed
      • - icons are not showing up


  • major problems:
    • Internet Explorer 6:
      • - unable to display transparent 32-bit PNG images
      • - slider menu unusable
      • - flawed layout
      • - annoys web developer
      • - causes cancer
      • - eats small babies


= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =


Changelog
1.0 - 07th January 2010
-  Initial Release

09th March 2010
- Update for SMF 2.0 RC3


Best Regards :)
Roco

Offline eKro

  • Newbie
  • *
  • Posts: 2
Re: Steam Profile Ajax Mod v1.0
« Reply #1 on: April 10, 2010, 10:03:44 AM »
First of all, thank you for this awsome plug-in. But I am having some trouble. It gives this error

Code: [Select]
dl() [function.dl]: dl() is deprecated - use extension=bcmath.so in your php.ini
on the steam background.

Please help.

Offline roco

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
  • Imagination is more Important than Knowledge
    • RicoRoco
Re: Steam Profile Ajax Mod v1.0
« Reply #2 on: April 11, 2010, 09:33:03 AM »
Hi and Welcome :)

I tested on multiple servers and never noticed a similar bug.
It happens at different hostings - there are two versions of PHP 4 and 5
Sometimes the default is set php4, but there are two versions.
If there is only php4, then I'm sorry, but the modification should not work.
if both versions but is set to php4, it can remedy.
The directory is steamprofile .htaccess file
- Must then uncomment - the first line - simply remove the #

I would like the information that you have a version of PHP?

Do you have this information ins Admin Panel here: /index.php?action=admin;credits
AP >> Support and Credits >> the section --> Support Information

And I need this information:

- Current SMF version: ?
- PHP version: ?
- Server version: ?
- GD version: ?

or..

You can copy it to steamprofile info.php file (attached)
You know it is:

<?php phpinfo(); ?>

It is advisable to copy the file to the ftp directory steamprofile,
And in your browser type: adress_your_board/steamprofile/info.php

The modification has major requirements for proper operation.
Using the info.php file you can tell if everything is ok
and modification work



I'm working on updating the library of the steam
Perhaps I can help you, but first I need from you information about PHP version?

One more question.

Can you check whether the directory steamprofile / - folder: cache is writable?
Ie. whether the CHMOD is set to 777
The cache folder must be writable, because there accumulate user data from the steam community profiles, etc..


Yours :)
roco

Offline xFDragon

  • Semi-Newbie
  • *
  • Posts: 34
Re: Steam Profile Ajax Mod v1.0
« Reply #3 on: April 11, 2010, 05:10:16 PM »
Hello There!

Thank you for this great plugin, however I need a bit of help :P

I keep getting on the little box that show's when you enter your steam ID, Invalid community data. I don't know why this is poping up, I have tried multiple time's with many other user's but it show's the same. And yes my cache is logged to 777.

These are my current mod's.

1.     Aeva Media      1.1b      [ Install ] [ List Files ]  [ Delete ]
2.    Gender on Memberlist    1.4    [ Uninstall ] [ List Files ] [ Delete ]
3.    Dynamic_Memberlist    2.0.4    [ Install Mod ] [ List Files ] [ Delete ]
4.    Aeva ~ Auto-Embed Video & Audio    7.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    AjaxChat Integration    3.2.1 (modified for SMF 2 RC3)    [ Uninstall ] [ List Files ] [ Delete ]
6.    Board Viewers Mod    1.2.1.1    [ Uninstall ] [ List Files ] [ Delete ]
7.    Advanced Reputation System    1.8.1    [ Install Mod ] [ List Files ] [ Delete ]
8.    EmailValidator    1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    SteamProfile Ajax Mod    1.0    [ Uninstall ] [ List Files ] [ Delete ]
10.    Users Online Today    1.5.6    [ Uninstall ] [ List Files ] [ Delete ]
11.    Yet Another Global Announcements Mod    2.7.2    [ Uninstall ] [ List Files ] [ Delete ]
12.    Ultimate Profile    0.9.1    [ Uninstall ] [ List Files ] [ Delete ]
13.    Google Member Map 3.0    2.0 beta 2    [ Uninstall ] [ List Files ] [ Delete ]
14.    BoardHover Mod    1.6.0    [ Install Mod ] [ List Files ] [ Delete ]

Thank's in advance,

-Dragon.

Offline littenburg

  • Semi-Newbie
  • *
  • Posts: 58
    • GAMEOPP
Re: Steam Profile Ajax Mod v1.0
« Reply #4 on: April 13, 2010, 01:23:08 PM »
this seems to be a frequent problem. i have my cache folder chmodded to 777. and it is constantly saying my id is invalid. but on my friends SMF forum, it is working beautifully.

Offline xFDragon

  • Semi-Newbie
  • *
  • Posts: 34
Re: Steam Profile Ajax Mod v1.0
« Reply #5 on: April 13, 2010, 04:58:56 PM »
Can we get some support for this?

-Dragon.

Offline roco

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
  • Imagination is more Important than Knowledge
    • RicoRoco
Re: Steam Profile Ajax Mod v1.0
« Reply #6 on: April 13, 2010, 05:12:33 PM »
Hi :)

Apologies for taking so long, I had to pay tribute to the memory of my President (Poland), and unfortunately it took me 2 days.

You can quickly and easily check on your server, this modification works correctly...

If the modification is installed, it is the root of your forum should be steamprofile directory. In the middle there is a file example.html
Enter the address in your browser -> hxxp://your_forum/steamprofile/example.html
It is like a demo, but once you can see whether your server running Mod or not.

It happens that no steam server maintenance, which happens quite often and you see a bug that you described earlier.
In your profile, where a field to enter data from the steam community you examples:

Quote
Steam ID or: Steam Community Number, or: Profile Alias
Like: 76561197965018417 or: STEAM_0:0:148902 or: robinwalker

And these figures certainly work.

If still not working, look, is information that can significantly help are given earlier:

Quote
I would like the information that you have a version of PHP?

Do you have this information ins Admin Panel here: hxxp://adres_of_your_forum/index.php?action=admin;credits
This is here: AP (Admin Panel) >> Support and Credits >> the section --> Support Information

And I need this information:

- Current SMF version: -> ?
- PHP version: -> ?
- Server version: -> ?
- GD version: -> ?

And where the question marks: "?" ==> need info

It is very important information that can help and I ask for info, ok?

Of course, please first check whether it works for you demo - example.html
If it works it should look like this:



so thats is the best test. easy :)


@xFDragon, Returning to Your installed modifications ..
Perhaps it is possible that some modifications may be in conflict,
- because SteamProfile Mod uses the ajax library - jquerey-1.3.2.min.js
and this can cause conflicts with other modifications,
but from what I see - you do not have such modifications.


After that, please read carefully all of the first post,
especially the sections: - Requirements




If I get the relevant information from you, maybe I'll be able to help more succinctly,
and I really want to help.

Regards :)
roco

Edit April 13, 2010, 05:23:00 PM

BTW there is a cache folder in the directory steamprofile and it is this folder should be writable, not the one who is at the root of the forum. (only 2.0)

It occurred to me one more thing. For example, in skype that someone saw your status, you must enable this option in the settings of your Skype. Maybe you need to turn to show the status of on-line in your profile on steam community?
« Last Edit: April 13, 2010, 06:12:48 PM by roco »

Offline littenburg

  • Semi-Newbie
  • *
  • Posts: 58
    • GAMEOPP
Re: Steam Profile Ajax Mod v1.0
« Reply #7 on: April 13, 2010, 08:20:30 PM »

thats my info. I am constantly getting Invalid community data. I have made the cache folder 777

also, here is what i mean:
« Last Edit: April 13, 2010, 08:33:58 PM by littenburg »

Offline roco

  • Semi-Newbie
  • *
  • Posts: 52
  • Gender: Male
  • Imagination is more Important than Knowledge
    • RicoRoco
Re: Steam Profile Ajax Mod v1.0
« Reply #8 on: April 13, 2010, 09:39:51 PM »
And this is a normal server, hosting on the normal, as I guess?
Maybe something is blocking? Well, you know, the data come from the outside and go through a proxy.
In that case, check with the file attachment that I gave above info.php
- If you have cURL extention and what version?

I had a little time, but I was going to upgrade the library.
I'm sorry, but at the moment I finish a project, but a few hours with the obstinacy and throw to attach. Maybe a little later because I'm already over 20 hours without sleep hehe okay?

I really do not know what could be wrong
See the cache folder in the directory stemprofile is there anything if you do not have, ie that he does not save.
I have an idea - as Appendix I throw my cache folder, which are the test data. Download, unzip and copy to yourself on the server to .steamprofile/cache/ here, and click - example.html
If you still do not show a problem with cURL or data direct incoming are blocked on your server.
Please, write if you copy the contents of the cache folder started to appear, or not? and I need information on whether you have cURL enabled in PHP, okay? (info.php)

Well it looks as if you were not connected to the steam? Something is wrong..

look

Code: [Select]
return profile;
} else if (profileData.find('response').length != 0) {
// steam community returned a message
return createError(profileData.find('response > error').text());
} else {
// we got invalid xml data
return createError('Invalid community data.');
}
}

Copy these files from me to him and see if the show, okay?

// Edit:
Ok, one more tip, try that - CHMOD on folder "cache", (./steamprofile/cache), made: 755, (not 777), so maybe worked for You?

« Last Edit: April 13, 2010, 10:01:36 PM by roco »

Offline wiciu

  • Newbie
  • *
  • Posts: 7
Re: Steam Profile Ajax Mod v1.0
« Reply #9 on: April 16, 2010, 06:46:17 PM »
Hi !
Awesome mod.. but i think instalator has any errors.
That didnt create subdirectories:
cache
lib
themes
 and don't puting  required files into them.
Solution atm -> creating it manually -> rights 0777 and manualy uploading all files into this subdirectories.
Thats working like a charm.
GJ roco !

Offline LeviN

  • Semi-Newbie
  • *
  • Posts: 10
Re: Steam Profile Ajax Mod v1.0
« Reply #10 on: April 18, 2010, 06:24:57 PM »
I have the same issue as littenburg

I have everything working, everything is similar to the questions asked, curl is enabled.

Version: Linux server305.webhostingpad.com 2.6.18-164.10.1.el5 #1 SMP Thu Jan 7 19:54:26 EST 2010 x86_64

Offline draggy

  • Semi-Newbie
  • *
  • Posts: 30
Re: Steam Profile Ajax Mod v1.0
« Reply #11 on: May 06, 2010, 04:59:48 PM »
Very cool mod, I just wish I could get it working.

I have the same problem as littenburg and LeviN

I tried to put the xml files you attached into the cache folder, but it's still saying the same thing. I've tried cache folder with 777 and 755 permissions (recursive)

SMF 2.0 RC3

from my phpinfo:
PHP Version 5.1.2

CURL support: enabled
CURL Information: libcurl/7.15.1 OpenSSL/0.9.8a zlib/1.2.3 libidn/0.5.18

GD Support: enabled
GD Version: 2.0 or higher

Note:
In your future releases, please remove all .htaccess files from the folders you include in your packages, it makes it much more difficult to troubleshoot folder/permission issues. Plus on my webserver it was attempting to use your .htaccess, making the directory unaccessible to the clients.

Offline teh_Krall

  • Jr. Member
  • **
  • Posts: 134
Re: Steam Profile Ajax Mod v1.0
« Reply #12 on: May 07, 2010, 03:48:48 PM »
So you have to manually create a director steamprofile/cache and set it to CHMOD 777? You also need xmlproxy.php & steamprofile.xml somewhere in your installation? Because it doesn't look like any of that was created when I installed the mod.

-

Also, would there be anyway to place the profile graphic in someone's signature area?

Offline draggy

  • Semi-Newbie
  • *
  • Posts: 30
Re: Steam Profile Ajax Mod v1.0
« Reply #13 on: May 07, 2010, 03:51:57 PM »
then extract the steamprofile folder from the archive and put it on your server manually

Offline teh_Krall

  • Jr. Member
  • **
  • Posts: 134
Re: Steam Profile Ajax Mod v1.0
« Reply #14 on: May 07, 2010, 04:01:50 PM »
then extract the steamprofile folder from the archive and put it on your server manually

Right under the forums directory?

Offline draggy

  • Semi-Newbie
  • *
  • Posts: 30
Re: Steam Profile Ajax Mod v1.0
« Reply #15 on: May 07, 2010, 04:03:16 PM »
yes, and before you put it on your server, delete the .htaccess file that's inside the steamprofile folder

Offline teh_Krall

  • Jr. Member
  • **
  • Posts: 134
Re: Steam Profile Ajax Mod v1.0
« Reply #16 on: May 07, 2010, 04:16:47 PM »
yes, and before you put it on your server, delete the .htaccess file that's inside the steamprofile folder

Thanks for the help :)

I did all that but still getting the 'invalid community data' text in the banner. Will mess around with it more when I get back home.

Offline draggy

  • Semi-Newbie
  • *
  • Posts: 30
Re: Steam Profile Ajax Mod v1.0
« Reply #17 on: May 28, 2010, 11:05:13 AM »
Does anyone know if this mod uses fsockopen? On my server it's disabled, so that could be the issue if this mod uses it.

Sc00by22

  • Guest
Re: Steam Profile Ajax Mod v1.0
« Reply #18 on: May 28, 2010, 02:57:36 PM »
I'm having the same problem as everyone, my web host has the required stuff and i have chmodded the cache directory to 777. The example file doesn't work either.

Offline Raw-Raven.co.nz

  • Newbie
  • *
  • Posts: 7
Re: Steam Profile Ajax Mod v1.0
« Reply #19 on: June 04, 2010, 01:34:37 PM »
Hey all,

Had same problem as most of you have.

To solve the issue all i ended up doing was.

-Delete files installed on my FTP by the mod
  /smf/steamprofile

-Open "steam_profile_ajax_mod_v1.zip" and delete
 /steam_profile_ajax_mod_v1/steamprofile/.htaccess

-Upload steamprofile Folder.
  /smf/steamprofile

Works like a charm and is very nice,
Great work.