[Pushed] Change group issue
#1
Hello,

There is a issue, when somebody (who have a group's leader managment permission) is trying to remove somebody from the group, it doesn't works. Works, when the person have "registered" as main group (and our group as dispayed for example). It's annoying and very uncomfortable to manage the users on the board.

I think they should be downgraded to "registered" group from (for example) "premium user" after, when they left the group.

It's possible to repair the issue?

Edit: If somebody have a other group than "premium user" as default, and he is in the group, there's no problem with removing him.

I just found here dragonexpert's opinion, that the UserCP group managment is not intend to change primary group:
https://community.mybb.com/thread-154254...pid1077029

I really need the function on my own, where the leader group can remove somebody, who have the group as primary (and it should moving the user to "registered" as default).

I'm trying to improve it by Group sort modification:
https://community.mybb.com/thread-206755...pid1256607
Reply
#2
Have you tampered with any Group Leader settings lately? Mind giving me temporary access to your ACP to find out what the problem is? You can decline my request, but I'm only here to help.
Reply
#3
Nope.

The group leaders are set properly.

It's issue of MyBB, because without plugin it's not able to remove any member from primary group (and degrade him).
Only way is edit the managegroup.php or use Group Sort plugin to force usergroup as "registered" (only displayed group will be changed).
Reply
#4
bump.
Reply
#5
Yes, this is a continuing issue. I use a plugin to fix it.
Reply
#6
Thank you for your answer.

Could you share an information about your plugin?
Reply
#7
	// update user data
	$primarygroup=2;
	$usergroups=implode(',', $new_usergroups);
	$displaygroup=array_shift($new_usergroups);
	$new_record=array(
		'usergroup' => $primarygroup,
		'additionalgroups' => $usergroups,
		'displaygroup' => $displaygroup
	);
	$db->update_query(
		'users',
		$new_record,
		'uid='.intval($uid)
	);

It will be ok?

Yeah! This above is working fine!

Thanks to me, I'm the best.
Reply
#8
Banned and not registered have "registered" group too.
How to improve the plugin and make my fix work?
Reply
#9
I can confirm this issue, somebody missed that Sad
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#10
Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/3433

Thanks for contributing to MyBB!

Regards,
The MyBB Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)