ZenphotoCMS Forum
Theme option in URL - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Theme option in URL (/thread-4873.html)



Theme option in URL - edasque - 2009-03-18

Hi,

can I change the theme option (Theme Colors) with a URL parameter, so I can develop a new one while displaying the current one to all ?

Erik




Theme option in URL - sbillard - 2009-03-18

Not without modifying the zenphoto code. But what you can do is setup an unpublished album with its own theme. For that album/theme you can select a different Theme Colors.




Theme option in URL - edasque - 2009-03-19

Hmmm, is there a way to overload the CSS choice in the theme php if I am an admin then ?




Theme option in URL - sbillard - 2009-03-19

Do you mean permanantly? If the theme supports it, yes. Do you mean while you are viewing the site? Then please re-read my previous post.




Theme option in URL - edasque - 2009-03-20

no, something more like a piece of code I could put on my theme to say:

if admin, they use this css instead of the basic one.




Theme option in URL - sbillard - 2009-03-21

You can do this. The test you want is if(zp_loggedin()) {your css code} else {normal css code}