Fixed Notices within media gallery category


Well-known member

I would like to add a notice when viewing any media within a given media gallery category.
I have ticked Page is Within Gallery Categories: and selected the one I want.
I can see the notice within the category page, but as soon as I view some media within that category it disappears. How best to resolve this please?


Chris D

XenForo developer
Staff member
That, I'm fairly sure, should work.

If it doesn't then we should be able to get it to work so I'll move to bugs.

Chris D

XenForo developer
Staff member
In the process of looking into whether this was a bug, or not, I saw the problem and fixed it heh.

It's quite simple if you're keen to implement it now.

In library/XenGallery/ControllerPublic/Media.php find:
'commentIgnoredNames' => $commentIgnoredNames,
Directly above that, add:
'category' => $media,
Failing that, this is fixed for the next release, thanks for reporting :)