PDA

View Full Version : Limit Archives Thumbnails.


Tom K
05-16-2006, 05:02 PM
I am using the simple-visions template and I want to limit the thumbnails to my archives pages to 48 per page. How do I do that? Also.....after the number 48 thumbnails is reached will Pixelpost automatically create another thumbnail page?

This is my first post to the forum. Thank you in advance.

http://www.tomkaszuba.com/photo/index.php

Joe[y]
05-16-2006, 05:17 PM
you can use the paged archive addon which comes with Pixelpost. in your browse template html file you need to include the <THUMBNAILS_WHOLE_PAGED> tag and all other tags relevant to the addon.. you can find these relevant tags in your admin addons page.

Tom K
05-17-2006, 04:53 AM
']you can use the paged archive addon which comes with Pixelpost. in your browse template html file you need to include the <THUMBNAILS_WHOLE_PAGED> tag and all other tags relevant to the addon.. you can find these relevant tags in your admin addons page.

I tried using the <THUMBNAILS_WHOLE_PAGED> but then all my thumbnails disappeared. When you say "all tags relevant to the addon"...I am not sure exactly what they are.

Connie
05-17-2006, 05:31 AM
it's not only the tags, you need the Addon activated as well

have a look into the admin section / Addons:

Page-By-Page-Archive for category and month (for PP v1.4) (paged_archive - version 1.0) - status: ON

check that the status is ON and not OFF

below that you read the list of tags which you can use with this activated ! addon!

<CATEGORY_LINKS_AS_LIST> // Category links as a text list for default PP's archive page
<CATEGORY_LINKS_AS_LIST_PAGED> // Category links as a text list for page-by-page archive
<BROWSE_MONTHLY_ARCHIVE_PAGED> // Monthly drop box for default PP's archive page
<BROWSE_MONTHLY_ARCHIVE_AS_LINK_PAGED> // Monthly links as a text list for page-by-page archive
<BROWSE_CATEGORIES_PAGED> // Category drop box for page-by-page archive
<THUMBNAILS_WHOLE_PAGED> // Thumbnails in this page
<THUMBNAILS_PAGES_LINKS> // Link to the pages of thumbnail in the selected category
<ARCHIVE_PAGES_NUM> // Page number you are viewing
<CATEGORY_OR_DATE_NAME_PAGED_ARCHIVE> // Name of the category or Month you select
<LINK_TO_PAGED_ARCHIVE> // Link to Paged-by-page archive page

tell us if that works!

Tom K
05-17-2006, 03:38 PM
I did a search within the code and could not find where it says Status on or off

Below is a snippet of code but no where on the entire page does it indicate where status on or off is:

NEW TAGS:

<CATEGORY_LINKS_AS_LIST> // Category links as a text list for default PP's archive page
<CATEGORY_LINKS_AS_LIST_PAGED> // Category links as a text list for page-by-page archive
<BROWSE_MONTHLY_ARCHIVE_PAGED> // Monthly drop box for default PP's archive page
<BROWSE_MONTHLY_ARCHIVE_AS_LINK_PAGED> // Monthly links as a text list for page-by-page archive
<BROWSE_CATEGORIES_PAGED> // Category drop box for page-by-page archive
<THUMBNAILS_WHOLE_PAGED> // Thumbnails in this page
<THUMBNAILS_PAGES_LINKS> // Link to the pages of thumbnail in the selected category
<ARCHIVE_PAGES_NUM> // Page number you are viewing
<CATEGORY_OR_DATE_NAME_PAGED_ARCHIVE> // Name of the category or Month you select
<LINK_TO_PAGED_ARCHIVE> // Link to Paged-by-page archive page as <a href="index.php?x=browse&amp;pagenum=1">Archive</a>',$tpl);
*/

$addon_name = "Page-By-Page-Archive for category and month (for PP v1.4+)";
$addon_version = "1.0";

$maxpthumb = $cfgrow['maxpthumb'];

Joe[y]
05-17-2006, 03:48 PM
which version of pixelpost are you running? upgrade to 1.5 if you haven't already.

Tom K
05-17-2006, 03:55 PM
']which version of pixelpost are you running? upgrade to 1.5 if you haven't already.

I am running version 1.4.3

Tom K
05-17-2006, 04:20 PM
OK...I just upgraded to V 1.5. I'll play around a bit to see if I can get the Page-By-Page-Archive working.

Tom K
05-17-2006, 04:35 PM
it's not only the tags, you need the Addon activated as well



OK...I just upgraded to V 1.5 and the Addon is "On" I also added the <THUMBNAILS_WHOLE_PAGED> tag to my browse_template but it still does not limit x amount of thumbnails to a page. I have it set in the admin addons page at 7 just to see if the archives page will generate only 7 thumbnails. It doesn't work. Still shows all the thumbnails for every photo I have uploaded.

Any other ideas?

rana
05-17-2006, 05:25 PM
Any other ideas?

Just wait for the next bug free version. I am facing the same problem. :confused: I saw many user's website and most of them facing the same problem except those who did huge modification / customization . :rolleyes:

