Customizing SMF > Modifications and Packages
Steam Profile Ajax Mod v1.0
roco:
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: ---// 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
--- End code ---
= = = = = = = = = = = = = = = = = = = =
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
eKro:
First of all, thank you for this awsome plug-in. But I am having some trouble. It gives this error
--- Code: --- dl() [function.dl]: dl() is deprecated - use extension=bcmath.so in your php.ini
--- End code ---
on the steam background.
Please help.
roco:
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
xFDragon:
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.
littenburg:
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.
Navigation
[0] Message Index
[#] Next page
Go to full version