TinyPortal

Development => Feedback => Topic started by: daemonist on September 13, 2006, 04:30:13 PM

Title: Help to Sort the Group Permission Selection Areas
Post by: daemonist on September 13, 2006, 04:30:13 PM
I am running:

All of this is on hardware that I have direct access to.  I am the administrator for the machine. 




The question I have is for the TinyPortal security checkboxes that appear in blocks and articles, security, etc.  Is there any way to have the groups sorted in alphabetical order?  We have alot of groups that grant access to various sections of the site, but, it is hard to plod through when they are jumbled in "entry" order.

I'm up to changing the code, if that is required (although, I'd need guidance as to where and what to change :) ).  I'm hoping, however, that there is an option "sort the groups" hidden somewhere that I've missed. 

As a note:  The group lists are sorted in other places, just not in the "grant access to these group" areas.

thanks!
Title: Re: Help to Sort the Group Permission Selection Areas
Post by: IchBin on September 13, 2006, 06:57:49 PM
So your want the list of groups (that have the checkbox) to be in alphabetical order? I'm not sure how, but I think someone could come up with something. I'll take a look and see if I can figure it out.
Title: Re: Help to Sort the Group Permission Selection Areas
Post by: daemonist on September 13, 2006, 11:04:53 PM
Thank you so much IchBin!  I'd appreciate anything you could do to help.
Title: Re: Help to Sort the Group Permission Selection Areas
Post by: IchBin on September 14, 2006, 01:20:58 AM
Moving this to suggestions.
Title: Re: Help to Sort the Group Permission Selection Areas
Post by: feline on September 15, 2006, 12:56:57 AM
For TP 0.95 Beta ...

Sources\TPdlmanager.php
  1283: SELECT * FROM {$db_prefix}membergroups WHERE 1 ORDER BY ID_GROUP", __FILE__, __LINE__);

Sources\TPortalAdmin.php
  1746: SELECT * FROM {$db_prefix}membergroups WHERE 1 ORDER BY ID_GROUP", __FILE__, __LINE__);

replace the lines with:
  SELECT * FROM {$db_prefix}membergroups WHERE 1 ORDER BY groupName", __FILE__, __LINE__);

Fel
Title: Re: Help to Sort the Group Permission Selection Areas
Post by: daemonist on September 18, 2006, 04:25:56 PM
That worked PERFECTLY!

Thank you so much, and it was such an easy update.

;)  Cheers!