Skip to content

Fog-Forest/steam-page

Folders and files

Name Name
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Show the Steam game library on your WordPress blog

As a person who likes playing games, how can a blog not have your game library, so it is reasonable to save it. Template of this page theory It fits most themes, and some themes with strange layout can also be used, but the style needs to be modified. If you have a more beautiful style, you can also share it with us~

This page template is created by Mushroom and A kidney The development is completed by two people. You can use it and modify it for the second time, but please keep the copyright. Thank you!

Plug in version by hare make: https://www.azimiao.com/6425.html

Description of secondary development

Since Steam modified relevant policies, the original data acquisition method failed, so I Mushroom and A kidney On the basis of the two people, they repaired the SteamAPI. Now, the data related to the personal game library is obtained through the Web API provided by Steam. At the same time, the access method of Steam's personal data card has also been modified exophase The website provides support.

README

  1. Download the file in the project, and page-steam.php Throw it to your theme root directory and json Drop directory to your site root directory
  2. modify page-steam.php file
    • Fill in SteamID in line 196;
    • Fill in Steam Web API key in line 197;
    • In line 198, fill in the personal data card link generated by the website exophase;
    • Fill in SteamAPI interface address in line 203
    • For details and others, please refer to code note modification.
  3. The server is in China, and the API address is not blocked theoretically. If it is blocked unfortunately, it can be modified SteamAPI.php Add agents on line 25 and 26 of the document; If the server is overseas, it can go directly to the local
  4. After filling in the information WP Background - New Page choice Steam Game Library This template
  5. If the game library/game duration is not displayed normally, please go to Steam's personal setting interface and change all data to public. Remember Game Details There is a subsidiary option below. Don't tick it

API

Interface document: https://steamapi.xpaw.me/

DEMO

Steam Game Library

ISSUE

  1. If the data is incorrect, please delete it manually steam.json File. If you open the page again, the data will be updated automatically
  2. For the problem of opening without data, please check whether your Steam game library is set as public, whether the information is filled in correctly, and whether the data can be obtained by manually requesting the API. The format is: Https://Your domain name/json/TeamAPI.php? Id=Your SteamID&key=Your Steam Web API key
  3. No data needs to be refreshed manually when it is opened for the first time. Please check whether you have enabled it AJAX
  4. Open the page and report an error. Please use Chrome browser or FireFox browser, F12 to view the specific error
  5. If you have problems opening the style for the first time, add CSS to the global
  6. The template theory of this page adapts to most WP themes, and some themes with strange layout can also be used, but the style may need to be modified