Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-13336

New core events for user activation

    Details

    • Type: New Feature
    • Status: Unverified Fix
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.4-RC1
    • Component/s: Events
    • Labels:
      None

      Description

      This is an event suggestion, as discussed at:
      https://area51.phpbb.com/phpBB/viewtopic.php?f=111&t=44941

      Suggested event name: core.user_activate

      Similar to the user_add hook, but fired only when the user gets (re-)activated. This is handy when you want to be informed only when a real user is added.

        Activity

        Hide
        Tomba Tomba added a comment -

        In hindsight, I believe it would be best to have this sort of action triggered by an event named 'core.user_active_flip_after'

        This could be added in functions_user.php line 767

        $vars = array('user_id', 'sql_ary');
        extract($phpbb_dispatcher->trigger_event('core.user_active_flip_after', compact($vars)));

        Any event handler could then see via the sql_ary if the event was fired because of a user activation or deactivation.

        Show
        Tomba Tomba added a comment - In hindsight, I believe it would be best to have this sort of action triggered by an event named 'core.user_active_flip_after' This could be added in functions_user.php line 767 $vars = array('user_id', 'sql_ary'); extract($phpbb_dispatcher->trigger_event('core.user_active_flip_after', compact($vars))); Any event handler could then see via the sql_ary if the event was fired because of a user activation or deactivation.

          People

          • Assignee:
            nickvergessen Joas Schilling
            Reporter:
            Tomba Tomba
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development