Photo Viewer bug found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mark.hs
    Senior Member
    • Dec 2016
    • 197
    • 5.7.0

    [Bug / Issue] Photo Viewer bug found

    We discovered an issue the photo viewer built into VB 5.4.X. We were able to replicate the bug on this site, so we know it's not related to our specific install. I made a quick 2 min video which shows how to replicate the bug, here is the link: http://www.youtube.com/watch?v=O_d-tBdISjY

    Is this a known or a new issue?
    Last edited by mark.hs; Mon 12 Nov '18, 12:09pm.
    Admin for hobbysquawk.com
    VB 5.74
    PHP 8.2
    Maria DB 10.6
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73979

    #2
    This should be listed in the Tracker (link is at the top of this page). The QA people will either mark it as a duplicate or confirm the issue.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • mark.hs
      Senior Member
      • Dec 2016
      • 197
      • 5.7.0

      #3
      Ok, I will post it in the tracker section. Thank you.
      Admin for hobbysquawk.com
      VB 5.74
      PHP 8.2
      Maria DB 10.6

      Comment

      • Mrs.T
        Senior Member
        • Nov 2007
        • 1210
        • 6.0.X

        #4
        We had something similar but it turned out to be specific to the members laptop. Have you tried it on different machines?



        Comment

        • Carrfixr
          Senior Member
          • May 2017
          • 1364
          • 5.5.x

          #5
          It happens to me on chrome, ios

          This has been an ongoing bug along with this other photo viewer issue
          https://tracker.vbulletin.com/vbulle...sues/VBV-18729


          My main nemesis is listed below, please vote for it
          Thanks
          Last edited by Carrfixr; Wed 14 Nov '18, 4:03am.

          Comment

          • glennrocksvb
            Former vBulletin Developer
            • Mar 2011
            • 4011
            • 5.7.X

            #6
            This seems to be a timing issue caused by the slide animation. If indeed the animation is the culprit, you could temporarily turn the slide animation off while waiting for official fix by using this script:

            HTML Code:
            <script>
            Object.prototype.watch||Object.defineProperty(Object.prototype,"watch",{enumerable:!1,configurable:!0,writable:!1,value:function(e,t){var r=this[e],n=r;delete this[e]&&Object.defineProperty(this,e,{get:function(){return n},set:function(c){return r=n,n=t.call(this,e,r,c)},enumerable:!0,configurable:!0})}}),Object.prototype.unwatch||Object.defineProperty(Object.prototype,"unwatch",{enumerable:!1,configurable:!0,writable:!1,value:function(e){var t=this[e];delete this[e],this[e]=t}});
            
            //watch for the gallery and slideshow objects to be initialized to override the jcarousel animation option
            vBulletin.watch('gallery', function(id, oldVal, newVal) {
                if (newVal) {
                    newVal.watch('slideshow', function(id, ov, nv) {
                        nv.data('jcarousel').options.animation = 0;
                        nv.unwatch('slideshow');
                        vBulletin.unwatch('gallery');
                        return nv;
                    });
                }
                return newVal;
            });
            </script>
            This script can be added in head_include template for self-hosted version. For vBCloud, you can add it by utilizing the Search Engine Tools > Google Analytics Javascript option in AdminCP.

            Try it and see if it fixes the issue. Note that I have only tested this code in Chrome.

            Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

            Comment


            • Carrfixr
              Carrfixr commented
              Editing a comment
              Thanks Glenn
          • Mark.B
            vBulletin Support
            • Feb 2004
            • 24286
            • 6.0.X

            #7
            Has a bug been logged for the original issue?

            I believe I can replicate the problem on my demo site.
            MARK.B
            vBulletin Support
            ------------
            My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
            My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

            Comment

            • Wayne Luke
              vBulletin Technical Support Lead
              • Aug 2000
              • 73979

              #8
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API

              Comment

              • mark.hs
                Senior Member
                • Dec 2016
                • 197
                • 5.7.0

                #9
                Glenn's code helps tremendously, BUT if you click on the photos quickly OR if you switch between using the back/fwd arrows and the thumbnails to navigate you can get the order to jumble just like in the video. I tested in Chrome and MS Edge. I really had to click on the photos quickly forwards and back to get the order to jumble, so I think that Glenn's script is something most can use until we find a more permanent fix. Thanks Glenn!
                Admin for hobbysquawk.com
                VB 5.74
                PHP 8.2
                Maria DB 10.6

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...