forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: WillyWonderDog on November 17, 2012, 11:53:40 am

Title: Sort user gallery icons
Post by: WillyWonderDog on November 17, 2012, 11:53:40 am
How can I sort 'user gallery' icons. They appear to be auto-sorted by user-id or date-regged. I would like to sort differently, perhaps by alpha-name or even manually. Thanks for your consideration. By-the-way, cpg is a great piece of software, I really enjoy it.
Title: Re: Sort user gallery icons
Post by: Jeff Bailey on November 17, 2012, 07:27:19 pm
Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
Title: Re: Sort user gallery icons
Post by: WillyWonderDog on November 18, 2012, 04:22:00 am
Here's the link: [removed by request]
username: coppermine
password: password
I would like to sort the "user gallery" (mine displays "members' galleries") icons alphabetically by username; or other options such as newest member regged or member with newest album; etc.
The gallery is not bridged and has very few tweacks.
Thanks for your consideration.
Title: Re: Sort user gallery icons
Post by: Αndré on November 20, 2012, 11:07:21 am
Here's the link: removed at users request - Phill
username: coppermine
password: password
Doesn't work for me.
Title: Re: Sort user gallery icons
Post by: WillyWonderDog on November 20, 2012, 12:11:40 pm
should work now
Title: Re: Sort user gallery icons
Post by: Αndré on November 20, 2012, 12:30:33 pm
That special category is sorted by user ID. There are (at least) 2 possibilities:
1. Use the "User Gallery Alphabetic Tabbing (usergal_alphatabs)" plugin
2. Hard-code the sort order somewhere in the code

I hadn't a closer look at option 2, as I recommend to try that plugin first.
Title: Re: Sort user gallery icons
Post by: WillyWonderDog on November 23, 2012, 01:45:26 am
Thanks for the ideas; User Gallery Alphabetic Tabbing plugin doesn't do what I am looking for, but so far no luck in manipulating the sort-order in the code. I will post if I succeed.
Title: Re: Sort user gallery icons
Post by: Αndré on November 26, 2012, 03:51:58 pm
Please try the following. Open bridge/udb_base.inc.php, find
Code: [Select]
. "ORDER BY category "and replace with
Code: [Select]
. "ORDER BY user_name "at two locations.
Title: Re: Sort user gallery icons
Post by: WillyWonderDog on December 01, 2012, 06:37:24 pm
Solution works perfectly. Thank you. André for president.
The solution sorts user gallery icons in alphabetic order; can also be adjusted for other sorts such as random.
As I am unable to edit a previous post, please remove my link to the gallery, it is no longer active.
Link to new gallery is http://saturday-only.hostoi.com/gallery
Coppermine Photo Gallery is an excellant script.
Title: Re: Sort user gallery icons
Post by: WillyWonderDog on January 01, 2013, 08:12:27 pm
Please remove quoted link in http://forum.coppermine-gallery.net/index.php/topic,75669.msg364727.html#msg364727
It is creating undesirable traffic.
Thank you for your consideration.
Title: Re: Sort user gallery icons
Post by: Phill Luckhurst on January 01, 2013, 09:51:45 pm
Done as requested.