Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
DELETE FROM `#__user_usergroup_map` WHERE `user_id` = [user_id] AND `group_id` = [gid];
INSERT IGNORE INTO `#__user_usergroup_map` ( `user_id`, `group_id` ) VALUES ( [user_id], GROUP_ID_HERE );
UPDATE `#__users` SET `usertype` = 'GROUP_TITLE_HERE' WHERE `id` = [user_id];
Please Log in to join the conversation.
Please Log in to join the conversation.