Hello,
First off - awesome program!!
I am creating my own theme. When one goes to the image.php view from the album.php view, I am able to display all of the thumbnails of the album in a sidebar to ease navigation between the photos in the album.
However, when I go to an image from the search/archive page, my thungnails for the "dynamic" album do not show. I can click through the images spanning across multiple albums created by the search though by using the previous/next links. So, the image (array?) is there, how do I show the thumbs for this dynamic album?
I am currently using:
`
" title="">
`
Do I need to modify this somehow to be able to show the thumbs when coming from the search/archive page?
I hope this all make sense, and again - thanks a bunch - I love ZenPhoto!
Dynamic albums are funny beasts. They don't really exist, so when you are viewing the image page, its album is the physical album within which it resides.
To find the dynamic album you will have to use code like is found in `printAlbumBreadcrumb() to establish an album object for the dynamic album.
I used code below to show the thumbs for the search on the image page while in search context.
``
BertSimmons: Thanks that is exactly what I needed! I wrapped the photo links around the printImage and it works good except for one thing:
Lets say I have two galleries with 4 photos in each, both created in April 2008. When I click on the archive for April 2008, I get photo 1,2,3,4 from gallery 1 and a,b,c,d from gallery 2 in that order. When I click on photo 1, it takes me to the image.php view showing photo 1 with the thumbnails in the same order 1,2,3,4,a,b,c,d. When I click on photo A, the order of the photos changes to 4,3,2,1,d,c,b,a. Any ideas how to correct this so the images stay in the same order?
Thanks!
Same problem for me "gir". How can I fix it.
This order is really appromative and I can't see all of the images of the search, when I use "prev / next" buttons.
Also, I've created a link on the full image view, which is leading on the album page.
It works generally, but not for the dynamic albums (in "search mode ^^").
sbillard, I don't understand your method, I'm sorry, I'm french and a little bit newbie ^^
Vincent
gjr
as for the sort order.. are you using the lates nightly build?
gjr+vincent;
my complete code for thumbs on the image page both in an dynamic album context as in a normal alnum context is:
`
`
I used the $_zp_current_image=$remember; part to recall the $_zp_current_image to default sized image that is in view to be able to use functions on that after the thumblist
It's of course impossible to tell you all the changes, we change things all the time. That is why we don't recommend hacking core files.:-)
If you get problems depends on your modifications. If you only modified your theme you probably will not have that much problems.
It is quite possible to tell the changes. All you need is a good file comparator program. If you are running a PC, I would recommend "Beyond Compare 2" www.scootersoftware.com/
Then you make a comparison of your customized files and the release. You can also browse http://www.zenphoto.org/trac/log/ where the changes are noted.
But the best thing would be not to modify the zenphoto core if at all possible. You can create your own custom functions--many of the themes have customfunction.php files. If you are making a customized theme, create a copy of the distributed one under a different name then make modifications to it.