From 4501c32ace9c9560a1f92e4cd0195b874fd23cf7 Mon Sep 17 00:00:00 2001 From: Jari Turkia Date: Sun, 19 May 2019 18:52:55 +0300 Subject: [PATCH 1/3] Re-did the whole thing with a PHP-piggyback to Steam API to navigate around CORS. --- README.md | 10 ++- steamzero.php | 219 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 226 insertions(+), 3 deletions(-) create mode 100644 steamzero.php diff --git a/README.md b/README.md index a506382..c8149fb 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,15 @@ Steam achivements statistics script. ## Usage -Copy file [steamzero.html](https://github.com/levelost/steamzero/releases/download/v0.09/steamzero.html) to your computer and open it in the browser (Chrome, Filefox, Opera, Yandex). Script works with public accounts only. - -If you want to see the human-readable code, open the file [/debug/index.html](https://github.com/levelost/steamzero/blob/master/debug/index.html). +1. Set up a web server with this PHP-page. Steam API doesn't work from a browser directly anymore because CORS restrictions. +1. Register for API-key at https://steamcommunity.com/dev/apikey + * Docs for Steam API are at https://steamcommunity.com/dev + * Script works with public accounts only. +1. Go to your own url, enter an username and enjoy! ## History +### v0.10 +* Re-did the whole thing with a PHP-piggyback to Steam API to navigate around CORS. ### v0.09 * Added information about recent games. * Redesigned statistics. diff --git a/steamzero.php b/steamzero.php new file mode 100644 index 0000000..2a8d46e --- /dev/null +++ b/steamzero.php @@ -0,0 +1,219 @@ + + + + Steam-Zero + + + + +
+

Achievements stats

+
+

Recently games

+
+
+
+

Achievements in games (%)

+
+
+
+
+ +
+
Enter Steam profile URL name (steamcommunity.com/id/ProfileName):



Works with public profiles only.
+
+
+ + + \ No newline at end of file From 98790408baf5504e66a4407a60cdc7e3609c6da1 Mon Sep 17 00:00:00 2001 From: Jari Turkia Date: Sun, 19 May 2019 18:53:18 +0300 Subject: [PATCH 2/3] Added a symlink to steamzero.php to help web server setup --- index.php | 1 + 1 file changed, 1 insertion(+) create mode 120000 index.php diff --git a/index.php b/index.php new file mode 120000 index 0000000..a71df22 --- /dev/null +++ b/index.php @@ -0,0 +1 @@ +steamzero.php \ No newline at end of file From 90a2e8ebeea21358aad285a89f79d052efa7a77f Mon Sep 17 00:00:00 2001 From: Jari Turkia Date: Mon, 20 May 2019 10:24:03 +0300 Subject: [PATCH 3/3] Bugfix: Achieved-column sorting works correctly --- steamzero.php | 475 +++++++++++++++++++++++++++----------------------- 1 file changed, 257 insertions(+), 218 deletions(-) diff --git a/steamzero.php b/steamzero.php index 2a8d46e..bf75c51 100644 --- a/steamzero.php +++ b/steamzero.php @@ -1,219 +1,258 @@ - - - - Steam-Zero - - - - -
-

Achievements stats

-
-

Recently games

-
-
-
-

Achievements in games (%)

-
-
-
-
- -
-
Enter Steam profile URL name (steamcommunity.com/id/ProfileName):



Works with public profiles only.
-
-
- - + + + + Steam-Zero + + + + +
+

Achievements stats

+
+

Recently games

+
+
+
+

Achievements in games (%)

+
+
+
+
+ +
+
Enter Steam profile URL name (steamcommunity.com/id/ProfileName):



Works with public profiles only.
+
+
+ + \ No newline at end of file