![]() |
|
search.php always uses image.php - 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: search.php always uses image.php (/thread-13718.html) |
search.php always uses image.php - ctdlg - 2022-04-30 Hello, Using Zenphoto 1.5.9. Clicking on an image thumb, the image page is opened with the image.php file, even if your album uses another image-something.php file. Example : using "image-s.php" on the image, clicking on the image thumb, image page uses the image-s.php theme. Because I'm using my own theme, I did replace "search.php" file with your original 1.5.9 "search.php" file : same problem. What is strange : the link is ok : if I open it separately, I get the right display. search.php always uses image.php - acrylian - 2022-04-30 Sorry, I don't understand. I have no idea what Please elaborate what you trying to do. search.php always uses image.php - ctdlg - 2022-05-01 Hello,
This screenshot shows you where I can select the image.php file I want - image-s2 is selected here and replaces default image. An image is not always opened on the image.php page ! Search results do not behave like albums : search.php should use the image.php file you choose in album or image settings (admin pages) and not always the default image.php file. I simply want to report a small bug. search.php always uses image.php - acrylian - 2022-05-01 Thanks, we meanwhile realized that you must have been referring to the multiple_layouts plugin. However the only bug we discovered is that image layouts could not be saved for an album if there are not album layouts, too. That bug has been fixed in 1.6a. Search follows that selection as far as tested. search.php always uses image.php - ctdlg - 2022-05-02 Thank you very much : 1.6a solves the problem. search.php always uses image.php - acrylian - 2022-05-02 Thanks for confirming! search.php always uses image.php - ctdlg - 2022-05-02 Sadly, after a full recheck, it does work if you change the layout in the album admin page it does not work if you change the layout in the image admin page. As I do mix different layouts in my images (1 for stereo pictures, 1 for pano pictures, 1 for pictures), I cannot simply use a layout on the album page that can display all those different images correctly. Only search function does not work as expected. search.php always uses image.php - acrylian - 2022-05-02
I am sorry, I just tried with 1.6a and cannot reproduce that. Sure that no caches inferfere? search.php always uses image.php - acrylian - 2022-05-02 Correction, indeed I forgot the search context of your report. Now I see what you mean. Will take a look of course. search.php always uses image.php - ctdlg - 2022-05-02 Thank you. It's indeed a cache problem, because links generated by search page should open the image form it's parent album, not within the search page (breadcrumb shows "Search" instead of "TheAlbum".) I tried a fresh 159 install : same problem. I cannot install 1.6.a from scratch : error in index.php To make the link on a thumb work, I copy it, close the browser, open the browser, paste the link ! I did try under Linux, Firefox and Chrome, I did try under W11, Edge : same problem. I did try to unset variables used in search page, or assign null to those variables : same problem. search.php always uses image.php - acrylian - 2022-05-02
No, what you are describing is actually the plain album/image page directly. By closing the browser you clear/invalidate/loose the cookies that keep the search context. WIthout that an album or image page cannot know it is a search results currently.
No, that is correct behaviour. Search results breadcrums do have "Search" forever. If an image is a search result itself it of course has its parent album but in search hierachy the album is not search result as well. Anyway, I can confirm the issue that layouts set on the image edit page don't work as expected - they do via the album edit page and that even overrides the individual setting - and it is in the plugin multiple_layouts. Working on a fix for it.
What error exactly please? Please open a new topic for this. search.php always uses image.php - acrylian - 2022-05-02 I think I have a fix, it's in 1.6a now. The plugin should work in 1.5.9 as well as there are no actual related fixes to my knowledge. search.php always uses image.php - ctdlg - 2022-05-02 I will try it tomorrow and report too ! EDIT Is 1.6.a safe for being online ? If yes, search.php always uses image.php - acrylian - 2022-05-03
Sorry, forgot that we have changed the database handlers in 1.6a so it will not be compatible anymore.
Well, it is still alpha status and not an official release. It should generally work but we can't guarantee it, especially with third party tools since there are some changes under the hood (and some more coming). It is not recommened for live sites but try on your own risk. |