Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Hacks and Modifications (http://www.pixelpost.org/forum/forumdisplay.php?f=16)
-   -   Sorting order for archive page (http://www.pixelpost.org/forum/showthread.php?t=7830)

bannerninja 02-01-2008 05:44 PM

Sorting order for archive page
 
How do I go about changing the sorting order on the archive page of my photo blog - link here - right now it displays the images in chronological order (with the option to sort according to categories, etc) - but I would really like to sort them in reverse chronological order so I get the newest first.

I suspect this needs some sort of change in the php code (of which I know next to nothing) since I haven't been able to locate any such option in the admin interface.

Any help would be appreciated :)

austriaka 02-01-2008 05:51 PM

which version do you use?
Usually the photos in the archive are shown in the same order as in the blog page - newest entry first

kevincrafts 02-02-2008 02:09 AM

I actually kind of wish they were in reverse order on the archive/browse pages - so then page 1 would always be page 1 and as you added new photos you added new pages but the previous pages wouldn't change. I had hacked my index file at one time but I stopped doing that a couple versions ago so I wouldn't have upgrade problems.

Dennis 02-03-2008 03:33 PM

kevin, you could write an addon to do this :P

bannerninja 02-05-2008 09:15 PM

Sorry about the lack of response - have been out of town :)
Anyways, I am using version 1.7 - having just dug around a bit I've discovered that it's probably something in the theme I am using that's causing this, as the archive IS indeed shown in reverse chronological order when using the the simple theme.

It would seem that the tag <THUMBNAILS_WHOLE_PAGED> is the cause of this - I do have the addon installed but it would appear this is showing the thumbnails in the actual chronological order - any way to go around this?

pni 06-09-2008 09:08 PM

Quote:

Originally Posted by bannerninja (Post 54502)
It would seem that the tag <THUMBNAILS_WHOLE_PAGED> is the cause of this

I'd guess so too. It looks like <THUMBNAILS_WHOLE_PAGED> sorts the thumbnails in "id" order, not in "datetime".

dolichocephale 06-09-2008 09:27 PM

It's the same for me. It happens since i use Pixelpost 1.7...
If someone know how to change it, it would be very appreciated ! (i don't know anything in PHP :()

deuteros 02-15-2009 06:55 AM

No one solved this issue? :(

deuteros 02-15-2009 07:07 AM

Found!

In line 344 of paged_archived.php change

PHP Code:

GROUP BY id 

with

PHP Code:

GROUP BY datetime 

:)

dolichocephale 02-15-2009 04:13 PM

So great !
I didn't have any time to look after it, and i'm pretty bad in PHP... so, many thanks !


All times are GMT. The time now is 06:02 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.