IngerK, I tested the group functions (create, delete and update) linked above and they all work except update. To make it work use the mod change below. This will be in the next release that I'll try to have ready around the gold release. I'm looking into your admin group issue next! Thanks for the testing and pointing out problems!
In includes/functions_user.php - remove this mod:Code: › #
#-----[ FIND ]------------------------------------------
#
$sql = 'INSERT INTO ' . GROUPS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
$db->sql_query($sql);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
if ($group_id) {
// Update group in Gallery
require($phpbb_root_path . 'g2helper.inc');
$g2h = new g2helper($db);
$g2h->updateGroup($group_id, $sql_ary['group_name']);
}
elseif (!$group_id) {
// Create group in Gallery
require($phpbb_root_path . 'g2helper.inc');
$g2h = new g2helper($db);
$g2h->createGroup($sql_ary['group_name']);
}
And replace it with this mod:Code: › #
#-----[ FIND ]------------------------------------------
#
if (isset($sql_ary['group_rank']) && !$sql_ary['group_rank'])
{
remove_default_rank($group_id, $user_ary);
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Update group in Gallery
require($phpbb_root_path . 'g2helper.inc');
$g2h = new g2helper($db);
$g2h->updateGroup($group_id, $sql_ary['group_name']);
#
#-----[ FIND ]------------------------------------------
#
$sql = 'INSERT INTO ' . GROUPS_TABLE . ' ' . $db->sql_build_array('INSERT', $sql_ary);
$db->sql_query($sql);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// Create group in Gallery
require($phpbb_root_path . 'g2helper.inc');
$g2h = new g2helper($db);
$g2h->createGroup($sql_ary['group_name']);