Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-15819

Add core event to functions_posting to modify notifications

    XMLWordPrintable

Details

    • Improvement
    • Status: Unverified Fix (View Workflow)
    • Minor
    • Resolution: Fixed
    • 3.2.3
    • 3.2.4-RC1
    • Events
    • PHP 7.1.7, MySQL 5.6.34, Firefox 62.0.2

    Description

      Allows modification of notification data before it is processed into the database.  Useful for if you want to change any variables in the notification message, such as usernames.  Includes some other residual data to allow this event to be versatile.

       

      I have an extension where I need to change peoples' usernames if they want to remain anonymous when posting.  Notifications are tricky, as of now I can update the "Quoted by ....." messages, but without access to the actual variables.  I opted to instead update the post_username of the notification in the notifications table, and this worked just as well.  These results are reflected in the manage notifications page in the ucp, too.

      Attachments

        Activity

          People

            Marc Marc
            Toxyy Toxyy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: