ZenphotoCMS Forum
Album.php combine Image.php - 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: Album.php combine Image.php (/thread-3020.html)

Pages: 1 2 3


Album.php combine Image.php - salemhms - 07-06-2008

Problem was solved when I refreshed the database.
Next question :) I am now displaying the images and album thumbnails on the image.php page skipping album.php out. My question is, can I have users comment on the who album whilst viewing images. So for example if someone is viewing "image001.jpg.php" and clicks "next" to go to "image002.jpg.php" and makes a comment on "image002.jpg.php" ... I want the comment to appear on the whole album (ie on both "image002.jpg.php" and "image001.jpg.php".




Album.php combine Image.php - sbillard - 07-06-2008

That would not be easy to accomplish since the Comment posting will go to the image with the image specified. You could create a custom next_comment() function that consolodated all comments from the album and use it.




Album.php combine Image.php - salemhms - 07-06-2008

Ok the issue with hasNextImage() and hasPrevImage() popped up again and I know why but not a clue on how to solve it. If I search and click on a result of an album from the search page that takes me directly to the image.php page the "Next" functionality breaks and starts skipping albums. Here is the loop for albums on search.php











" title="">







" title="">





[img]/images/tag.png[/img]























`

and the hasNextImage() on image.php is listed above. I've searched around the forums and have been playing with it for a while but I'm completely stumped. I tried play with set_context(), what it seems to be doing is not realising that it is now within an album . If I click on a thumbnail after arriving from a search page that reloads the image.php page it works fine. 

Sorry for the trouble I'm just baffled :(



Album.php combine Image.php - acrylian - 08-06-2008

Sorry, I can't really reproduce this. Did you try disabling mod_rewrite. This can cause those things too (in lack of any better idea)




Album.php combine Image.php - salemhms - 08-06-2008

would it help if I paste the code for image.php and search.php here?
mode_rewrite is an integral part of the theme.




Album.php combine Image.php - acrylian - 08-06-2008

mod_rewrite actually is nothing theme specific unless you hard code any urls. Please try disabling mod_rewrite to see if it works then in one of the standard themes.




Album.php combine Image.php - salemhms - 08-06-2008

alright disabled modrewrite, recoded the hardcoded urls so i go from search.php to /index.php?album=xx&image=xx.jpg and it still skips albums not images :( What weird is that I have all the images in the album listed and they're fine. It's just the nextImageUrl function on that specific page when accessed in that specific way @@;

Is there an alternative way for getNextImageURL and getPrevImageURL ??

Ok, I think I should post up the link to show you.

http://development.thepaperdump.com/dump/

Search for "baskin robins" ignore the auto complete.




Album.php combine Image.php - acrylian - 09-06-2008

No, there is no alternative to those functions. I see the problem now and I can partly reproduce that the next image in the image view is not always the next image in the search results, but actually I don't have any idea. I believe we had that problem before and actually solved it. Maybe sbillard has any idea.




Album.php combine Image.php - salemhms - 09-06-2008

do you reckon the solution is still on the forums? I'm having trouble finding it.
It seems erratic it'll work sometimes and wont at other times. I'll wait and see what sbillard has to say :)




Album.php combine Image.php - acrylian - 09-06-2008

We had a problem with the prev/next, but that was way before 1.1.6 and should already be in there...