The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Really Simple Gallery Widget
Simple solution to gallery reload (4 posts)

  1. jceruniq
    Posted 3 years ago #

    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.


  2. jceruniq
    Posted 3 years ago #

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

  3. Helen Hou-Sandi
    WordPress Dev
    Plugin Author

    Posted 3 years ago #

    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.

  4. jceruniq
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Really Simple Gallery Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.