• Not being the big coder I had a problem when one of my costumers asked me to make the gallery a bit more alive, by reloading random images every 10 seconds.

    The solution is beautifully simple, just make really-simple-gallery-widget.php start with <?php header(‘Refresh: 10’); instead of just <?php

    I do not know of any bugs related to this solution, but I guarentee nothing.

    http://wordpress.org/extend/plugins/really-simple-gallery-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jceruniq

    (@jceruniq)

    Appears that the code makes the whole site, including admin pages, reload every 10 secs. Anyone with a better solution is welcome to share.

    Plugin Author Helen Hou-Sandi

    (@helen)

    Core Lead Developer and 4.0, 4.7, and 5.6 Release Lead

    You’d need to do this via AJAX, otherwise you will indeed get the whole page reload you experienced. I’ve been thinking about changes I’d need to make it work well when used that way, but I don’t see that sort of behavior being a part of the core plugin itself at any point, as it’s not something I’d want to generalize.

    Thread Starter jceruniq

    (@jceruniq)

    Luckely the costumer was satisfied with the results I could produce by using the plugin Auto Refresh Single Page. It limits the time you can view the image on the page(because it reloads it) but at least it limits the reload to the page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Simple solution to gallery reload’ is closed to new replies.