A
account8226
Guest
Hello, I am using Paypal's IPN.
I would like that when a user donate correctly, it move him to my donator usergroup.
Actually I am using this :
My donator usergroup is 9, my member usergroup is 2. I still need to add my member to the 2 usergroup for permissions reasons.
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.
I would like that when a user donate correctly, it move him to my donator usergroup.
Actually I am using this :
PHP:
UPDATE `xf_user`
SET `user_group_id` = '9', `secondary_group_ids` = '2'
WHERE `xf_user`.`user_id` ='".$id_user."';
My donator usergroup is 9, my member usergroup is 2. I still need to add my member to the 2 usergroup for permissions reasons.
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.