I recently realized that if you conduct a search and view one of the results it will make the theme for that album default from then on.
Any idea as to why?
I have say 5 variants of a theme and depending on the album, I use any one of them for the album. However if you view the album from a search result it will put the album theme back to default for the site.
Hpoe I have explained that well enough...
Thanks
Comments
Please provide basic infos like what theme and what Zenphoto release.
But I guess I really do not know what criteria you would make. A search can return items from multiple albums. Which theme would you select?
Every album of images can have a specific theme... Lets call it theme2 and lets say the core theme for the rest of the site is theme1.
Lets say you do a search for bumblebees, all the resulting albums that match that search will have its predefined theme2 show up as theme1 from then on.
The only way to fix it is to "edit the album" and resave the theme2 selection.
Album themes apply at only the root level, so every album of images cannot have a specific theme, only root albums can have a specific theme.
Second, nothing in a theme changes Options. Since album themes are stored as options, doing a search cannot change the theme.
So perhpas you would like to try again with your explaination.
Doing a search most deffinately does change the selected theme for a resulting album from the seleted theme to to the zp core theme...
It does not change the selected theme for the album in the options, however it does display the album from that point forward as the zp core theme instead of the predefined selected theme.
It's like when you do a search the search results are displayed using the core theme, when you click an album to view from that search the album is also displayed in the core theme instead of being displayed as its selected theme, and will continue to be that way from then on unless I manually go in and resave the albums selected theme.
I could absolutely show you on the site but it is an adult site.
If you view that album again not via search but through the typical way say via index or something it still displays the album with the core theme.
Perhaps after being shown via a search it caches that album with the core theme for "x" amount of time?
So there is nothing that can be added that would force it to check if albums have predefined themes?
A php snipit perhaps?
The only other option I can think of is for the link you present to go to a script that clears the cookie then redirects to the album you want to link to.