MyBB Community Forums

Full Version: How to receive notification if someone change his/her group
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, this topic is regarding the paid usergroups. 
If someone purchase membership and change his group from member to Vip member,
It is possible somehow the admin to receive notification for that action?

P.s. doesn't matter if is email notification, or admin panel notification, or phone notification, or whatever
I want just to be informed somehow if someone change his usergroup. 


I will be thankful for any ideas and answers.
Which plugin are you using for paid usergroups?
Rex shop
I didn't take much of a look, but I'm guessing if you after line 381 add this:

rexshop_send_pm("Successful Purchase", $userId." Just purchased {$request['order']['products'][0]['name']}.", 0);

so that line 381 and 382 looks like this:

rexshop_change_usergroup($userId, $usergroup);
rexshop_send_pm("Successful Purchase", $userId." Just purchased {$request['order']['products'][0]['name']}.", 0);

The user with a user id (uid) 0 will receive this pm when a purchase has been successfully handled. If your uid is not 0, but you still want to be the one receiving those private messages, simply edit the 0 with your user id.

Lmk if it works or not.
I will test it thanks