AIXF – XFMG Album Last Activity fixes a long-standing UX issue in XenForo Media Gallery:
Albums were sorted only by their creation date, meaning updated albums stayed buried while stale ones stayed on top.
This add-on introduces a new field — last_media_date — and automatically updates it whenever media is added, moved, deleted, or restored. Album listings then sort by this field, ensuring active albums rise to the top (just like forum threads).
Features:
- Adds a new last_media_date column to xf_mg_album.
- Updates automatically when:
- New media is uploaded into an album.
- Media is moved between albums.
- Media is deleted/hidden or restored.
- Browse Albums (/media/albums/) and User Albums (/media/albums/users/...) can now sort by Last Activity.
- Admin option: choose default album sort (creation date vs. last activity).
- Backfills existing albums on install (sets last activity to the latest visible media).
Attachments