Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: gafai on May 06, 2012, 04:46:02 PM

Title: editing group not saved FULL
Post by: gafai on May 06, 2012, 04:46:02 PM
index.php?action=admin;area=membergroups;sa=edit;group=102

when I add or edit membergroup it not save all of selected visibility topics......
It start i think after i add more than 100 user groups


Any Idea what is problem?

EDIT: it not remember settings for some categories or boards ( my tests )
Title: Re: editing group not saved FULL
Post by: Arantor on May 06, 2012, 04:59:40 PM
It's a flaw in how SMF handles boards and groups. Do you really need over 100 groups in use at once?
Title: Re: editing group not saved FULL
Post by: gafai on May 06, 2012, 05:00:56 PM
yes  i need, my website is based on them....
many boards, many groups.....
How to solve?
Title: Re: editing group not saved FULL
Post by: Arantor on May 06, 2012, 05:40:26 PM
It requires altering the database manually, probably altering various pieces of code to make it all work. It will take a lot of work, and be fragile until it gets fixed sometime in the future.

(I'm curious, why exactly do you need to have hundreds of groups?)
Title: Re: editing group not saved FULL
Post by: gafai on May 06, 2012, 05:42:55 PM
student phorum - 3 universities  many study programs(usergroups) / many subjects (Boards)
and today i find this very BIG problem...... absolute FAIL :( :( :( :(

This must be solved....
in the moment i can do some correctures in usergroups by spliting some but.... it increasing....
I never mind that this can happend .... :(
Title: Re: editing group not saved FULL
Post by: Arantor on May 06, 2012, 05:52:46 PM
I think you can probably fix this somewhat. What exactly are you using the usergroups for?

Are you using it so users can only see the boards for the classes they're signed up for or what?
Title: Re: editing group not saved FULL
Post by: gafai on May 06, 2012, 05:56:31 PM
study programs(user groups)/mathematics/
can see only some boards (subjects)/math analyses, integrals teory.... etc./
but some common subjects /english, german language ...etc./


Title: Re: editing group not saved FULL
Post by: gafai on May 06, 2012, 05:58:39 PM
its not effective if they will see everything... its veeery big (small example of public visible part: http://ja.citam.info/studijne-plany-programy-verejne/ )
Title: Re: editing group not saved FULL
Post by: Arantor on May 06, 2012, 06:05:28 PM
In which case, you can create as many groups as you like (up to a maximum of 65534) but you just can't attach that many groups to boards - that's where the problem occurs.

I can't see how dozens and dozens of groups would need to access a single board - unless it's something really common like a language, in which case you can create another group that covers that language, and assign multiple groups to users (since there's that option too)
Title: Re: editing group not saved FULL
Post by: gafai on May 06, 2012, 06:11:17 PM
hmm if I understand it now..... for example I have board - "RULES"

as you say.. I have problem with assign it to some new groups... because it is added to all groups...

That mean i must create different group named /rules/ and add users to it instead of  adding this board to all usergroups

(IS there some mod to do this faster? because i must now reorder more then 100 groups)

Title: Re: editing group not saved FULL
Post by: gafai on May 06, 2012, 06:14:47 PM
i make some tests... you are right.... hmm now i must reorganize my phorum.... ufff lot of time rebuilding.... BUT THANk YOU FOR EXPLANATION :)
Title: Re: editing group not saved FULL
Post by: Arantor on May 06, 2012, 06:16:47 PM
In the case of the rules board, you can cheat and do it based on the post count groups since every member has whatever groups you assign and whatever post count group they're in (and they can't *not* be in a post count group)

There's no mod for doing it because all the cases of many many boards / many groups are pretty much unique so there's no meaningful way to make a mod for it.
Title: LOGIN session not same in frontpage and login page = good-BAD LOGIN
Post by: gafai on May 06, 2012, 06:22:49 PM
Thanks

I have another question.. s
ome users tells me and I saw onetime this problem too:

Sometimes when users want login  with correct data, forum say bad login
I try to find where is problem and i find that if user want login from frontpage(in heading) there is "old session id) then on login page is "new" session id and login is good(In hidden inputs)....... is this bug? solution?
Title: Re: editing group not saved FULL
Post by: Arantor on May 06, 2012, 06:44:40 PM
Without seeing the site I can't tell you for sure but it also relates to whether your site uses www. or not in the domain name.
Title: Re: editing group not saved FULL
Post by: gafai on May 07, 2012, 07:05:07 AM
internal links are without www.
but from outside is linked woth www.
Title: Re: editing group not saved FULL
Post by: emanuele on May 12, 2012, 03:03:02 PM
Anyway this is/was a bug.
For the time being I've put a warning if the selected groups exceed SMF's limits.
Title: Re: editing group not saved FULL
Post by: Arantor on December 31, 2013, 11:12:12 AM
There's no real way to fix this without overhauling SMF's entire structure, which is infeasible to do at this time - the warning mentioned above should suffice until we can pull it all apart and rebuild it properly in the future.