Flarum Discussion Сards
walsgit/flarum-discussion-cards
Output of discussions lists in form of cards
- Downloads
- 0
- Version control
- github.com/WalsGit/flarum-discussion-cards
Flarum Discussion Cards
A Flarum extension (Fork of @Dem13n
's discussion-cards). Allows you to display discussions in the form of cards, the first image of the first post is used as a preview, if there are no images, a stub is displayed.
This fork adds new features
where you can now set custom cards settings per tag page (different default image along with number and width of primary cards).
On the index page
(all discussions), if a discussion has multiple tags with their own custom image set, the displayed image will be chosen according to these priority rules:
1. The image of the the highest positioned child primary tag of the highest positioned parent primary tag
2. The image of the highest positioned parent primary tag
3. The image of the secondary tag with the lowest id
4. The general default image
Also it changes how the setting to distinguish between read & unread discussion cards work: now the read discussions are filtred with a grayscale instead of the unread ones.
Notes
- Developed and tested on Flarum 1.8.7 then tested on 1.8.8.
- Thanks to whomever suggested on Discord to use the tags selection component (sorry, we can no longer access the messages on Discord to mention them properly).
- New settings page inspired by
Friends of Flarum
's Best Answer Extension. - Additional tags settings based on
@askvortsov
's Discussion Templates Extension. - Developped this with the help of AI (mainly ChatGPT, Cody & Gemini).
Installation
Install with composer:
composer require walsgit/flarum-discussion-cards
Updating
composer update walsgit/flarum-discussion-cards
php flarum migrate
php flarum cache:clear
Links
Versions
-
Version 1.0.3.
Likely works with Flarum v1.8.8.
-
3 additional versions.
-
Extension created.