Automatic images grid not working when locale is not set to English

Been trying to test this feature on our forum. I tick the box “Automatically wraps images in [grid] tags when 3 or more images are uploaded in the composer.” in Experimental, and nothing happens.

Do I need to reboot the server? I’m on 3.5 beta8, so up to date. Am I missing something?

Thanks!

2 Likes

@pierrox Are you using the rich text editor? If so, please note that image grids aren’t supported there yet (but that work is in progress!) so in the meantime you’ll need to switch to Markdown mode for that.

Actually I’m not, figured one novelty at the time would be enough for our community which is not necessarily the most tech out there.

(Moving us over to a new topic for better visibility…)

Okay, thanks for confirming…I’ll see if I can replicate the issue.

(For the record, the rich text editor is actually far less technically demanding than the Markdown editor…so your community might be a great fit for it!)

Okay, I can’t reproduce. When I:

  • Enable Experimental auto grid images
  • In Markdown mode, upload 3+ images at the same time (this is important, if you just load one by one it doesn’t work).

…the images are added to a grid (i.e. wrapped within [grid] [/grid]).

Are you following those exact steps?

1 Like

Really strange. I tried it on another forum where I have admin privileges and it works as advertised. But on the forum I want to install this, no luck. I even tried the Rich Text Editor option as it worked on the test forum (as long as I kept the editor in Markdown mode).

Clearly a bug on our forum!

And also, yes I’m following those steps. And it worked flawlessly on the other forum.

Is there a way to “clean” the forum? It’s up-to-date so I can’t just update, or can I re-run an update?

I’m also an admin on the same forum.

The exact version is 3.5.0.beta8-dev (de5d29c7ff).

Manually writing [grid] [/grid] correctly renders the grid.

Safe mode doesn’t fix the issue.

Nothing specific in /logs and no errors in the JS console.

Is there any other related setting besides Experimental auto grid images? I also reviewed all the modified settings on the instance and didn’t see anything that could interfere with that.

I’d be happy to provide more info it I know where to look :slight_smile:

2 Likes

I think I found the problem: It only works when your locale is English, so there is “uploading” in the composer.

5 Likes

I can repro and I confirm the bug. What a catch :partying_face:

1 Like

Good call on the Locale. Didn’t realise it also translate the “being the scene” commands!

Thanks for the report @pierrox and great repro @Moin!

That should fix it:

4 Likes

Will this also work to fix German?

We don’t add spaces before punctuation, but in my repro it didn’t work either. I think in my case the problem is that “Wird hochgeladen” are two words.

2 Likes

Ah yes I tried to think of other cases but didn’t think of this, will try to handle this case too :+1: Thanks

1 Like

Then you weren’t paying attention while watching my beautiful video :wink:

3 Likes

3 Likes

Ok that should fix german:

4 Likes

Thanks for the fixes!

We activated it - it’s the summer season, and on our forum (old VW campers), people throw in tons of holiday pix, so having the gallery by default is a must.

I’ll activate the new Reply box when it’s fully compatible with the auto-gallery tags. Talking about this one, it would be neat if when it’s activated forum-wide, it defaults to the new WYSIWYG setting instead of Markdown as our users probably won’t notice the new switch even if we tell them!

1 Like