Previous Thread
Next Thread
Print Thread
Hop To
#43004 11/09/2004 5:10 AM
Joined: Feb 2004
Posts: 30
I
ILO
Offline
newbie
newbie
I Offline
Joined: Feb 2004
Posts: 30
How do I increase the number of groups. We have been making two groups per fourm, one moderator and one for members Now I get a message. That I cannot have more than 99 How can I get around this

Thanks

#43005 11/09/2004 5:48 AM
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
Hrm.. that could be tough. The biggest issue is the size abilities of the U_Groups field in the users table.

Groups are stored like this '-1-2-3-4-5-6-' etc.... so there would be a finite number of groups that a user could be assigned to. Likewise in the Board table, if you needed to excede the field size, you'd have to alter the field types in the database, so that they wouldn't get truncated.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
#43006 11/09/2004 9:52 AM
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
As long as you are careful you should have no problems - although I am not using them at the moment - I have run with 700+ groups in the past. <img src="https://www.ubbcentral.com/boards/images/graemlins/laugh.gif" alt="" />

But as Josh says - there is a limit to the number of groups that somone can belong to. (I think the field limit is 255 - so 125 would be the maximum)

I can't remember the check you need to take out - but if you have a method for searching the code look for 99 and you will soon find it.

When I find the code, I will post it.

#43007 11/09/2004 11:12 AM
Joined: Jun 2006
Posts: 182
A
member
member
A Offline
Joined: Jun 2006
Posts: 182
In docreategroup.php

Why for god's sake would you need 700+ groups?!

#43008 11/09/2004 6:12 PM
Joined: Feb 2004
Posts: 30
I
ILO
Offline
newbie
newbie
I Offline
Joined: Feb 2004
Posts: 30
I use a tool called webmin. This tool allows me to access the database and I have been able to add more rows for groups. I moved it up 50 more rows and it allowed me to created more groups. I hope this does not create anymore problems but it seems to work.
Table w3t_Groups in database, then just add rows

Greg

#43009 11/09/2004 6:56 PM
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
[]
But as Josh says - there is a limit to the number of groups that somone can belong to. (I think the field limit is 255 - so 125 would be the maximum)
[/]
I think, if I've figurd this right - if it's a varchar 255 field, then you could hold about 85 groups per user.

Figure most of the groups are double digits, then the dash. Because each group is listed in the U_Groups or Bo_Read fields like -10-11-15-18-20- So each group added uses 3 characters.

You could increase the field size, but there's a lot of searching by groups in those fields, so not sure if that would affect efficiency or not.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
#43010 11/17/2004 8:56 AM
Joined: Nov 2004
Posts: 28
D
newbie
newbie
D Offline
Joined: Nov 2004
Posts: 28
As the last resort you can change the field type to TEXT. That will allow you a great deal of groups to be stored but it will come at a price. You will need to change the index to that field to a FULLTEXT one and then modify the .threads code in every area that this field is queried to comply with the FullText searches of MySQL. It is quite a task but if you must, I see no other alternative.


Nikos

Web Desing/Programming: http://niden.net
#43011 11/17/2004 4:19 PM
Joined: Jun 2006
Posts: 3,837
I
Ian Offline
Carpal Tunnel
Carpal Tunnel
I Offline
Joined: Jun 2006
Posts: 3,837
He shouldn't need to do this.

Unless a user belongs to over 85 groups (thanks Josh my maths was way out!) at any one time, then the issue will not apply.

When I was using 700+ groups a member only belonged to 4 or 5 groups at the most at any one time.

So the U_Groups was never over-used.


Anno - I had one group for each football club in the UK - and depending upon their club their side and top navigations varied for each member.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Who's Online Now
2 members (Gizmo, Stovebolt), 813 guests, and 157 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240501)