Member
Member
some guy   2008-10-07, 05:26
#1

Hi all,

I'm tinkering with Zenphoto on my localhost with xampp using the JoshuaInk theme. I would like to add a paginator to my galleries so viewers can go to any page they like rather than having to click on the next and previous arrows multiple times. I came across this tutorial: http://www.strangerstudios.com/blog/2006/07/07/paginate-your-site-like-digg/ but not sure exactly how to implement this into the theme. Anyone have any ideas how to do this?

Any help would be greatly appreciated!

Administrator
Administrator
acrylian   2008-10-07, 08:48
#2

So you are speaking of the image page, right? Well, I suggest take a look at the pagelist functions and adapt that as a custom function to the image page.

Member
Member
some guy   2008-10-07, 10:55
#3

I plan on having many images in each album so the paginator would work well with pages that contain all the thumbnails. I have made it that when you click on an thumbnail it goes directly to the full sized image in a new window- not to an intermediate page with comments/ratings function. I'm a php newbie so I'm not really sure how to implement the code into zenphoto. The link I provided above (http://www.strangerstudios.com/blog/2006/07/07/paginate-your-site-like-digg/) has the style sheet and php code but doesn't give too much info on how to do this. I know where the css code goes but I'm not sure how to edit the php code and where exactly to put it. If anyone has any experience with this kind of thing then please don't hesitate to point me in the right direction.

Thanks.

Member
Member
flu   2008-10-07, 15:05
#4

Hi, I'm not sure to exactly understand what you want to do but this post :
http://www.zenphoto.org/support/topic.php?id=3247#post-19492
may be helpful.

Administrator
Administrator
acrylian   2008-10-07, 16:06
#5

So you want to have a prev/next for the full size image? Then you could just modify your image.php page to not have ratings etc. and call the full size image directly on that or set that image size in the options that high that it is bigger than your biggest full size image.

Member
Member
some guy   2008-10-08, 06:00
#6

Thanks for your replies! I am now working with someone who is helping me with the paginator. I noticed that other themes have a simple paginator (two arrows and the page numbers) but the JoshuaInk theme does not. I think it will be enormously useful for those with large amounts of images in their albums for viewers to go to desired pages rather than having to keep clicking on the 'next' arrow. If I successfully add it into the script I will update this thread and let you know how to do it for others who are interested.

acrylian: I already changed the code so that when you click on a thumbnail it will take you to the full sized image in a new window. I just changed this line `

Administrator
Administrator
acrylian   2008-10-08, 09:30
#7

Ok, that is the right way to do it. but if you just call the full size image on image.php the paginator will be much easier. you could for example just use the next_image loop then.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.