<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>zenphoto forums Topic: How to split thumbs to multiple pages?</title>
<link>http://www.zenphoto.org/support/</link>
<description>zenphoto forums Topic: How to split thumbs to multiple pages?</description>
<language>en</language>
<pubDate>Sun, 19 May 2013 12:06:58 +0000</pubDate>

<item>
<title>acrylian on "How to split thumbs to multiple pages?"</title>
<link>http://www.zenphoto.org/support/topic.php?id=6660#post-38973</link>
<pubDate>Thu, 24 Dec 2009 02:19:37 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">38973@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;&#60;code&#62;zp_load_album($tempAlbumName)&#60;/code&#62; sets up a global variable named &#60;code&#62;$_zp_current_album&#60;/code&#62; that contains the object of that album which contains all info. You should take a look at our list of globals and the functions documentation of the classes.&#60;/p&#62;
&#60;p&#62;&#60;code&#62;next_album&#60;/code&#62; is context sensitive so if you want to show all albums always you have to use the object model. The print_album_menu plugin does perhaps do what you want but without thumbnails.
&#60;/p&#62;</description>
</item>
<item>
<title>weeman on "How to split thumbs to multiple pages?"</title>
<link>http://www.zenphoto.org/support/topic.php?id=6660#post-38972</link>
<pubDate>Thu, 24 Dec 2009 01:04:30 +0000</pubDate>
<dc:creator>weeman</dc:creator>
<guid isPermaLink="false">38972@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Sorry for my unclear question :-)&#60;/p&#62;
&#60;p&#62;The point is:&#60;br /&#62;
There is an area on my page which shows links to the albums (subalbums are not used). This navigation list is generated by index.php using the next_album() function. The same navigation list, however, shall be also displayed on the album.php page which contains all the thumbnails using next_image().&#60;/p&#62;
&#60;p&#62;I made a workaround to achieve this:&#60;/p&#62;
&#60;ul&#62;
&#60;li&#62;When album.php is loaded, the current album title is stored in a temporary variable $tempAlbumName.&#60;/li&#62;
&#60;li&#62;Recalling zp_load_gallery() and next_album() to insert the album titles into the navigation.&#60;/li&#62;
&#60;li&#62;Reloading the album with zp_load_album($tempAlbumName) followed by the next_image() function for the thumbnails.&#60;/li&#62;
&#60;/ul&#62;
&#60;p&#62;I bet there are more elegant and optimized ways to get the same behavior but this is what I could figure out.&#60;/p&#62;
&#60;p&#62;Merry Christmas :-)
&#60;/p&#62;</description>
</item>
<item>
<title>sbillard on "How to split thumbs to multiple pages?"</title>
<link>http://www.zenphoto.org/support/topic.php?id=6660#post-38966</link>
<pubDate>Wed, 23 Dec 2009 15:08:25 +0000</pubDate>
<dc:creator>sbillard</dc:creator>
<guid isPermaLink="false">38966@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Album objects contain the descriptions. I am not clear on what you want to do, but if it is to just list the descriptions of the albums in a subalbum you would have to use the next album loop (assuming you are on an album page) an only display the descriptions.&#60;/p&#62;
&#60;p&#62;If you want something different you will have to program that using the zenphoto object model.
&#60;/p&#62;</description>
</item>
<item>
<title>weeman on "How to split thumbs to multiple pages?"</title>
<link>http://www.zenphoto.org/support/topic.php?id=6660#post-38963</link>
<pubDate>Wed, 23 Dec 2009 14:04:17 +0000</pubDate>
<dc:creator>weeman</dc:creator>
<guid isPermaLink="false">38963@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Yes, I've read the tutorial. I'm using the default Zenphoto theme as a base referring to my own CSS for the layout.&#60;/p&#62;
&#60;p&#62;Actually, all I need to know is if there is a way to access all album titles from within the album.php :-)
&#60;/p&#62;</description>
</item>
<item>
<title>acrylian on "How to split thumbs to multiple pages?"</title>
<link>http://www.zenphoto.org/support/topic.php?id=6660#post-38961</link>
<pubDate>Wed, 23 Dec 2009 13:43:08 +0000</pubDate>
<dc:creator>acrylian</dc:creator>
<guid isPermaLink="false">38961@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;I assume you read or theming tutorial? If there is no &#60;code&#62;next_album&#60;/code&#62; loop on your album.php then there is no listing of albums. What theme are you using as a base. Or maybe post a link to your site, otherwise we are guessing.
&#60;/p&#62;</description>
</item>
<item>
<title>weeman on "How to split thumbs to multiple pages?"</title>
<link>http://www.zenphoto.org/support/topic.php?id=6660#post-38959</link>
<pubDate>Wed, 23 Dec 2009 13:22:36 +0000</pubDate>
<dc:creator>weeman</dc:creator>
<guid isPermaLink="false">38959@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Thanks for the info. Yes, I think you're right. I changed my approach to making a theme which makes handling the Zenphoto functions a lot easier.&#60;/p&#62;
&#60;p&#62;Due to using a theme however, there are some new issues I have to figure out. Basically, this is what I want my theme/page to do:&#60;/p&#62;
&#60;p&#62;1. index.php&#60;br /&#62;
The main page shall create links to the albums. For this, I'm using&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;while (next_album(true)) {
print(&#38;#39;&#38;lt;li&#38;gt;Link to album&#38;lt;/li&#38;gt;
&#38;#39;);
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;which works fine.&#60;/p&#62;
&#60;p&#62;2. album.php&#60;br /&#62;
This page shall show all thumbnails for the images which is working fine as well with&#60;/p&#62;
&#60;pre&#62;next_image()&#60;/pre&#62;
. But here's the problem:&#60;/p&#62;
&#60;p&#62;This page shall also show the links to all albums as mentioned in 1. However, the next_album() function is not available as album.php seems already to be operating in an album.&#60;/p&#62;
&#60;p&#62;Do you have any hint for this? Hopefully, my question is not too confusing? :-)
&#60;/p&#62;</description>
</item>
<item>
<title>sbillard on "How to split thumbs to multiple pages?"</title>
<link>http://www.zenphoto.org/support/topic.php?id=6660#post-38935</link>
<pubDate>Tue, 22 Dec 2009 15:23:42 +0000</pubDate>
<dc:creator>sbillard</dc:creator>
<guid isPermaLink="false">38935@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Pagination in Zenphoto is integrally built into the normal way Zenphoto works (loading pages via the index.php script.) You will need to pretty much setup the &#34;normal&#34; Zenphoto environment. Seems to me that you would be better off just using that environment in the first place.&#60;/p&#62;
&#60;p&#62;Anyway, since it seems you are not putting album thumbs on the page you do not need the &#60;code&#62;normalizeColumns()&#60;/code&#62; part. You can use just &#60;code&#62;next_image()&#60;/code&#62;. You will also need to manage the Zenphoto page# variables.
&#60;/p&#62;</description>
</item>
<item>
<title>weeman on "How to split thumbs to multiple pages?"</title>
<link>http://www.zenphoto.org/support/topic.php?id=6660#post-38934</link>
<pubDate>Tue, 22 Dec 2009 14:02:25 +0000</pubDate>
<dc:creator>weeman</dc:creator>
<guid isPermaLink="false">38934@http://www.zenphoto.org/support/</guid>
<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I'm using some of the Zenphoto functions to embed features into my existing webpages. Basically, this is what I'm doing so far:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
zp_load_gallery();&#60;br /&#62;
zp_load_album('test');&#60;br /&#62;
while(next_image(true)) {&#60;br /&#62;
print('&#60;a href=&#34;' . getFullImageURL() .'&#34; rel=&#34;lightbox&#34;&#62;&#38;lt;img src=&#34;' . getImageThumb(getImageTitle()) . '&#34;&#38;gt;&#60;/a&#62;');&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;This works fine for displaying every thumbnail of the album on a single page. However, I just don't understand how to seperate this &#34;display as one page&#34; into multiple pages showing e.g. 5 thumbs per page.&#60;/p&#62;
&#60;p&#62;I tried modifying the above to:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
$i = normalizeColumns('1','5')&#60;br /&#62;
while(next_image(false, $i)) {&#60;br /&#62;
print('&#60;a href=&#34;' . getFullImageURL() .'&#34; rel=&#34;lightbox&#34;&#62;&#38;lt;img src=&#34;' . getImageThumb(getImageTitle()) . '&#34;&#38;gt;&#60;/a&#62;');&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;But the only effect is that no thumbs are displayed at all. Could someone assist me?&#60;/p&#62;
&#60;p&#62;Robert
&#60;/p&#62;</description>
</item>

</channel>
</rss>
