Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #1  
Old 02-01-2008, 05:44 PM
bannerninja Offline
forum loafer
 
Join Date: Nov 2007
Posts: 6
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
Reply With Quote
  #2  
Old 02-01-2008, 05:51 PM
austriaka's Avatar
austriaka+ Offline
Team Pixelpost
 
Join Date: Nov 2006
Location: Germany
Posts: 1,175
Send a message via ICQ to austriaka Send a message via AIM to austriaka
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
__________________
Uh!log Photoblog
My Addons
Reply With Quote
  #3  
Old 02-02-2008, 02:09 AM
kevincrafts's Avatar
kevincrafts Offline
pixelpost guru
 
Join Date: Jul 2007
Location: Colorado
Posts: 434
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.
__________________
Kevin | Light & Dark Photoblog

Reply With Quote
  #4  
Old 02-03-2008, 03:33 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
kevin, you could write an addon to do this :P
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #5  
Old 02-05-2008, 09:15 PM
bannerninja Offline
forum loafer
 
Join Date: Nov 2007
Posts: 6
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?
Reply With Quote
  #6  
Old 06-09-2008, 09:08 PM
pni Offline
forum loafer
 
Join Date: Mar 2008
Posts: 1
Quote:
Originally Posted by bannerninja View Post
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".
Reply With Quote
  #7  
Old 06-09-2008, 09:27 PM
dolichocephale Offline
pp regular
 
Join Date: Feb 2006
Location: Paris
Posts: 41
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 )
__________________
dOLicHoCePhaLe.net
Reply With Quote
  #8  
Old 02-15-2009, 06:55 AM
deuteros Offline
forum loafer
 
Join Date: Oct 2008
Posts: 2
No one solved this issue?
Reply With Quote
  #9  
Old 02-15-2009, 07:07 AM
deuteros Offline
forum loafer
 
Join Date: Oct 2008
Posts: 2
Found!

In line 344 of paged_archived.php change

PHP Code:
GROUP BY id 
with

PHP Code:
GROUP BY datetime 
Reply With Quote
  #10  
Old 02-15-2009, 04:13 PM
dolichocephale Offline
pp regular
 
Join Date: Feb 2006
Location: Paris
Posts: 41
Talking

So great !
I didn't have any time to look after it, and i'm pretty bad in PHP... so, many thanks !
__________________
dOLicHoCePhaLe.net
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:27 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs