Gossamer Forum
Quote Reply
Avatars
Is there a way to display the user icons in alphabetical order in the Edit Profile area? I've added several icons, but they are displayed for selection in no apparent order. Unsure

Sean
Quote Reply
Re: [SeanP] Avatars In reply to
bump
Quote Reply
Re: [SeanP] Avatars In reply to
Is there anyone that knows how to get these in some sort of order?
Quote Reply
Re: [SeanP] Avatars In reply to
Hi Sean,

Gossamer Forum doesn't order them currently, but I'll make a change to do so for the next release. Inside admin/GForum/User.pm, under "sub icons", change the line:

for (keys %{$CFG->{user_icons}}) {

to the following by adding the part in red:

for (sort { lc($a) cmp lc($b) } keys %{$CFG->{user_icons}}) {

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Avatars In reply to
Thanks... That put them in order on the admin panel, but is there a way to sort them in the "Edit Profile" area as well, for the users?

Sean
Quote Reply
Re: [SeanP] Avatars In reply to
Both the user side and admin use the same code - they should be sorted on the user side as well after making the change.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Avatars In reply to
It's sorted in the admin area, but not in the user area. I'm running SpeedyCGI. Do you think it's showing cached data? I tried restarting my web server.

Sean
Quote Reply
Re: [SeanP] Avatars In reply to
In Reply To:
It's sorted in the admin area, but not in the user area. I'm running SpeedyCGI. Do you think it's showing cached data? I tried restarting my web server.

Sean

You may need to restart speedy - from the documentation:

Quote:
How can I make sure speedy restarts when I edit a perl library used by the CGI?
Do a touch on the main cgi file that is executed. The mtime on the main file is
checked each time the front-end runs.

So, it should be sufficient to "touch gforum.cgi" - or, if you don't have shell access, open it and save it without making any changes.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Avatars In reply to
That did it! Thanks!

Sean