I would like that when a user donate correctly, it move him to my donator usergroup.
Actually I am using this :
UPDATE `xf_user` SET `user_group_id` = '9', `secondary_group_ids` = '2' WHERE `xf_user`.`user_id` ='".$id_user."';
When I'm doing this query, it move the user to this group, BUT without any permission.
Could anyone help me to fix this problem ? Or maybe you have a pre-made addon that is doing this ?
Thanks you very much.