forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: herman430 on March 08, 2008, 02:25:26 pm

Title: [Solved]: How to set the last upload album to be on the top of the group?
Post by: herman430 on March 08, 2008, 02:25:26 pm
How to set the last upload album to be on the top of the group?

let say here's my album:
http://www.hermanchan.org/webGallery/index.php?cat=17&page=3

you may find that the date is not in right order
the last gallery "2008_02_23" should be in page 1 first row, but not now in page 3 (last page)

where can I change that setting?
I'm using cpg1.4.16, thx~!
Title: Re: How to set the last upload album to be on the top of the group?
Post by: Nibbler on March 08, 2008, 03:57:11 pm
Either use a custom sort order (http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#sortAlbum) or modify index.php, changing

Code: [Select]
ORDER BY a.pos
to

Code: [Select]
ORDER BY a.aid DESC
Title: Re: How to set the last upload album to be on the top of the group?
Post by: herman430 on March 10, 2008, 12:26:21 pm
thx, it's fixed. ;)


besides, I don't know how to show view count.
even I set "Display number of views below the thumbnail" to YES in Control Panel.

there are no number of views under those thumbnails.
http://www.hermanchan.org/webGallery/thumbnails.php?album=257

thx~
Title: Re: How to set the last upload album to be on the top of the group?
Post by: Joachim Müller on March 10, 2008, 03:18:52 pm
We have a strict "One question per thread" policy that you agreed to respect when signing up. Your initial question got solved (not fixed, but solved). Marking thread accordingly and locking.