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

Fixed Maximum on amount of inserting media gallery bbcode in media-comments

Discussion in 'Media Gallery Resolved Bugs' started by Grover, Dec 2, 2014.

  1. Grover

    Grover Well-Known Member

    Related to this bug:


    It seems that one can endlessly include media-items (through pressing the photo-camera icon inside the editor toolbar and then relentlessly keep selecting the media items) inside of a media-comment.

    Luckily the images are not shown in comments (so I guess it's not really a problem), but these are the results:

    Maybe there should be a limit set on this as well? (Or maybe -since I don't know a thing about performance issues/the programming side of things- this is no issue at all, compared to the other bug, where the pictures are actually shown)
  2. Chris D

    Chris D XenForo Developer Staff Member

    Because we don't render the BB code in these comments, there's actually no performance issues to contend with in this case.
  3. Chris D

    Chris D XenForo Developer Staff Member

    We've actually discussed this further.

    Although it's true that there's not a great deal of point specifically taking into account the limits for the GALLERY BB code (because it isn't rendered so its impact is less), there's actually some other limits we should probably impose here.

    So, actually, the end result is we will be applying limits for the gallery bb code, plus media and image bb codes, and also the maximum message length which currently isn't enforced in the gallery like it is with posts.
    CyclingTribe and Grover like this.
  4. Grover

    Grover Well-Known Member

    Maybe of a lesser importance (and I guess one does not need to control every single corner of this software, for different reasons), because it's not a comment-field that any member can enter (and therefore potentially abuse), but just a field that you as the owner of your image can enter: the [Caption] section.

    In that section it's also possible to enter Media Gallery Embeds endlessly (who are also not shown as pictures, just as links):

    caption no limit on media gallery embed.png

    But like I said, this comes down to the behavior of the owner him/herself how to manage this field anyway.
  5. Chris D

    Chris D XenForo Developer Staff Member

    This has now been made consistent with posts (max message length, max images (this counts usage of image tags plus gallery tags) and max media embeds (this counts usage of (non gallery) media embed tags).

    We aren't applying any limits to custom fields in this case.

Share This Page