- Compatible XF 2.x versions
- 2.3
- Additional requirements
- XenForo 2.3.7+
XFMG 2.3.5+
- Updates duration
- This falls under the one-time tier license.
- Visible branding
- No
Overview
Adds per-category / per-album rules to require a Description when users add or edit media in XenForo Media Gallery (XFMG).What counts as “empty”?
After stripping BBCode/HTML, decoding entities, and removing Unicode spaces (NBSP/ZWSP), the text must contain at least one visible character.
Install / Upgrade
- Upload AIXF_XFMG_RequireDescription_2.3.7.zip via ACP → Add-ons → Install/upgrade from archive.
- Tools → Rebuild caches (phrases/templates).
- Configure: ACP → AIXF XFMG: Require Description
- Tick categories and/or (up to 200) albums where a description is mandatory.
- Save.
How it enforces
The add-on blocks saves with an inline/overlay error if Description is empty. It checks in multiple places:- XFMG\Service\Media\Creator & Editor (validation)
- XFMG\Entity\MediaItem::_preSave (field error on description)
- Global entity_pre_save listener (catch-all)
- Controller returns overlay-safe errors (both field-keyed and top-level)
Customize the message
Edit phrase: aixf_xfmgrqd_please_enter_valid_description(ACP → Appearance → Phrases). Localize per language as needed.



- Related resources
- XenForo 2.3.7+
XFMG 2.3.5+