Media Gallery — Add-on
A new product is now available on the RaxBoard Marketplace.
Version: 1.0.11 (build 10011)
Compatibility: RaxBoard >=1.8.0
What's new
# Media Gallery 1.0.11
**Gallery permissions now actually work.** Every `gallery_*` permission you set in
Admin → User Groups was being ignored. The add-on declared the permissions and the
admin matrix showed them, but nothing registered them with the permission engine —
so the engine never saw your setting. A group you had explicitly denied uploads
could still upload, and the same applied to viewing, commenting, rating and
deleting. Setting these permissions now has the effect the screen implies.
Two visible consequences come with that fix: the gallery block in the permission
matrix now shows proper labels instead of raw keys, and commenting and album
creation are governed by their own permissions rather than borrowing the upload
one. Review your gallery permissions after upgrading — this is the first release
in which they take effect, so a setting you made earlier and assumed was active
may only now start applying.
**The gallery now appears in your navigation.** Nothing on the board ever linked
to it; members could only reach it by typing the address. Upgrading adds a
"Gallery" item automatically. Move or hide it in Admin → Navigation as you like.
**A rejected upload no longer leaks its file.** When an upload was refused —
unsupported type, or a type the category does not allow — the database record was
removed but the uploaded file stayed on disk, and with the record gone nothing
would ever clean it up. Repeated rejected uploads filled the disk permanently.
The file is now removed along with the record.
**Uninstalling cleans up properly.** Removing the add-on used to leave behind the
uploaded files themselves, plus reactions, alerts, notification preferences and
permission rows in core tables. All of it is now removed.
**The gallery follows your theme's colours.** It asked for colour tokens that no
theme defines, so every accent fell back to a hardcoded blue no matter what your
theme's accent was. It now uses the standard tokens and matches your theme.
**The gallery is as wide as the rest of your board.** It set its own, narrower
content width, so gallery pages sat visibly inset from the header while every
other page ran full width.
**View counts can no longer be inflated by reloading.** Every page view was
counted, so holding down refresh drove the number up without limit — and that
number decides the "Most viewed" ordering. A view now counts once per visitor per
item. This also removes a database write from every gallery page view.
**Deleted gallery items are now actually cleaned up.** Deleting media or an album
only ever hid it — its comments, ratings, reactions, alerts and, most costly, the
uploaded file itself stayed on your server forever. Deleting still keeps the item
restorable, but a new daily job now finishes the job once the item has been in
the bin long enough, and reclaims the storage.
How long is up to you: **Admin → Options → Media Gallery → "Purge deleted media
after (days)"**, 30 by default. Set it to 0 to keep the old behaviour and never
purge. The first run after upgrading treats everything already deleted as binned
*today*, so nothing disappears the moment you upgrade.
**Categories can no longer be deleted out from under their contents.** A category
holding only deleted media could be removed, so restoring one of those items
brought it back to a category that no longer existed. Albums filed under a
category were not checked at all. Both are now blocked, and members watching a
deleted category are released properly.
**Placed widgets survive add-on upgrades.** Upgrading any add-on that ships
widgets silently removed every widget an admin had positioned — they had to be
placed again after each update. This was a core fault affecting every such
add-on, and it is fixed for all of them.
**Fixed:** a long media title could fail the upload after it had already been
saved, on boards using strict MySQL mode. Video and audio items whose file is
missing now show a placeholder instead of a permanently broken player.
Requires RaxBoard 1.8.0 or newer.
Get it
View on the Marketplace
— Posted automatically by the RaxBoard Marketplace.