![]() |
|
Colorbox and theme per album conflict - 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: Colorbox and theme per album conflict (/thread-9302.html) |
Colorbox and theme per album conflict - bic - 22-11-2011 Here I am with one of my minor problems after upgrading to 1.4.1.6 because of the security issue. Colorbox and theme per album conflict - acrylian - 22-11-2011 Sure the colorbox is enabled correctly for those pages? Did you add the colorbox js defines? Example link maybe? Colorbox and theme per album conflict - bic - 22-11-2011 It's a production site, I can't live things messed up. Colorbox and theme per album conflict - acrylian - 22-11-2011 The colorbox plugin only loads the script but not the actual definition how to do what with Colorbox. Since it has so many options we don't add predefined code. Your site seems to be missing htis. But this is actually no recent change and has been since 1.4.1 at least. Take a look at the image.php of the Zenpage theme for example. Colorbox and theme per album conflict - bic - 22-11-2011 Yes, I have the code in my image.php, now doesn't work because the plugin is disabled by me due to the problem on the black theme when I enable the plugin. If I enable the plugin the popup on image info works as usual on main theme and also on the black one, but with a wrong layout. It's like if CB enabled prevents to load the css of secondary themes. Same thing if the secondary theme is an official theme. Colorbox and theme per album conflict - acrylian - 22-11-2011 You need to have the code in the image.php of every theme you are using and also enable for each of them. Otherwise I have no idea what hte conflict could be. You could abandon several themes and use the multiple_layouts plugin instead. Then all would be within one theme (still the need to enable and add code though). Colorbox and theme per album conflict - sbillard - 23-11-2011 There should be no issue of conflict between "theme per album" and colorbox. However there may be mis-configurations. Depending on what release you came from, the way colorbox gets loaded has changed. Now you must configure it for each script/theme combination. Before it was just loaded, perhaps by the theme itself. So perhaps some of your album themes are not configured to load colorbox or maybe it is getting loaded multiple times. Also as acrylian has mentioned, the javascript to actually attach colorbox to the target has to be in each script that uses colorbox and for each target to be attached. Perhaps that is not the case on all thems. Colorbox and theme per album conflict - bic - 25-11-2011 Thanks acrylian and sbillard for your support. Unfortunately the issue is not related with custom themes. Colorbox and theme per album conflict - acrylian - 25-11-2011 I tried to reproduce this with the curretn svn / 1.4.2 beta. I could not reproduce locally the theme css not being loaded but the colorbox one strangely. Setup is that I have one main theme (acutally the local site to test our own sites theme) and one album without images and 2 subalbums that I set to default theme. Themes look as they should but the colorbox does not work on the default theme although set on the plugin settings. Update: Quick guess is that something with Colorbox and theme per album conflict - sbillard - 25-11-2011 That would be the nature of the beast. If you have an album them it is a different instance of the theme with possibly different options and settings. [edit] However, this should not impact the colorbox settings as they are not "theme" options but plugin options. There is, however, a problem sometimes with getCurrentTheme() where it will return the global theme. That will be fixed in tonight's build. |