ZenphotoCMS Forum
no-flash fall back for Flash themes? - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: no-flash fall back for Flash themes? (/thread-1547.html)



no-flash fall back for Flash themes? - amyg - 15-07-2007

Many thanks to the themers who've shared their work with the Simpleviewer galleries!
I've managed to learn from what you've done and attached a different flash gallery to my ZenPhoto install (once I have something to show - I'll post a link.

It occurs to me that it would be nice to create a fall back to a non-flash theme for users who might, for whatever reason, not be able to use the flash player.

Anyone have a clue? Is there already a simple way for users to switch themes?




no-flash fall back for Flash themes? - trisweb - 16-07-2007

That's a great idea, and with zenphoto's theme system it should be easy... but no, there isn't a simple way to allow users themselves to switch themes. There should be. Submit it as a bug! Thanks~




no-flash fall back for Flash themes? - sbillard - 16-07-2007

I have implemented this capability in effervescence_simpleviewer. If Flash is not present or disabled the page shows two links. One to download Flash, the other to view the album without Flash.

If you click the latter, it adds a ?noflash parameter to the URL. When album.php detects this parameter it sets a session cookie to remember it. Then if the cookie is present the page shows image thumbnails otherwise it runs the Simpleviewer Flash.

If you wanted a user to be able to switch you could add a link at the footer which pointed to the album URL with the ?noflash parameter attached. You could also make the cookie more permanant it that is what you desire.




no-flash fall back for Flash themes? - amyg - 17-07-2007

brilliant, sbillard!
Thanks