PDA

View Full Version : Ranks displayed in reversed usergroupid order


pneumothorax
08-02-2009, 10:26 AM
Hi all,
I've got the following issue:
Created some public usergroups, each one with it's own user rank. If e user is a member of two or more groups ranks are displayed side by side. But all of them are displayed in reversed order. A quick look in function_ranks.php showed that the SQL query builds rank array with a DESC clause by default:

"ORDER BY ranks.usergroupid DESC, minposts DESC"

Changing to "ORDER BY ranks.usergroupid ASC, minposts DESC" fixed the issue and everything worked fine. Untill v3.8.3. Now it doesn't matter what I do, ranks are displayed with it's default order, which in my case displays ranks in reversed alphabetical order.

What could I do to fix this issue.

Any ideas are greatly appreciated.
Thank you!

Vasko Ivanov

Lynne
08-02-2009, 03:48 PM
So you changed the code in the function_ranks.php page for the 3.8.3 version also?

There is a thread where a user posts how to add an order column to the rank manager so you can specify what order the ranks are shown in. Try a search on "rank" for "titles only" in these forums and you should find the thread.