• [deleted]

[deleted] posted here please.

Ok i am sorry for now please do not spilt i will not post after this

[deleted] Thanks

However this was also off-Topic 😄 😄 (Just Joking)

    • [deleted]

    [deleted] However this was also off-Topic

    Correct, and tolerated maybe once, but not multiple times.

    [deleted] Thank you very much, I'm going to try some things in the bucket to rule it out as the source of the problem.

    rob006 Interesting I have to try that, from the beginning it seemed something related to the cache.

    Cache-Control: max-age=0, no-cache, no-store

    Is that cache-control what I have right now or the one I should use?

      Darkle This is what you have now.

      $ curl --head "https://brickdose.s3.eu-central-003.backblazeb2.com/uploads/2021-06-01/1622547581-230966-1.png"
      HTTP/1.1 200 
      Cache-Control: max-age=0, no-cache, no-store
      Accept-Ranges: bytes
      Last-Modified: Tue, 01 Jun 2021 11:39:50 GMT
      ETag: "647153f526417935a38c2ac287c014ba"
      x-amz-server-side-encryption: AES256
      x-amz-request-id: 25ad6e98e0507d87
      x-amz-id-2: aN/sz9mGVZuc1wTMeZXg1nTh4Y2tlJGKh
      x-amz-version-id: 4_z07431a2f15c3bee5789c0e1b_f113f3e0305e92a43_d20210601_m113950_c003_v0312006_t0003
      Content-Type: image/png
      Content-Length: 296512
      Date: Tue, 01 Jun 2021 14:22:58 GMT

      You need to adjust Cache-Control header to allow browser caching. For example https://cdn.brickdose.com has Cache-Control: public, max-age=14400 + proper Expires and it is working fine.

        rob006 You're right, I'll try to replicate the other bucket headers, I'll get to it. Thanks for the info!

        I did a quick test after simply adding the cache-control: public, max-age=14400 and it works 🥳

        You can check it as before here: https://brickdose.com/d/193-test/2

        I'm going to apply the rest of the headers as well but finally it looks like this one was the culprit, thanks for the help to both of you, good eye @rob006

        Is there a command to cancel the use of individual pictures

        Mathematical formula pictures don't want users to click to enlarge

          • [deleted]

          Geraldlzc Potentially, yes. Can I have a link where this image appears ? If it's a a standard image file, it's going to be difficult to exclude if it does not have it's own associated CSS class.

          10 days later

          Are there plans to add a default centering function for images in the next plan? That way I don't have to add [center] [/center] every time. 😀

            • [deleted]

            giter do you mean before or after fancybox is applied ? If you are looking to center all images in the topic when it loads before you've clicked them, you can do this with some simple CSS.

            I've no plans to force styles on anyone 😁

            Hi all, just curious if this can be used to make a gallery page of sorts?

              • [deleted]

              trever-s Potentially, yes, but not without further development. In it's current form, it's designed to act as a simple wrapper so won't support galleries off the bat. Having said that, there is already support for clicking one image in a topic, and then the ability to cycle through all images in the topic.

              9 days later

              Will this work with images that are uploaded via fof/upload? Coz those don't have [img] tag

              I have something like that for fof/upload. It only requires to add one line and 2 files.

              • [deleted]

              @User24 @Anonymous43 it works directly without any need for modifications - fof/upload is fully supported. I use it all the time on my own site, and it works without issue.

                [deleted] I have no idea how or what your extension covers. All images or some images. All at once or single with no arrows.

                All I'm saying is that if it didn't, there is a way. Simple alternative, that's all.

                [deleted]

                A minimal no non-sense flarum extension which enables all images to be wrapped in Fancybox by adding a data-fancybox attribute to all img tags

                It is said img tags in the extiverse description so wanted to ask, i installed it today in my forum and saw only img tags in wrapper but not the images that were uploaded via fof/upload... am i missing anything ?

                EDIT:

                Yes it is working for images uploaded via fof/upload too

                  • [deleted]

                  User24 Yes it is working for images uploaded via fof/upload too

                  Yes, there is logic that looks for image extensions, and not just <img> tags 🙂

                    [deleted] is there any way to disable fancy box for gifs?

                    I've recently embedded Skype gifs and they are clickable opens in fancy box

                      • [deleted]

                      Hari There is, yes. I can add that fairly easily.