Skip to content

Gibigbig/wordpress-steam-group

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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.

Demo

Instructions

  1. Ensure that you have jQuery running.

  2. Upload the file steam.php to top directory.

  3. 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.

  4. Create a new widget in any place you like and add the following code:

<div id="steam_group_gib"></div>
  1. 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
  1. 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.

About

A widget that shows important information of a community's steam group for wordpress.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published