[Scummvm-git-logs] scummvm-web master -> 3b44b37116a1610c2e0db7c72ce3d36ae40f14d1

lotharsm noreply at scummvm.org
Wed Dec 6 19:49:19 UTC 2023


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .

Summary:
3b44b37116 WEB: Removing GOG affiliate link (#322)


Commit: 3b44b37116a1610c2e0db7c72ce3d36ae40f14d1
    https://github.com/scummvm/scummvm-web/commit/3b44b37116a1610c2e0db7c72ce3d36ae40f14d1
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2023-12-06T20:49:16+01:00

Commit Message:
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.

Changed paths:
  R public_html/images/GOG_button_small.png
    include/Constants.php
    include/OrmObjects/Compatibility.php
    templates/components/banners.tpl


diff --git a/include/Constants.php b/include/Constants.php
index f77e3ce0..223d99fa 100644
--- a/include/Constants.php
+++ b/include/Constants.php
@@ -34,8 +34,6 @@ class Constants
 
         /* External URLs */
         define('GOG_URL_PREFIX', "https://www.gog.com/game/");
-        // ScummVM affiliate id
-        define('GOG_URL_SUFFIX', '?pp=22d200f8670dbdb3e253a90eee5098477c95c23d');
         define('STEAM_URL_PREFIX', 'https://store.steampowered.com/app/');
         define('ZOOM_URL_PREFIX', 'https://www.zoom-platform.com/product/');
         // ScummVM affiliate id
diff --git a/include/OrmObjects/Compatibility.php b/include/OrmObjects/Compatibility.php
index 955bb7e0..585d4101 100644
--- a/include/OrmObjects/Compatibility.php
+++ b/include/OrmObjects/Compatibility.php
@@ -90,7 +90,7 @@ class Compatibility extends BaseCompatibility
         $availableSites = [];
         $gogId = $this->getGame()->getGogId();
         if ($gogId) {
-            $availableSites[] = "- [GOG.com](" . GOG_URL_PREFIX . $gogId . GOG_URL_SUFFIX . ") (affiliate link)";
+            $availableSites[] = "- [GOG.com](" . GOG_URL_PREFIX . $gogId . ")";
         }
         $steamId = $this->getGame()->getSteamId();
         if ($steamId) {
diff --git a/public_html/images/GOG_button_small.png b/public_html/images/GOG_button_small.png
deleted file mode 100644
index 1f5d48e9..00000000
Binary files a/public_html/images/GOG_button_small.png and /dev/null differ
diff --git a/templates/components/banners.tpl b/templates/components/banners.tpl
index ed4e840d..6bce1c83 100644
--- a/templates/components/banners.tpl
+++ b/templates/components/banners.tpl
@@ -8,9 +8,6 @@
     <a href="https://www.zoom-platform.com/?affiliate=c049516c-9c4c-42d6-8649-92ed870e8b53">
         <img src="/images/ZOOM_button_small.png" width="88" height="32">
     </a>
-    <a href="https://www.gog.com/?pp=22d200f8670dbdb3e253a90eee5098477c95c23d">
-        <img src="/images/GOG_button_small.png" width="88" height="32" alt="{#indexGOG#}">
-    </a>
     <a href="https://github.com/scummvm">
         <img src="/images/github-logo.png" alt="{#indexGithub#}" width="88" height="32">
     </a>




More information about the Scummvm-git-logs mailing list