Tom K
05-17-2006, 06:17 PM
Just wait for the next bug free version. I am facing the same problem. :confused: I saw many user's website and most of them facing the same problem except those who did huge modification / customization . :rolleyes:

You have to be kidding me. I have seen many Pixelpost photoblogs that have this addon working fine. I am so close. There must be an answer.

rana
05-17-2006, 08:02 PM
You have to be kidding me. I have seen many Pixelpost photoblogs that have this addon working fine. I am so close. There must be an answer.

As I said you need to change some code manually, normally I don't see it works as an addon. :(

Saxi
05-20-2006, 11:06 AM
hi there,

^^ same probs - and i have no idea of coding php manually...so most of the posts i read are more than *suomi* to me ;( - iŽll wait an watch.

greets,

Saxi

GeoS
05-20-2006, 11:18 AM
To set is as you want go to Admin Panel -> Addons -> Page-By-Page-Archive for category and month -> Enter the maximum number of thumbnails in each page of the archive page.

Saxi
05-20-2006, 11:43 AM
that has been the easy part of it - a thing non-coders could find out without knowledge ;o) - i´ve been so far...

maybe it won´t work with the light-white-template...

Tom K
05-20-2006, 07:49 PM
To set is as you want go to Admin Panel -> Addons -> Page-By-Page-Archive for category and month -> Enter the maximum number of thumbnails in each page of the archive page.
I tried that. I doesn't work in my case.

Tom K
05-24-2006, 03:42 AM
OK...My PixelPost web site is 99% done. It validates xhtml AND css. The only thing holding me back from perfection (in my eyes ;) ) is this archives page problem. I have tried everything previously mentioned in the thread...to no avail.

Please, please, please help me out on this one people. Pixelpost is the dream program I have been looking for. If I could just solve this problem I would be golden.

Web site address is http://www.tomkaszuba.com/index.php

If you need code to look at please let me know.

Tom K
05-25-2006, 06:53 AM
Is this a problem without a current solution? If so I have no problem waiting for the next version of Pixelpost (I love the software). But I would like to know if it's fixable now or not. The suggestions have been very informative and the folks helping out here are nothing less than wonderful.

Will waiting for the next version of Pixelpost be my best option here?

Tom K
05-26-2006, 03:48 PM
Here is an archive page that is exactly like the one I want to set up (except for the template colors). No categories. Just a group of centered thumbnails with a limited amount per page. How can I do this kind folks. THIS is what I have been striving for: http://pinx.dk/photoblog/index.php?x=browse&category=&pagenum=1



**Please Note** There has been a change in the URL to my PixelPost web site. The URL posted in the opening post in this thread has been moved to: http://www.tomkaszuba.com/index.php

Sorry if there was any confusion.

Tom K
05-27-2006, 04:28 PM
Rana was kind enough to email the fix to this problem. I am not a php expert by any means so me posting the solution would be a mess that makes no sense. I tweaked his fix a little to get the page to validate at w3c.

I want to publicly thank Rana for the kindness he showed and expertise in fixing this problem.

Birdie
06-12-2006, 08:46 PM
This is not difficult with the latest version of Pixelpost. In your template for browse_template.html you need to add the following <THUMBNAILS_WHOLE_PAGED>. This is what will limit your thumbnails according to your setting in the Admin panel (more about that later).

You'll also need to add this code <THUMBNAILS_PAGES_LINKS> so that you can link to the other pages of the archive. This addon does create multiple pages for the archive and if you don't add this you won't have the links to these pages displayed.

In you image_template.html you need to link to this paged archive using the following code <SITE_BROWSELINK_PAGED>. So you'd create a link that looks like <a href="<SITE_BROWSELINK_PAGED>">Browse</a>. Failing to link to the paged archive will take you to the regular archive will ALL the thumbnails.

Then you need to log-in to your Pixelpost program on your server into the admin section. Go to Addons. Scroll down to Page-by-Page Archive and make sure the status says ON. Next enter the maximum number of thumbnails you want to display on your page. Hit the UPDATE button.

That's it. It should work perfectly fine. Thanks to Ramin, Connie, and crew for an excellent addon!

3jaeger
10-13-2006, 02:46 PM
Rana was kind enough to email the fix to this problem. I am not a php expert by any means so me posting the solution would be a mess that makes no sense. I tweaked his fix a little to get the page to validate at w3c.

I want to publicly thank Rana for the kindness he showed and expertise in fixing this problem.

Hello,

I have the same problem, and I can't solve it.
Have you the solution now ?
Thank you for your reply

GeoS
10-13-2006, 11:22 PM
Go to admin -> addons -> paged_archive -> Enter the maximum number of thumbnails in each page of the archive page

:)

Tom K
02-22-2007, 01:47 AM
This page contains a zip file that is downloadable and will fix the problem. It worked for me: http://forum.pixelpost.org/showthread.php?t=4850&highlight=paged_archive.php

Thanks jdleung