#Wordpress-steam-group A widget that shows important information of a community's steam group for wordpress automatically. Simple and efficient making full use of native steam API.
-
Ensure that you have jQuery running.
-
Upload the file steam.php to top directory.
-
Upload style.css and script.js and integrate them in your current code which ever method you like. You can link to them directly by editing your themes html or add them to the bottom of your current CSS and JS files to make things a bit tidier and faster.
-
Create a new widget in any place you like and add the following code:
<div id="steam_group_gib"></div>
- Edit the following variables in the steam.php file:
$_STEAMAPI = ""; // apikey $_STEAMGROUP = ""; // steam group url $_MEMBERCOUNT = 23; //numbers of member avatars to show in the widget
- You're done :)
#Performance
This widget uses two requests on the PHP side and one request on the clientside. The user will call the file steam.php using script.js which will make two calls to steam, one getting all the group data, and another single request getting all user data for the amount of members specificed. This data would be avatar link, steam name and profile link, though other information is available through the steam API.