AIXF XFMG: Require Description

Released AIXF XFMG: Require Description 2.3.7

No permission to buy ($20.00) No permission to download
Compatible Versions
  1. 2.3.7
Additional requirements
XenForo 2.3.7+
XFMG 2.3.5+
License
https://aixf.net/help/la_terms_rules/
Visible Branding
No
This falls under the one-time tier license.

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​

  1. Upload AIXF_XFMG_RequireDescription_2.3.7.zip via ACP → Add-ons → Install/upgrade from archive.
  2. Tools → Rebuild caches (phrases/templates).
  3. 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.
image1.jpeg
image2.jpegimage3.jpeg
Related resources
XenForo 2.3.7+
XFMG 2.3.5+
Author
fords8
Downloads
0
Views
17
First release
Last update

Ratings

0.00 star(s) 0 ratings

More resources from fords8

Back
Top