1. 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

Discussion in 'Media Gallery Resolved Bugs' started by optrex, Feb 8, 2016.

  1. optrex

    optrex Active 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?

  2. Chris D

    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.
    optrex likes this.
  3. Chris D

    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 :)
    optrex likes this.
  4. optrex

    optrex Active Member

    That was quick. And even a little gap for it in the code. Thanks Chris.

Share This Page