Changeset 825035
- Timestamp:
- 12/18/2013 08:54:47 PM (12 years ago)
- Location:
- advanced-steam-widget
- Files:
-
- 3 edited
-
todo.txt (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/steam_widget.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-steam-widget/todo.txt
r744945 r825035 11 11 http://steamcommunity.com/groups/taketen/memberslistxml/?xml=1 12 12 could be major performance drain unless connects are async 13 14 -look into adding achievements for games that have them 15 http://steamcommunity.com/id/slserpent/stats/CivV?xml=1 -
advanced-steam-widget/trunk/readme.txt
r753140 r825035 1 1 === Advanced Steam Widget === 2 2 Contributors: harpercl 3 Donate link: http://www. snakebytestudios.com/contribute3 Donate link: http://www.SnakeByteStudios.com/contribute 4 4 Tags: widget, Steam, gaming, template 5 5 Requires at least: 3.0 6 Tested up to: 3. 66 Tested up to: 3.8 7 7 Stable tag: trunk 8 8 … … 86 86 == Changelog == 87 87 88 = 1.6.1 = 89 * workaround for Steam bug where hours played last two weeks is reported as 0.0 90 * fixed case where stats conditional was true when there were no stats 91 88 92 = 1.6 = 89 93 * added two new presets -
advanced-steam-widget/trunk/steam_widget.php
r752579 r825035 1 1 <?php 2 /*Plugin Name: Advanced Steam Widget 2 /* 3 Plugin Name: Advanced Steam Widget 3 4 Plugin URI: http://www.SnakeByteStudios.com/projects/apps/advanced-steam-widget/ 4 5 Description: Displays Steam gaming statistics in a widget 5 Version: 1.6 6 Version: 1.6.1 6 7 Author: Snake 7 8 Author URI: http://www.SnakeByteStudios.com … … 378 379 379 380 if (count($steam_xml->mostPlayedGames->mostPlayedGame) > 0) { 381 //workaround for steam no 2 wks played bug 382 $cumulative_hours_from_games = false; 383 if ($steam_array['hours_twoweeks'] == "0.0") { 384 $steam_array['hours_twoweeks'] = 0; 385 $cumulative_hours_from_games = true; 386 } 387 380 388 $k = 0; 381 389 foreach ($steam_xml->mostPlayedGames->mostPlayedGame as $game) { … … 393 401 } else $steam_array['games'][$k]['ingame'] = false; 394 402 395 if ($game->statsName) { 403 //see if stats name exists and is valid, i.e. not just the app id 404 if ($game->statsName && !preg_match('/\d+/', $game->statsName)) { 396 405 $steam_array['games'][$k]['stats_url'] = $profile_url . "/stats/" . (string)$game->statsName; 397 406 } else $steam_array['games'][$k]['stats_url'] = false; 407 408 if ($cumulative_hours_from_games === true) { 409 $steam_array['hours_twoweeks'] += (float)$game->hoursPlayed; 410 } 398 411 399 412 $k++;
Note: See TracChangeset
for help on using the changeset viewer.