TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,231
  • Total Topics: 21,353
  • Online today: 651
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 155
  • Total: 155

Help to Sort the Group Permission Selection Areas

Started by daemonist, September 13, 2006, 04:30:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

daemonist

I am running:

  • Windows Server 2003
  • SMF 1.1 RC3
  • TP 0.9.5
  • Group Moderators
  • WowItems

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!

IchBin

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.

daemonist

Thank you so much IchBin!  I'd appreciate anything you could do to help.

IchBin


feline

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

daemonist

That worked PERFECTLY!

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

;)  Cheers!

This website is proudly hosted on Crocweb Cloud Website Hosting.