Download the PHP package tryhackx/flarum-thumb-sliders without Composer

On this page you can find all versions of the php package tryhackx/flarum-thumb-sliders. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package flarum-thumb-sliders

Thumb Sliders for Flarum

A Flarum extension that displays an animated thumbnail image slider on the left side of each discussion in the discussion list. Images are automatically extracted from the first post content.

Latest (2.1.7): audit release — thumbnails of a moderator-hidden or still-private opening post are no longer exposed to users who cannot see that post, thumbImages no longer triggers an N+1 when discussions are included in other payloads, the min/max image-dimension settings now apply to every image that declares its size, broken slides are skipped, and the slider honours reduce motion. See the CHANGELOG for details.

The avatar control is a shared, per-device section (Desktop / Mobile) — Show / Replace with thumbnail when the topic has an image / Always replace / Hide avatar — kept in sync with flarum-topic-rating. Built on the shared restructured layout module (mirrored with flarum-topic-rating): a clean flex/grid row [thumb] [avatar] [title + info] [meta] whose meta column adapts to whatever extensions are active (tags, rating, FoF discussion-views, replies).

Note: This extension supports Flarum 2.x only. The old 1.x line (Flarum 1.8) has been discontinued and is no longer published.

Features

Settings

Setting Default What it does
Enable Thumb Sliders On Master switch.
Slider width 150 px Width of the slider (50–400; out-of-range values are clamped). Height follows 2:3 poster ratio.
Autoplay speed 1200 ms Time between slide transitions (500–10000; out-of-range values are clamped).
Max images per discussion 10 Up to 20.
Min image dimension 50 px Skip images whose declared width or height is smaller than this.
Max image dimension 5000 px Skip images whose declared width or height is larger than this.
Fallback when no image is available No thumbnail One of: no thumbnail / built-in placeholder / custom uploaded image.
Avatars — Desktop / Mobile ¹ Show avatar Per device: Show / Replace with thumbnail when the topic has an image / Always replace / Hide avatar.

¹ Shared setting — the same Desktop/Mobile avatar section appears in the flarum-topic-rating admin, and changing it in either extension updates the other. The Replace modes only take effect when a thumbnail is shown; Hide applies regardless. Upgrading from ≤2.0.x migrates your old Replace avatar with thumbnail choice automatically.

Screenshots

Mobile view — discussion list rendered with different combinations of TryHackX extensions (thumbnails + ratings + views, thumbnails + views, thumbnails only, ratings only, views only, vanilla Flarum).

Thumb Sliders admin panel — master switch, slider width / autoplay speed, max images per discussion, min / max image dimensions, fallback when no image is available, avatar-replacement mode and the fallback image library.

Desktop discussion list with the full TryHackX stack — the thumbnail slider sits on the left, star ratings on the right, with the magnet button next to each topic title.

Desktop discussion list — hover state showing the magnet tooltip loading inline; the shared layout module keeps the thumb / avatar / title / meta columns from overlapping.

Support Development

If you find this extension useful, consider supporting its development:

You can also find the donation option in the extension's admin settings panel.

Compatibility

Flarum version Extension version Branch
^2.0 2.x main

Plays well with

Installation

Updating

Configuration

  1. Navigate to the Administration panel.
  2. Find Thumb Sliders and enable it.
  3. Click the extension to configure slider width, autoplay speed, image limits, dimension filters, fallback image, and the avatar replacement mode.

How the layout module works

The shared module overrides DiscussionListItem.contentView(). Inside, it still calls this.contentItems(), this.infoItems() and this.statsItems(), so any extension's contributions still flow in — it just pulls known keys out (thumbSlider, rating, discussion-views, tags) and lays them out in a clean structure. The override installs idempotently (a single global guard) regardless of whether Thumb Sliders or Topic Rating loads first, so the two never compete.

Development

Links

License

MIT License. See LICENSE for details.


All versions of flarum-thumb-sliders with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
flarum/core Version ^2.0.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package tryhackx/flarum-thumb-sliders contains the following files

Loading the files please wait ...