50 Commits
Author SHA1 Message Date
Le Philousophe f4762c2774 WEB: Fix typing annotation 2025-11-16 21:08:04 +01:00
Le Philousophe f28c5198f4 WEB: Avoid returning null when there is no screenshot
Instead, return an empty screenshot object.
2025-08-24 12:32:47 +02:00
Le Philousophe 93d3aa56a1 WEB: Handle null cases
Sometimes variables may be null. Handle the cases when passing to
functions expecting something non-null.
2025-08-24 12:32:47 +02:00
Le Philousophe 9a59454525 BUILD: Increase PHPStan level
The AltoRouter::match function has a bad signature: fix it using a stub.
2025-08-24 12:32:47 +02:00
Le Philousophe 710b95a5f4 WEB: Better error handling
When PHP functions fail they often return false instead of the expected
object type.
CHeck for this value and fail properly.
2025-08-24 12:32:47 +02:00
Le Philousophe cc9fa80181 WEB: Add typing 2025-08-24 12:32:47 +02:00
Le Philousophe c743cc2187 WEB: Properly initialize the files array
Creating an array using the [] operator is allowed but not recommended.
Also check if it exists using isset.
2025-08-24 12:32:46 +02:00
Le Philousophe 1c9380ef3e JANITORIAL: Fix code style
This should not have any behavioral changes
2025-08-24 12:32:46 +02:00
Le Philousophe f639f357e5 WEB: Don't expect the current directory to be public_html 2025-08-09 17:39:22 +02:00
Le Philousophe 8540d5da28 WEB: Allow listing of screenshots for "other" company id
The "other" company id is an aggregation of all games whose company has
edited one game.
2024-11-09 19:03:50 +01:00
Thunderforge 3b44b37116 WEB: Removing GOG affiliate link (#322)
* WEB: Removing GOG affiliate link

Per Discord discussion, the legacy affiliate program is ending.

* WEB: Removing GOG icon from sidebar

Since we no longer have an affiliate program, I don't think there's any reason to link directly to them.
2023-12-06 20:49:16 +01:00
Thierry Crozat 7955316fa2 WEB: Fix Zoom-platform links in compatibility page 2023-08-25 08:01:34 +01:00
Thunderforge a33c10e3a9 WEB: Adding ZOOM Platform link to Compatibility pages
Includes affiliate link
2023-08-25 08:18:11 +02:00
Thunderforge 91f46cc16c WEB: Changing "recommend" to "endorse"
I think this more accurately describes our stance.
2023-06-07 10:40:30 -05:00
Thunderforge 3807a83203 WEB: Using simple replace for support description (#298)
Fixes issue #13720.

The old system used a placeholder and was overbroad in its regex replace for that placeholder, which garbled links. Since we don't need a special regex for a placeholder, this does the job in a simpler and more reliable way.
2023-05-26 00:22:11 -05:00
Thunderforge ecfba7047b WEB: Using full game id across the site (#288)
Previously, game ids were displayed in the form of `monkey`. Now they are displayed in the form of `scumm:monkey`.

Note that this changes some of the URLs for the screenshots and compatibility pages.
2023-04-26 10:09:06 +02:00
Thunderforge fdd8ec9857 Revert "WEB: Changing Compatibility ids to engine_id:game_id (#267)"
This reverts commit 777834c50b.
2022-11-10 18:44:59 -06:00
Thunderforge 777834c50b WEB: Changing Compatibility ids to engine_id:game_id (#267) 2022-11-10 18:23:28 -06:00
Thunderforge 06d208792c WEB: Adding "ScummVM ID" to compatibility page
This replaces "Game Short Name". When a version newer than 2.2.0 is displayed, the id will be in the format of `engine_id:game_id`. If version 2.2.0 or later is displayed, the id will be in the format of `game_id`.
2022-10-02 09:56:37 +02:00
Thunderforge 17a926392e WEB: Adding note about data files to wiki link 2022-06-08 23:02:47 +02:00
Thunderforge 42939ed8c4 WEB: Using the slugs for the datafiles field instead of the full URL 2022-06-06 21:29:25 -05:00
Thunderforge 263204199a WEB: Adding disclaimer about not endorsing any game supplier. 2022-05-18 21:35:12 -05:00
Thunderforge 9b4256b660 WEB: Adding additional store links 2022-05-17 18:37:55 +02:00
Thunderforge 54e15f90c2 WEB: Adding "Available At" info to game compatibility pages
This provides GOG.com and Steam links. In the future, we can expand this to additional websites, including free downloads from the developer sites.
2022-05-15 12:29:44 +02:00
Thunderforge f89c624205 WEB: Adding a caption to random screenshots
The caption is a hyperlink that goes to the corresponding game page on https://www.scummvm.org/compatibility/ . This allows users to quickly look up compatibility info as well as see which platforms are supported.
2022-03-19 20:13:23 +01:00
Daniel ef9abdef7f WEB: Automatically determine filemask for screenshots (#212)
Add "variant_id" column to screenshots spreadsheet
2022-03-06 08:56:24 +00:00
Thunderforge b11ae66b40 WEB: Moving comment location to match new code 2022-03-05 22:08:07 -06:00
Thunderforge 66ea195315 WEB: Escaping special characters in the entire caption (#216)
Fixes an issue where the caption of `King's Quest I: Quest for the Crown (2.0F 1987-05-05 5.25"/3.5"/DOS/English)` was truncated to `King's Quest I: Quest for the Crown (2.0F 1987-05-05 5.25`.
2022-03-05 15:38:07 -06:00
Thunderforge 9f87c5277e WEB: Using htmlspecialchars() for caption replacement 2022-03-05 15:05:40 -06:00
Thunderforge 285c759717 WEB: Adding null check before string replacement (#209)
Fixes errors such as

```
PHP Deprecated:  strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/Will/OpenSource/scummvm-web/include/Objects/File.php on line 26
```
2022-02-23 20:27:44 -06:00
Thunderforge 286aaa5739 IMAGES: Moving screenshots from company/game to engine/game (#207)
Includes a recalculation of how screenshot files are counted due to the removal of the `filemask` field.
2022-02-19 20:32:15 -06:00
Thunderforge e1fc730229 WEB: Fixing captions for games with quotes in name (#198)
`Spy Fox in "Dry Cereal"` was appearing as `Spy Fox in`. Replacing the quotes with `"` so it renders properly in HTML.
2022-01-14 00:33:43 -06:00
Thunderforge ec361d1328 WEB: Preventing "Daily" from being appended to file names 2021-11-25 10:50:52 -06:00
Thunderforge 0aff36bb46 WEB: Replacing {$version} in file name (#176)
Makes this appear properly

```
IRIX (6.5.{$version}, n32, mips3) package
IRIX (6.5.{$version}, n32, mips4) package
```
2021-11-18 16:56:42 -06:00
Thunderforge 60e02dbf54 DATA: Changing downloads table to use version column (#174)
In order to simplify the process of updating version downloads, [downloads spreadsheet table](https://docs.google.com/spreadsheets/d/1QzwFleEKXOsE59cYMOcQB7C2f0Np48uAQOCG8kicX_s/edit#gid=1057392663) now includes a `version` column and the `url` field is much simpler. In order to update a new version, simply change the value in the `version` field.

Further improvements can be made, but for now this is an improvement that keeps parity with the previous code.
2021-11-18 16:04:20 -06:00
Thunderforge 0ddd37e5f7 WEB: Fixing lint errors
Ran `composer lint` and accepted its auto-fixes
2021-11-10 18:22:34 +01:00
Thunderforge 18ee3ada4f WEB: Changing headers to use Markdown headers instead of bold 2021-10-18 19:47:26 +02:00
Thunderforge 53da9ef108 WEB: Using full Wikipedia link if given, or Wikipedia page name if not 2021-09-08 15:45:34 +02:00
Thunderforge 60b9a85f16 WEB: Add a Wikipedia link for games
Add a new field to the game table called `wikipedia_page`, which is the URL page title for the game's corresponding page on English Wikipedia.

The field has been filed out for a few games (such as Martian Memorandum and Manhunter: New York), but more will need to be filled out.
2021-09-08 15:45:34 +02:00
Thunderforge 1e89f3e7ca WEB: Moving ScummVM Wiki link from table to game page
"Data Files" is now just a link to the ScummVM Wiki page. Moving to the same place as the new MobyGames link.
2021-08-26 22:34:20 -04:00
Thunderforge 23423a8599 Fixing check for mobyId 2021-08-24 11:21:06 -04:00
Thunderforge ce6bb0cacf Changing to use Markdown for Mobygames hyperlink 2021-08-24 11:21:06 -04:00
Thunderforge bd3aeff0e0 Adding MobyGames external link
Future external links might be added for things like Wikipedia or the ScummVM Wiki.
2021-08-24 11:21:06 -04:00
Thunderforge b5a64de515 Fixing unsupported platforms not appearing 2021-08-24 07:33:35 +03:00
mataniko 7b0b6b8bb1 WEB: Add Director Demo data model 2021-08-23 21:39:04 -04:00
Mataniko 6589516321 WEB: Restore number of shots in screenshots page 2020-12-31 04:49:44 -05:00
Mataniko f27fe3d0fd WEB: Rewrite the Screenshot model to use the database 2020-12-31 04:49:44 -05:00
Mataniko e415dad73a WEB: Lint files 2020-12-31 04:49:44 -05:00
Mataniko cf5b7b8431 WEB: Rename Database tables 2020-12-31 04:49:44 -05:00
Mataniko 9e43102294 WEB: Add all ORM Objects to ScummVM package 2020-12-31 04:49:44 -05:00