Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[1.10.0] - 2026-11-13
Added
- Add the
consentfriend_manageandconsentfriend_settingspermissions with the ConsentFriend and ConsentFriend Admin access policies. The ConsentFriend Admin access policy is assigned to the Administrator user group in the mgr context during the installation.
Changed
- Creating, updating, sorting, removing and importing services and purposes, assigning services to contexts and emptying/cleaning the statistics requires the
consentfriend_managepermission. The config import requires thesettingsor theconsentfriend_settingspermission in addition. - Hide the buttons, the context menus, the inline editing and the drag and drop sorting in the custom manager page from users without the
consentfriend_managepermission - Raise the minimum requirements to PHP 7.3 and MODX 2.8
- The service callbacks and the frontend configuration are not parsed by the MODX parser anymore. System/context setting tags like
[[++google_analytics_id]]are still replaced in the service callbacks. - Alter only the changed columns and indexes in the synctables resolver
- Use an already loaded Composer and remove the PHP time limit in the Composer resolver
Fixed
- Fix service callbacks containing tabs or backslashes, that broke the consent configuration
- Fix regular expression cookies containing escaped characters, that were not removed after declining a service
- Fix the cached consent modal texts and the privacy policy url, that were shared between contexts
- Fix the GeoIP2 database update during the manager access, that only ran when the cronjob was enabled
- Require a non-empty cronjob ID for the web based cronjob and don't require it on the command line
- Log the errors of the GeoIP2 database update and output the result of the cronjob
- Try to download a missing GeoIP2 database only once in an hour instead of on each request and use the country database, if multiple databases are configured
- Don't output the GeoIP2 account ID, the GeoIP2 license key and the cronjob ID in the manager javascript
- Don't export and import the GeoIP2 account ID, the GeoIP2 license key and the cronjob ID in the config export/import
- Import the config, the services and the purposes in a database transaction, so a failing import keeps the existing data
- Clear the ConsentFriend cache after an import
- Replace the deprecated strftime function
- Escape the entered names, titles and keys in the grids and combos of the custom manager page
- Show the custom title of a service in the statistics instead of the service name
- Retry a failed GeoIP2 database update during the manager access after an hour instead of after the refresh rate
- Prevent the srcset attributes of img and source tags and the video, audio and track tags in the code of a service from loading without consent. The forked Klaro script restores the srcset and poster attributes after the consent and reloads the video and audio elements with changed source elements.
- Repeat the colors of the statistics chart, if there are more than 21 entries
- Trim the comma separated purposes, contexts and countries in the service import
- Fix the check for an existing service name/purpose key, when a service/purpose is created without an id property
- Fix the required countries of a service, that were removed by editing the service in the grid
- Fix the required countries of a service, that were not saved when creating the service
- Don't output inactive purposes of a service in the consent configuration
- Clear the cache after a service, its purposes, contexts and countries are saved and after sorting the services/purposes
- Prevent the services in the code of a service with single quoted, unquoted or upper case src/href/type attributes from being loaded without consent
- Fix the Enter key in the rich text editor fields of the manager windows
- Don't add the namespace filter to the system settings grid of the custom manager page
- Fix the license check and the Composer resolver
- Fix lexicon issues
[1.9.0] - 2025-12-16
Added
- Add consentfriend-modal-open class to the html body, when a ConsentFriend modal window is opened
Changed
- Use an own fork Jako/klaro-js of klaro-js instead of klaro-org/klaro-js for the consent management script
Fixed
- Fix ARIA labelledby when a ConsentFriend modal does not contain a title
[1.8.3] - 2025-07-19
Changed
- Update composer dependencies
Fixed
- Restore the accidentally removed css variables prefixed with
consentfriend-in 1.8.2
[1.8.2] - 2025-03-13
Added
- Add consentfriend.head_script system setting to make the script code in the head tag configurable
Change
- Use werk21/klaro-js instead of klaro-org/klaro-js for the consent management script
[1.8.1] - 2025-01-28
Added
- Allow searching for the record id
- Check the namespaced settings permission for the listing of the system settings too
Fixed
- Fix retrieving the context list in the service edit window and in the context tab with newer MySQL databases
[1.8.0] - 2024-10-14
Added
- Add Jaybizzle/Crawler-Detect to filter crawlers from logging
Removed
- Remove consentfriend.user_agent_filter system setting
[1.7.5] - 2024-08-12
Fixed
- Fix ConsentFriend logging not collecting the active services (since ConsentFriend 1.7.0)
[1.7.4] - 2024-08-12
Fixed
- Fix consentfriend.log_usage system setting is permanently set to false (since ConsentFriend 1.7.0)
[1.7.3] - 2024-08-08
Fixed
- Fix a javascript order issue with Gulp 5
- Fix a group by issue in MySQL
[1.7.2] - 2024-05-08
Added
- Add consentfriend.mmdb_account_id system setting.
Security
- Switched dependency from tronovav/geoip2-update to danielsreichenbach/geoip2-update because of security reasons. See https://github.com/tronovav/geoip2-update/issues/12
[1.7.1] - 2024-04-04
Fixed
- Fix a module namespace issue in the Klaro javascript introduced in 1.7.0
[1.7.0] - 2024-03-30
Added
- Make consentfriend services required/not required on base of the country detected by GeoIP.
Fixed
- Don't remove purposes, contexts and countries when editing values in the service grid
[1.6.5] - 2024-02-22
Changed
- Extend googleAnalytics service data for consent mode v2
[1.6.4] - 2024-01-26
Added
- Don't log the usage when an invalid session key is detected
[1.6.3] - 2023-06-27
Fixed
- Clear the translations and services cache after editing a service too
[1.6.2] - 2023-06-18
Fixed
- Fix a warning in the regular expression detection
[1.6.1] - 2023-05-19
Fixed
- Fix undefined array key "required"
[1.6.0] - 2023-05-04
Added
- Statistics tab in the custom manager page
- Clean and empty buttons for the statistics in the statistics tab
Changed
- Use the order of services for the order logged services to avoid duplicate entries in the statistics
Fixed
- Fix the height of the statistics widget in MODX 3
[1.5.5] - 2023-03-31
Changed
- Enable an a service in all contexts, when the contexts input is empty
- Use Google Analytics 4 service code and cookie settings (only in new installations)
Removed
- Remove IE support in the consentfriend css
[1.5.4] - 2023-03-02
Fixed
- Fix importing YAML exports in PHP 8+
[1.5.3] - 2022-09-10
Fixed
- Fix a widget issue, when when the user is not an admin
- Fix some styling issues in the custom manager page
[1.5.2] - 2022-08-15
Fixed
- Fix date column renderer in Safari
- Fix html validator issue 'Element "script" must not have attribute "defer" unless attribute "src" is also specified'
[1.5.1] - 2022-07-04
Added
- Enable/disable ConsentFriend for templates by system settings
[1.5.0] - 2022-06-23
Added
- Context based service configuration
- New system setting consentfriend.use_contexts
- New contexts tab for assigning services to contexts
- Clear the ConsentFriend cache, when the MODX cache is cleared
- Inline editing of some columns in the service and purpose grid
Changed
- Don't allow invalid MODX lexicon strings to break the Klaro lexicon
[1.4.6] - 2022-04-25
Added
- Status message with a successful download
- Add missing data-type="text/css" automatically in a service
Fixed
- Fix a PHP warning in the user agent check
[1.4.5] - 2022-03-16
Changed
- Update lexicon
[1.4.4] - 2022-02-28
Added
- Install the Composer dependencies directly on the server
Fixed
- Fix loading the wrong javascript when a css_url is implicitly set
[1.4.3] - 2022-02-25
Fixed
- Fix a wrong DB query during logging
- Show the logs of the current day in the widget
[1.4.2] - 2022-02-24
Changed
- User agent filter for the logging
[1.4.1] - 2022-02-16
Changed
- Update the visitor consent state during logging (if needed).
Added
- Link to the ConsentFriend manager page on the dashboard widget
[1.4.0] - 2022-02-12
Added
- Add Czech, Portuguese and Chinese lexicon
- Additional 'consentfriend-' prefix for css variables
- Set a depending plugin priority for the OnHandleRequest event
- Log session-based status of accepted and denied services from visitors with an anonymized IP address for later analysis
- Dashbord widget to see the logged data of ConsentFriend usage
[1.3.5] - 2021-11-12
Fixed
- MODX 3 beta compatibility
[1.3.4] - 2021-09-10
Fixed
- Fix a wrong isArray check
- Fix a too greedy regular expression for selecting the starting head tag
[1.3.3] - 2021-06-10
Fixed
- Fix registering the the script tag in the head section with attributes in the head tag
- Fix a loadDropZones script issue in the modal window in the MODX backend
[1.3.2] - 2021-04-29
Fixed
- Fix default themes because of renamed scss variables in Klaro
[1.3.1] - 2021-04-25
Fixed
- Fix a install resolver issue
[1.3.0] - 2021-04-23
Added
- Import configuration during package setup from file located in
{core_path}/config/consentfriend/ - Add Facebook Pixel service to the demo services
- Add Google Tag Manager service to the demo services
Changed
- Import/Export format changed to YAML (old XML exports can still be imported)
- Import/Export the full consentfriend configuration to one file
- Update Klaro! to 0.7.18
- Changing the themes to use the new Klaro vars.scss. If you have created your own theme, please check the display of the consent popup after the update and after compiling the scss file for your site.
Fixed
- Fix a syntax error in the frontend when the description of a service contains a line feed
[1.2.2] - 2021-01-02
Added
- Allow to install 'essential only' demo data (will install only the session and the consentfriend service)
Changed
- Don't run the license check on the manager login page
- Remove the column menu for the cookies grid
Fixed
- Fix a missing data-type attribute in a script tag
[1.2.1] - 2020-12-04
Fixed
- Fix a not displayed value change in the cookies grid
[1.2.0] - 2020-12-02
Added
- Callback code for services
- Enable ACE Editor in ConsentFriend
- Allow the demo data be skipped/installed/updated/replaced on install/update
no_autoLoadsystem setting, that will keep ConsentFriend from automatically loading itself when the page is being loaded.
Changed
- Update Klaro! to 0.7.9
- Change the database default values to the used default values
Fixed
- Fix a not updated/saved value in the cookies grid
Removed
- Removed
advertisementservice key and translation (changed toadvertisingduring an package update)
[1.1.3] - 2020-11-17
Added
- Updated/Added strings in the lexicon
Fixed
- Fix a missing custom name in the purpose dropdown in the service edit window
[1.1.2] - 2020-11-11
Added
- Updated/Added strings in the lexicon
[1.1.1] - 2020-11-04
Added
- Allow context/system settings tags in the service code
Fixed
- Fix scss files in installed assets
[1.1.0] - 2020-11-04
Added
- Import/Export of services and purposes
[1.0.1] - 2020-10-25
Changed
- Update Klaro! to 0.6.18
[1.0.0] - 2020-10-15
Added
- Public release
[0.9.0] - 2020-10-02
Added
- Initial beta release