Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-14437

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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.7-pl1
    • Fix Version/s: 3.1.9-RC1
    • Component/s: Posting, Viewing posts
    • Labels:
      None
    • Environment:
      PHP 5.6.17, MySQL 5.6.28, Firefox 44.0., PC WIN 7, Server Linux

      Description

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

        Attachments

        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

          Activity

            People

            • Assignee:
              Marc Marc
              Reporter:
              M.O.B. M.O.B.
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: