Steam Discounts

Show discounts for games on steam, it uses the cheapshark.com API
Version: 1.5
Autor: MixRo
Deutsche Übersetzung: noch nicht übersetzt
Hochgeladen: 06.04.2025
Letzte Aktualisierung: 20.04.2025
Support: https://www.mybb.de/forum/thread-39380.html (1 Beiträge)
Kompatibilität: MyBB 1.8.x
Bisherige Downloads: 2
Vorschau
Vorschau
Vorschau
Description : Show discounts for games on steam, it uses the cheapshark.com API

https://www.cheapshark.com/api/1.0/deals...ageSize=60

It can be placed by using the variable : {$steamdiscount}

Author : https://community.mybb.com/user-132128.html

Configuration:
You can add your own CSS for it by going to :
ACP -> Teplates&Styles -> Themes -> Your theme ->  Add Stylesheet
Name the file steamdiscounts.css

Attached to:  Globally
Check the box Write my own content

UPDATE 20.04.2025

- Added a setting page of the plugin to update the API directly in ACP
- Added a  cache local system with the duration of 1 hour so that it will not make as many calls making the api to get blocked for your website.
- Added a debug function so that it will create a steam_api_debug.json fil in your board files that can display possible errors

My Example of steamdiscounts.css :

.steam-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: 210px;
    text-align: center;
}

.steam-slide {
    display: none;
    padding: 10px;
    color: #fff;
}

.steam-slide.active {
    display: block;
    animation: fade 0.5s ease-in-out;
}

.steam-slide a img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: transform 0.3s ease;
    background: #000;
}

.steam-slide a img:hover {
    transform: scale(1.05);
}

.steam-slide h4 {
    margin: 5px 0;
    font-size: 14px;
    color: #fff;
}

.steam-slide .price {
    font-size: 13px;
    color: #ccc;
}

.steam-slide .discount {
    color: #4caf50;
    font-weight: bold;
}

.view-link {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 10px;
    background: #1760bb;
    color: white;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.view-link:hover {
    background: #114a91;
}

.steam-slider-controls {
    position: absolute;
    top: 40%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.steam-slider-controls button {
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    font-size: 18px;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 4px;
    pointer-events: all;
}

.steam-slider-controls button:hover {
    background: rgba(23, 96, 187, 0.7);
}

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}


Quelle: Steam Discounts bei MyBB.com

Ähnliche Erweiterungen

JAMPS - STEAM 1.01 von XEDE für MyBB 1.6.x
Theme STEAM JAMPS

182 Downloads
JAMPS - STEAM
JAMPS - STEAM 1.3 von XEDE für MyBB 1.8.x
JAMPS - STEAM 1.3

61 Downloads
Steam group
Steam group 2.7 von Supryk für MyBB 1.8.x
Show information about steam group on index page in sidebox.

106 Downloads
Steam Widget (Game) 1.1.0 von Flobo x3 für MyBB 1.8.x
This plugin adds the capability to show a steam game widget into your boards posts.

535 Downloads
Patches
Patches 1.5 von frostschutz für MyBB 1.6.x
Create and manage patches (core edits) within the ACP.

1001 Downloads