[RSS Feed/News] What is the best way to detect when a user gets or loses a group

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I am currently trying to accomplish this by extending the UserGroupChange service, but either manually adding a user to the group via the edit user page does not trigger this or I am extending the wrong thing.
Spoiler: Class Extension
1636667082839.png

Spoiler: My code for the extended clas
PHP:

Code:
<?php

namespace Retro\Sourcebans\Service\User;

class UserGroupChange extends XFCP_UserGroupChange
{
    public function addUserGroupChange($userId, $key, $addGroups)
    {
        $this->app->logException(new \Exception(\XF::dumpSimple([$userId.$key...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom