WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. jceruniq
    Member
    Posted 1 year 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.

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

  2. jceruniq
    Member
    Posted 1 year 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 1 year 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
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.