Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-14437

Place Inline Images on Post get scrambled up -- not follow the order you place them in.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.9-RC1
    • 3.1.7-pl1
    • Posting, Viewing posts
    • None
    • PHP 5.6.17, MySQL 5.6.28, Firefox 44.0., PC WIN 7, Server Linux

      Here is a very strange bug with the Place Inline attachment feature.

      The issue is that when you use the "place inline" feature to put an attachment at a certain place within the post (screenshots for a tutorial or etc.) When you press the submit button, the images get scrambled up and not in the order you wanted the images to be displayed.

      This causes an issue when you want to show an images below some text to represent a screenshot for a tutorial or something. The images are not placed where you want them to be but get scrambled up.

      Steps to reproduce bug.

      1. upload several images at once using the attachment tool when posting a reply or starting a new topic. (see screenshot)
      1. Now use the "Place Inline" button to put each image in a certain order (1 thru 10 and etc.) within your post. (see screenshot)
      1. If you press the Preview button the images "may" stay good in the order you want them to be in, but when you press the Submit button, you will find that the images order got scrambled and not in the order you wanted them to be. (see screenshot)

      (As you can see with the above screenshot, I deliberately created some images with numbers in it--which represents the filename, so to show you the issue on how all of them are scrambled up in a post.)

      1. To me it seems that the image file name stays in order, but what gets screwed up is the "[attachment=#] (numeric value).
      2. In order to fix it, you either have to remove the "pace inline" image and place it again or tinker with the numeric number of the attachment bbcode [attachment=#] so it finally places the images in the order you want them to be, but quite tedious when posting several dozen images that all seem to look the same, but they really are not.

      I've added a zipped file of the 10 numeric images so you can test yourselves. This way it's easy for you to follow my instructions above.

      Let me know if you have further questions...

        1. 001.jpg
          001.jpg
          52 kB
        2. 002.jpg
          002.jpg
          45 kB
        3. 003.png
          003.png
          289 kB
        4. 004.jpg
          004.jpg
          59 kB
        5. functions_content (edited).zip
          13 kB
        6. numbered_images.7z
          57 kB
        7. test.png
          test.png
          232 kB

            Marc Marc
            M.O.B. M.O.B.
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: