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
-
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.
-
Please post a link.
http://forum.coppermine-gallery.net/index.php/topic,55415.msg270616.html#msg270616
-
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.
-
Here's the link: removed at users request - Phill
username: coppermine
password: password
Doesn't work for me.
-
should work now
-
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.
-
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.
-
Please try the following. Open bridge/udb_base.inc.php, find
. "ORDER BY category "
and replace with
. "ORDER BY user_name "
at two locations.
-
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.
-
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.
-
Done as requested.