I would like to allow gallery visitors to select themselves a theme from those installed by the admin and selectable in the back end.
My question is, before I embark on testing this and waste a lot of time, is there any zenphoto inherent reason why a front end user/gallery visitor selected theme (full theme selector, not just style switcher) would not work?
A simple CSS style switcher is not sufficient, since more and more themes also include js code to implement lightboxes, image transitions, etc.
I was thinking that this could perhaps be implemented by using a theme.php include at the top of each zenphoto file and allow it to switch the stylesheets along with the scripts included in different theme headers. Next I proceeded to search for code that might already do this and I stumbled upon this example
http://vsbabu.org/webdev/phpdev/themer.html. which with very little modification (it seems to me) might do the job.
A better solution might be to use the themeoptions.php file to do the above, except I don't see how this could include the right header code for the selected theme.
I will post the solution, if I manage to figure it out.
Comments
Now, I don't know what zenphoto does behind the scenes but I can think of an analogy where there are concurrent writes to the database or the file system and yet there are no problems in logging users visits. In the first case (db)each user hit generates many writes to the db, in the second case (file system) each user generates many writes to the log files, and with much, much higher probability of concurrency than in a read-only gallery. yet, there are no poblems. The db or the OS manages the concurrency.
Now again, I don't know the zenphoto code, that's why I asked the original question.