![]() |
|
Print Album Menu: Context issue - 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: Print Album Menu: Context issue (/thread-5108.html) Pages:
1
2
|
Print Album Menu: Context issue - bic - 28-04-2009 Hi all! Latest version of zenphoto (Nightly Build 20/04/2009) with zenpage default theme. Print Album Menu: Context issue - bic - 28-04-2009 edit: Print Album Menu: Context issue - sbillard - 28-04-2009 I think I see what is happening here. Try tonight's build [3839] and see if that fixes it. Print Album Menu: Context issue - bic - 28-04-2009 Ok, installed the 3839 SVN zp-core (but 3836 is reported in admin panel). It solved my issue, and works ok with dynamic albums but, after a normal search, the image.php page in not anymore in ZP_SEARCH_LINKED context, infact Another little issue, already present in previous build, is that if while browsing the image.php pages generated by a dynamic album you click a link in the Breadcrumb and then go back in browser the context is loosed again and you fall in a static album. I suppose that nothing can be done about it. Print Album Menu: Context issue - bic - 28-04-2009 I made further investigations. Print Album Menu: Context issue - sbillard - 29-04-2009 That code seems to make no difference to me. The problem I am seeing is that the image album name is not in the breadcrumbs. That, I believe, is a different issue. Print Album Menu: Context issue - bic - 29-04-2009 That's strange, i do have the image name in the breadcrumbs, and now it works as it should. if i remove the ZP_ALBUM |ZP_IMAGE condition I can't browse the image search results Print Album Menu: Context issue - sbillard - 29-04-2009 Can you walk me through just what is not working when you say you can't browse the image search resluts? I am not seeing any problems. In addition. If we get to the place where the cookie is reset we are not in a search context and the search engine is set to NULL, so there should be nothing to be remembered. Print Album Menu: Context issue - bic - 30-04-2009
Yes, may be that's why it needs the cookie to browse the searched images pages.
This is a search results page: Now after your 1220 line for cookie removal if you click on a thumb, let's say the first one: Before adding the new 1220 line or whit the ZP_ALBUM |ZP_IMAGE condition added: In the pictures I posted you can only see the difference in the breadcrumb (and in the prev button present only in the first case) but if you continue browsing using the next button you'll see that in the first case you are in the Portfolio album (18 images), in the second case you are browsing the search results (4 images). Print Album Menu: Context issue - sbillard - 30-04-2009 This seems to happen only on the zenphoto default theme. I will look into it and see what is going on. (Thanks for the pictures!) Print Album Menu: Context issue - sbillard - 30-04-2009 Found the problem--a bug in the default and zenpage-default theme. Fixed in [3850] or you can delete the line in search.php that loads the prototype.js script (It does not exist!) Print Album Menu: Context issue - bic - 01-05-2009 Great, thanks! Print Album Menu: Context issue - bic - 15-05-2009 I resume this topic to have your attention on another problem, probably due to the same cookie: Print Album Menu: Context issue - sbillard - 15-05-2009 So, have you installed the nightly build? The original problem was caused by "silent" 404 errors. The fix in the nightly build is to avoid clearing the cookie under that circumstance. Print Album Menu: Context issue - bic - 16-05-2009 Yes, latest nightly build has the same problem. Print Album Menu: Context issue - bic - 16-05-2009 Well, I realized that there is not a cookie involved in the second case (NEWS Archive month link). The only thing it has in common with the former case (GALLERY Archive month link)is the word DATE in the REQUEST_URI... Print Album Menu: Context issue - bic - 16-05-2009 print_album_menu line 137: Print Album Menu: Context issue - sbillard - 16-05-2009 Well, date is a valid search option, so that might explain things. Where did the Print Album Menu: Context issue - bic - 16-05-2009 In the query string: Print Album Menu: Context issue - sbillard - 16-05-2009 Yes. Dynamic albums use the search engine. Archive pages use the search engine. There is only one search remembered. |