![]() |
|
SwitcherCSS Plugin v0.1 - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Plugins (https://forum.zenphoto.org/forum-6.html) +--- Thread: SwitcherCSS Plugin v0.1 (/thread-7254.html) Pages:
1
2
|
SwitcherCSS Plugin v0.1 - hucste - 24-06-2010 Hello, all I've creating another plugin. I've need users than testing-it ! thanks :p http://zenphoto.dev.stephane-huc.net/pages/SwitcherCSS-Plugin-EN SwitcherCSS Plugin v0.1 - hucste - 25-06-2010 If it's not possible to viewing my pages, go to : http://zenphoto.dev.stephane-huc.net and change the selector to zenpage theme ;-) and refresh the page! -it's a lag- SwitcherCSS Plugin v0.1 - acrylian - 25-06-2010 I will add an entry for this. Update: I think I will wait a little until I add an entry for this. Looking at the demo on your site's albums it seems not to work correctly yet. None of the 4 standards themes to select displays as they actually should look like. Besides that of course a welcome plugin that probably just needs some refining. SwitcherCSS Plugin v0.1 - hucste - 25-06-2010 thanks, acrylian I don't understand why the refresh is not good! HTML: The link CSS is writing correctly and the form, too, with attribute selected on the element option. PHP: the current theme is only the actived or the choiced (choice == active). SwitcherCSS Plugin v0.1 - acrylian - 25-06-2010 Well, you should keep in mind that a theme is more than just CSS. The efferscence+ theme and the default theme are completely different in structure. So you will have to really switch themes, not just the css. The latter will only work within a theme with different personalities (like eff+ and the default theme have). SwitcherCSS Plugin v0.1 - hucste - 25-06-2010 Ok! and, how can i do this ?! I declare an object gallery, and use her method setCurrentTheme(); "What's else ?!" SwitcherCSS Plugin v0.1 - acrylian - 25-06-2010 A quick looks tells me that you use the "name" from the theme description to switch. That is actually the title. As with other items the actual folder name is the one to use. Haven't looked at the plugin itself but generally there is already a gallery object on themes ($_zp_gallery global that is). SwitcherCSS Plugin v0.1 - hucste - 25-06-2010 no ... i don't use the theme description name. i use the method getCurrentTheme() for get the actual theme ... and compare the return of the cookie with array_flip on method getTheme() ! SwitcherCSS Plugin v0.1 - acrylian - 25-06-2010 Hm, ok, seems you are right, don't know where I had seen that in your source. I have just tried to use setTheme on a theme page directly and it worked as expected. I see this in your site's source: ` (Once you got it working this might even be something for our demo site.) SwitcherCSS Plugin v0.1 - hucste - 25-06-2010 Yes, i've a problem to switch between themes. In first, You are on the album.php theme (exemple 'zenpage album.php'). Now, you are always on the album.php theme with new and desire theme css. (the code source html at bottom, wrote 'zenpage album.php') what's my mistake ?! I don't understand-it! |