Sort user gallery icons Sort user gallery icons
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Sort user gallery icons

Started by WillyWonderDog, November 17, 2012, 11:53:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

WillyWonderDog

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.

Jeff Bailey

Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

WillyWonderDog

#2
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.

Αndré

#3
Quote from: WillyWonderDog on November 18, 2012, 04:22:00 AM
Here's the link: removed at users request - Phill
username: coppermine
password: password
Doesn't work for me.

WillyWonderDog


Αndré

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.

WillyWonderDog

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.

Αndré

Please try the following. Open bridge/udb_base.inc.php, find
. "ORDER BY category "
and replace with
. "ORDER BY user_name "
at two locations.

WillyWonderDog

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.

WillyWonderDog

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.

phill104

It is a mistake to think you can solve any major problems just with potatoes.