Not Solved Group sort
Not Solved

I'm using Group sort modification:
And I described my issue here:

I think I can reach my plans by using this modification.

What I mean?

I need to keep a usergroup (primary) as "registered", => this is group "2". Without changing in anytime.
And displayedgroup as "primary" (look strings in the modification). 

I need this to make UserCP's group management more functional. At the moment, if somebody have a primary group, then I (without ACP) and any other group leader can't remove the user from his primary group and downgrade him to "registered".

But the modification "Group sort" is sorting the groups by priority. So... after the downgrading, the user will change his display group to the color, name and rank of the lower group (but the lowest group will be "registered").

Unfortanely, scripting is a black magic for me. Sad

I hope it will be as core functionality in MyBB in the future.

I changed this:

	// update user data
	$usergroups=implode(',', $new_usergroups);
		'usergroup' => $primarygroup,
		'additionalgroups' => $usergroups,
		'displaygroup' => 0

	// update user data
	$usergroups=implode(',', $new_usergroups);
		'displaygroup' => $primarygroup,
		'additionalgroups' => $usergroups,
		'usergroup' => 2

Works and doesn't work...
Kicking the people from the groups, in every time, when I or somebody change group order (or edit the groups).

I think there I should change something more in groupsort.php
But I don't know the PHP, it's a magic for me.

Messages In This Thread
Group sort - by Hewret - 2016-12-19, 09:06 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)