Advanced search  

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

Pages: [1]   Go Down

Author Topic: Sort user gallery icons  (Read 8142 times)

0 Members and 1 Guest are viewing this topic.

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Sort user gallery icons
« 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.
Logged

Jeff Bailey

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1322
  • Fishing relaxes me.
    • Bailey Family Co.
Logged
Thinking is the hardest work there is, which is probably the reason why so few engage in it. - Henry Ford

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Re: Sort user gallery icons
« Reply #2 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.
« Last Edit: December 01, 2012, 08:58:55 pm by Αndré »
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort user gallery icons
« Reply #3 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.
« Last Edit: January 01, 2013, 09:51:25 pm by Phill Luckhurst »
Logged

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Re: Sort user gallery icons
« Reply #4 on: November 20, 2012, 12:11:40 pm »

should work now
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort user gallery icons
« Reply #5 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.
Logged

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Re: Sort user gallery icons
« Reply #6 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.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Sort user gallery icons
« Reply #7 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.
Logged

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Re: Sort user gallery icons
« Reply #8 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.
Logged

WillyWonderDog

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Posts: 19
Re: Sort user gallery icons
« Reply #9 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.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Sort user gallery icons
« Reply #10 on: January 01, 2013, 09:51:45 pm »

Done as requested.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 20 queries.