PDA

View Full Version : Limiting number of thumbnails problem.


Tom K
05-10-2007, 05:17 AM
I want 30 thumbnails on this page: http://www.tomkaszuba.com/index.php?x=browse

I have tried to use the <THUMBNAILS_WHOLE_PAGED> tag in the browse_template.html and changed the number of thumbnails in the Admin section of Pixelpost's options section where is says "Page-By-Page-Archive".

It doesn't work. I still get all the thumbnails.

How can I fix this? I am using the latest version of Pixelpost 1.6.

Thank you.

austriaka
05-10-2007, 10:48 AM
to set the number of thumbnails you have to set it in the addons page, in the paged_archive section
In the Options page you set the number of thumbs per row

KArin

dhdesign
05-10-2007, 12:45 PM
I'm having the same problem as the original poster. I've got the number of images to be shown per page set to 20 in the paged archive section in Addons.

I've added the correct tags to the browse template - <THUMBNAILS_WHOLE_PAGED> to show the thumbnails, and at the bottom of the page I have <ARCHIVE_PAGES_NUM> to show the current page, with <THUMBNAILS_PAGES_LINKS> to show all the page numbers.

My browse page (http://www.kpimages.net/index.php?x=browse) still has all the images I've posted so far on it, and the only page number showing at the bottom is the one for the current page at the bottom.

I also have a problem with changing the number of images to be displayed per page in the Addons section. I have to enter the number twice, as the change doesn't "take" the first time around.

Tom K
05-10-2007, 04:09 PM
to set the number of thumbnails you have to set it in the addons page, in the paged_archive section
In the Options page you set the number of thumbs per row

KArin

Yes. I did this. But it does not work. The poster above has the exact same problem. My photoblog is all set to go except for this problem. Any other ideas? To see my photoblog go to www.tomkaszuba.com then see the gallery page and how it has all the thumbnails rather than the 30 I have set. How do I fix this?

Tom K
05-11-2007, 05:26 AM
Forget the whole thing. I went back to my old photoblog design which works fine.

dhdesign
05-11-2007, 12:48 PM
Tom -

I was finally able to find the solution to this problem, thanks to this post (http://forum.pixelpost.org/showpost.php?p=37162&postcount=11).

I was hitting the page using /index.php?x=browse and the page numbers were not showing up at the bottom, even though I had all the correct tags in the browse template.

However, when I hit the page using /index.php?x=browse&pagenum=1, the page numbers finally show up at the bottom, along with the previous/next links.

I still need to change the site nav on the other pages so that the Archives page is linked properly.

You can see it working here (http://www.kpimages.net/index.php?x=browse&pagenum=1).

Now you can fix your new template and use it. ;)

Tom K
05-11-2007, 03:09 PM
Tom -

I was finally able to find the solution to this problem, thanks to this post (http://forum.pixelpost.org/showpost.php?p=37162&postcount=11).

I was hitting the page using /index.php?x=browse and the page numbers were not showing up at the bottom, even though I had all the correct tags in the browse template.

However, when I hit the page using /index.php?x=browse&pagenum=1, the page numbers finally show up at the bottom, along with the previous/next links.

I still need to change the site nav on the other pages so that the Archives page is linked properly.

You can see it working here (http://www.kpimages.net/index.php?x=browse&pagenum=1).

Now you can fix your new template and use it. ;)

When I paste in /index.php?x=browse&pagenum=1 it works perfectly. How do I make it work when I "hit the page"? In other words....what other code needs to be changed elsewhere for this to make it so when someone hit's my archives link it will end up being the corrected url you posted and not the one I currently have?

dhdesign
05-11-2007, 03:25 PM
You need to edit the link in the site navigation for each template page (image, browse, about) and change "index.php?x=browse" to "index.php?x=browse&pagenum=1".

Then it should work properly. ;)

Tom K
05-11-2007, 03:31 PM
You need to edit the link in the site navigation for each template page (image, browse, about) and change "index.php?x=browse" to "index.php?x=browse&pagenum=1".

Then it should work properly. ;)

My link to the archive is <SITE_BROWSELINK>. I have no idea where to change that. Maybe I should manually put in index.php?x=browse&pagenum=1.

I tried using <SITE_BROWSELINK_PAGED> but it didn't work.

dhdesign
05-11-2007, 03:35 PM
Use <LINK_TO_PAGED_ARCHIVE> instead of <SITE_BROWSELINK>, and that should fix the issue.

dakwegmo
05-11-2007, 03:36 PM
Just replace the <SITE_BROWSELINK> with "index.php?x=browse&pagenum=1" and it should work.

Tom K
05-11-2007, 03:36 PM
I just did what you said and manually put in the code you gave me "index.php?x=browse&pagenum=1". It worked like a charm. Many thanks to you. This is great!

Tom K
05-11-2007, 03:40 PM
Just replace the <SITE_BROWSELINK> with "index.php?x=browse&pagenum=1" and it should work.

That worked. For those who need to get this working in the future.....this thread is the answer.

Tom K
05-11-2007, 04:28 PM
A related question. The above fix worked perfectly......but.....suppose I get a large number of a certain category such as "landscapes" for example.........and....I want to limit the number of thumbnails per category such as landscapes.........how do I do that? As it stands now this works for the "all" images selection. When I choose landscapes it no longer just shows the 30 thumbnails I want. Any way to fix that?

Thanks very much.

PS I love Pixelpost and this forum is the best.

pennyjack
08-07-2007, 06:49 PM
I used the <LINK_TO_PAGED_ARCHIVE> as stated earlier and I also tried the "index.php?x=browse&pagenum=1" both worked great but both also REALLY messed up my xhtml validation. The ampersand (&) seems to be the big thing the validator gets fussy about. I tried the ampersand (&amp;) placement they described and the link didn't work correctly. Any thoughts?

EDIT: <LINK_TO_PAGED_ARCHIVE> works just fine. I haven't done any work on my site in awhile and made a coding error in the html. I basically put the above tag in a link...:-P Now it works great and my page is validated! Woo-hoo! Stop by and check it out www.pixperiment.com. Thanks all!