diff --git a/CHANGELOG.md b/CHANGELOG.md index 1563a69..32dd22a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +### 2.1.1 - 2026-11-07 + +- Added vertical rendering for YouTube Shorts while retaining landscape rendering for regular YouTube videos. +- Added an ACP setting to show or hide the embedded media disclosure in the Privacy Policy. +- Fixed a bug introduced in 2.1.0 where disabling plain URL parsing would cause obsolete or nonfunctional media sites to appear in the ACP. +- Fixed a bug where MediaEmbed could un-intentionally alter a custom YouTube BBCode template definition. +- Fixed a compatibility issue with the Consent manager extension that could disable the custom and full width content sizing options. +- Setting a custom or full width content size will no longer stretch or distort YouTube Shorts. +- The MEDIA BBCode will now only be visible to users with permission to use it. +- The MediaEmbed section in the FAQ will no longer render the example YouTube video if YouTube videos are not allowed. + ### 2.1.0 - 2026-09-06 - Updated phpBB 3's MediaEmbed site definitions from s9e/TextFormatter 2.11.5 to 2.19.3. diff --git a/adm/style/acp_phpbb_mediaembed_manage.html b/adm/style/acp_phpbb_mediaembed_manage.html index a046fa1..ed4bf5e 100644 --- a/adm/style/acp_phpbb_mediaembed_manage.html +++ b/adm/style/acp_phpbb_mediaembed_manage.html @@ -20,7 +20,7 @@

{{ lang('WARNING') }}

- +

{{ lang('MARK_ALL') }} • {{ lang('UNMARK_ALL') }}

diff --git a/adm/style/acp_phpbb_mediaembed_settings.html b/adm/style/acp_phpbb_mediaembed_settings.html index d069c8b..f208388 100644 --- a/adm/style/acp_phpbb_mediaembed_settings.html +++ b/adm/style/acp_phpbb_mediaembed_settings.html @@ -35,7 +35,7 @@

{{ lang('ACP_MEDIA_SETTINGS') }}


{{ lang('ACP_MEDIA_PURGE_CACHE_EXPLAIN') }}
-
+
diff --git a/adm/style/event/acp_posting_buttons_custom_tags_before.html b/adm/style/event/acp_posting_buttons_custom_tags_before.html index f44d8e8..bc0db42 100644 --- a/adm/style/event/acp_posting_buttons_custom_tags_before.html +++ b/adm/style/event/acp_posting_buttons_custom_tags_before.html @@ -1,3 +1,3 @@ {% if S_BBCODE_MEDIA %} - + {% endif %} diff --git a/collection/sites/yamusic.yml b/collection/sites/yamusic.yml index aab5886..afee33e 100644 --- a/collection/sites/yamusic.yml +++ b/collection/sites/yamusic.yml @@ -1,24 +1,24 @@ -name: "Yandex Music" -host: music.yandex.ru -example: https://music.yandex.ru/album/5307396/track/38633706 -extract: "!music\\.yandex\\.ru(\\/album\\/(?'aid'\\d+)(\\/track\\/(?'tid'\\d+))?|\\/users\\/(?'uid'\\w+)\\/playlists\\/(?'pid'\\d+))!" -choose: - when: - test: "@uid" - iframe: - height: "450" - width: "100%" - src: //music.yandex.ru/iframe/#playlist/{@uid}/{@pid} - otherwise: - choose: - when: - test: "@tid" - iframe: - height: "100" - width: "100%" - src: //music.yandex.ru/iframe/#track/{@tid}/{@aid} - otherwise: - iframe: - height: "450" - width: "100%" - src: //music.yandex.ru/iframe/#album/{@aid} \ No newline at end of file +name: "Yandex Music" +host: music.yandex.ru +example: https://music.yandex.ru/album/5307396/track/38633706 +extract: "!music\\.yandex\\.ru(\\/album\\/(?'aid'\\d+)(\\/track\\/(?'tid'\\d+))?|\\/users\\/(?'uid'\\w+)\\/playlists\\/(?'pid'\\d+))!" +choose: + when: + test: "@uid" + iframe: + height: "450" + width: "100%" + src: //music.yandex.ru/iframe/#playlist/{@uid}/{@pid} + otherwise: + choose: + when: + test: "@tid" + iframe: + height: "100" + width: "100%" + src: //music.yandex.ru/iframe/#track/{@tid}/{@aid} + otherwise: + iframe: + height: "450" + width: "100%" + src: //music.yandex.ru/iframe/#album/{@aid} diff --git a/composer.json b/composer.json index 15d7111..a0411fb 100644 --- a/composer.json +++ b/composer.json @@ -3,19 +3,19 @@ "type": "phpbb-extension", "description": "An official phpBB extension that allows users to embed content from allowed sites using a [media] BBCode, or from simply posting a supported URL in plain text.", "homepage": "https://www.phpbb.com/customise/db/extension/mediaembed/", - "version": "2.1.0", + "version": "2.1.1", "license": "GPL-2.0-only", "authors": [ { "name": "Marc Alexander", "email": "admin@m-a-styles.de", - "homepage": "http://www.m-a-styles.de", + "homepage": "https://www.m-a-styles.de", "role": "Extensions Team Consultant" }, { "name": "Michael Cullum", "email": "michael@phpbb.com", - "homepage": "http://michaelcullum.com", + "homepage": "https://michaelcullum.com", "role": "Extensions Team Consultant" }, { @@ -25,7 +25,7 @@ }, { "name": "Ruslan Uzdenov", - "homepage": "http://www.phpbbguru.net", + "homepage": "https://www.phpbbguru.net", "role": "Extensions Development Team" } ], diff --git a/styles/all/template/event/posting_editor_buttons_custom_tags_before.html b/styles/all/template/event/posting_editor_buttons_custom_tags_before.html index 7f6dfd9..00b1244 100644 --- a/styles/all/template/event/posting_editor_buttons_custom_tags_before.html +++ b/styles/all/template/event/posting_editor_buttons_custom_tags_before.html @@ -1,5 +1,5 @@ {% if S_BBCODE_MEDIA %} -