• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Notices within media gallery category

optrex

Active member
#1
Hello,

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?

Thanks
 

Chris D

XenForo developer
Staff member
#2
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
#3
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:
PHP:
'commentIgnoredNames' => $commentIgnoredNames,
Directly above that, add:
PHP:
'category' => $media,
Failing that, this is fixed for the next release, thanks for reporting :)