Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Does anyone know what I would need to do to have more than 99 groups?

Sponsored Links
Joined: Mar 2001
Posts: 644
Member
Member
Offline
Joined: Mar 2001
Posts: 644
*ponders more than 99 groups.... head explodes*


Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
I beleive currently this is a no go.

I remember somewhere on here Rick posting that this is not possible. There are too many problems with the way things are coded to go beyond this.

Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Hmmm, looks like I'm going to have to figure out a new way to implement groups.

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Chuck is right. More groups will cause Problems if a single user is in too many groups.
Maybe you can help me to convince Rick to store the user&group informations in a seperate table. That would solve the issue and it would be a lot easier to use the threads in other applications.

Sponsored Links
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
Ah God Astaran lets not go there. You know how Rick talks about the LEFT JOINS NOW and worrying about code bloat like or competitor VB. I don't think doing another one will make him happy.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Hmm... I have over 600 groups with no issues I will dig out the alterations that I made. As long as memebers do not belong to all groups, you should be fine - I certainly have not had any issues to date. The majority of my members will belong to no more than 5 groups at any one time.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Jun 2003
Posts: 1,025
Junior Member
Junior Member
Offline
Joined: Jun 2003
Posts: 1,025
Cool, that sounds like what I need. I appreciate you documenting what it takes to do it.

Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Okay - the potential problems are when you assign permissions to a particular board for reading, writing & reply permissions - if you have too many groups with permissions set, then you will go over the 255 character limit - each group has an extra '-' after the digit, to add to the length.

The way I use groups, is to enable additional features & links - so as far as permissions are concerened, I just user the basic 4 groups (admin, mod, user & guests), with perhaps one or two others, well within the limits set.


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Okay - usual disclaimers apply - I cannot be held responsible if your forums die, or Elvis comes knocking on your front door etc...


In admin/docreategroup.php find this

-----------------------------------------
Make sure we don't already have 99 groups
$query = "
SELECT COUNT(*)
FROM {$config['tbprefix']}Groups
";
$sth = $dbh -> do_query($query);
list($num) = $dbh -> fetch_array($sth);
$dbh -> finish_sth($sth);

if ($num == "99") {
$html -> not_right("{$ubbt_lang['MAX_GROUP']}",$Cat);
}

and change it to...


// -----------------------------------------
// Make sure we don't already have 99 groups
// $query = "
// SELECT COUNT(*)
// FROM {$config['tbprefix']}Groups
// ";
// $sth = $dbh -> do_query($query);
// list($num) = $dbh -> fetch_array($sth);
// $dbh -> finish_sth($sth);
//
// if ($num == "99") {
// $html -> not_right("{$ubbt_lang['MAX_GROUP']}",$Cat);
// }

That is it - if you want to see how it works on my site go to http://www.nonleague.com register, select a team from the Ryman Premier League - go to Change Display settings under My Home and select another team in the Ryman Premier League, and see how the navigation above, and the side bar alters. (Only the Ryman Premier League is fully using the system at the moment.)

As I say, it may or may not work for you depending upon how you need to use groups.

I should also mention that my groups are not sequential - my numbering system goes up to over 5300, due to my database diving


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Sponsored Links

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
hatter
hatter
USA
Posts: 69
Joined: January 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)