<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.moodle.org/500/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pascalschmascal</id>
	<title>MoodleDocs - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.moodle.org/500/en/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Pascalschmascal"/>
	<link rel="alternate" type="text/html" href="https://docs.moodle.org/500/en/Special:Contributions/Pascalschmascal"/>
	<updated>2026-04-11T17:10:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://docs.moodle.org/500/en/index.php?title=ICON_filter_activatecontent&amp;diff=144195</id>
		<title>ICON filter activatecontent</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/500/en/index.php?title=ICON_filter_activatecontent&amp;diff=144195"/>
		<updated>2022-09-14T10:17:30Z</updated>

		<summary type="html">&lt;p&gt;Pascalschmascal: Created page with &amp;quot;== Activate content filter by ICON ==  The activate content filter by ICON lets you easily embed content from other platforms (often provided by a &amp;quot;Share -&amp;gt; embed&amp;quot; feature on...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Activate content filter by ICON ==&lt;br /&gt;
&lt;br /&gt;
The activate content filter by ICON lets you easily embed content from other platforms (often provided by a &amp;quot;Share -&amp;gt; embed&amp;quot; feature on social media) in any content in a GDPR-compliant way.&lt;br /&gt;
What we mean by GDPR-compliant is that the content won&#039;t be inserted until users have given their consent by activating it with a click.&lt;br /&gt;
&lt;br /&gt;
To embed content, copy the embed code from the other platform and paste it into the Moodle platform, preceded by {iconactivate} and followed by {/iconactivate}.&lt;br /&gt;
For example, if you&#039;re on https://www.youtube.com/watch?v=dQw4w9WgXcQ, you click on &amp;quot;Share&amp;quot; beneath the video, then on &amp;quot;Embed&amp;quot; and copy the code.&lt;br /&gt;
Then on Moodle, inside a text editor for example (make sure you&#039;re in HTML view if it&#039;s a rich text editor like TinyMCE or Atto), you paste it and add the snippets mentioned above like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{iconactivate}&lt;br /&gt;
&amp;lt;iframe width=&amp;quot;560&amp;quot; height=&amp;quot;315&amp;quot; src=&amp;quot;https://www.youtube.com/embed/dQw4w9WgXcQ&amp;quot; title=&amp;quot;YouTube video player&amp;quot; frameborder=&amp;quot;0&amp;quot; allow=&amp;quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&amp;quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;
{/iconactivate}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can also add a custom headline, by writing &#039;&#039;&amp;quot;|headline:Your headline here&amp;quot;&#039;&#039; before the closing {/iconactivate}, so the complete code could look like this:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{iconactivate}&lt;br /&gt;
&amp;lt;iframe width=&amp;quot;560&amp;quot; height=&amp;quot;315&amp;quot; src=&amp;quot;https://www.youtube.com/embed/dQw4w9WgXcQ&amp;quot; title=&amp;quot;YouTube video player&amp;quot; frameborder=&amp;quot;0&amp;quot; allow=&amp;quot;accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture&amp;quot; allowfullscreen&amp;gt;&amp;lt;/iframe&amp;gt;&lt;br /&gt;
|headline: This never gets old&lt;br /&gt;
{/iconactivate}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you leave this last part out, the default header will say &amp;quot;Recommended external content&amp;quot; (you can modify this default text through language customization of course).&lt;br /&gt;
The language id is &amp;quot;headline&amp;quot; for component &amp;quot;filter_iconactivatecontent&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
=== Installing via uploaded ZIP file ===&lt;br /&gt;
&lt;br /&gt;
1. Log in to your Moodle site as an admin and go to _Site administration &amp;gt;&lt;br /&gt;
   Plugins &amp;gt; Install plugins_.&lt;br /&gt;
2. Upload the ZIP file with the plugin code. You should only be prompted to add&lt;br /&gt;
   extra details if your plugin type is not automatically detected.&lt;br /&gt;
3. Check the plugin validation report and finish the installation.&lt;br /&gt;
&lt;br /&gt;
=== Installing manually ===&lt;br /&gt;
&lt;br /&gt;
The plugin can be also installed by putting the contents of this directory to&lt;br /&gt;
&lt;br /&gt;
    {your/moodle/dirroot}/filter/iconactivatecontent&lt;br /&gt;
&lt;br /&gt;
Afterwards, log in to your Moodle site as an admin and go to _Site administration &amp;gt;&lt;br /&gt;
Notifications_ to complete the installation.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can run&lt;br /&gt;
&lt;br /&gt;
    $ php admin/cli/upgrade.php&lt;br /&gt;
&lt;br /&gt;
to complete the installation from the command line.&lt;br /&gt;
&lt;br /&gt;
=== License ===&lt;br /&gt;
&lt;br /&gt;
2022 ICON Vernetzte Kommunikation GmbH &amp;lt;info@iconnewmedia.de&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This program is free software: you can redistribute it and/or modify it under&lt;br /&gt;
the terms of the GNU General Public License as published by the Free Software&lt;br /&gt;
Foundation, either version 3 of the License, or (at your option) any later&lt;br /&gt;
version.&lt;br /&gt;
&lt;br /&gt;
This program is distributed in the hope that it will be useful, but WITHOUT ANY&lt;br /&gt;
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A&lt;br /&gt;
PARTICULAR PURPOSE.  See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
You should have received a copy of the GNU General Public License along with&lt;br /&gt;
this program.  If not, see &amp;lt;https://www.gnu.org/licenses/&amp;gt;.&lt;/div&gt;</summary>
		<author><name>Pascalschmascal</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/500/en/index.php?title=ICON_activatecontent&amp;diff=144196</id>
		<title>ICON activatecontent</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/500/en/index.php?title=ICON_activatecontent&amp;diff=144196"/>
		<updated>2022-09-14T09:58:29Z</updated>

		<summary type="html">&lt;p&gt;Pascalschmascal: added a section for the plugin settings&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = activity&lt;br /&gt;
|entry = Coming soon&lt;br /&gt;
|tracker = https://github.com/iconnewmedia-de/moodle-filter_iconactivatecontent/issues&lt;br /&gt;
|discussion = Coming soon&lt;br /&gt;
|maintainer = [[User:Pascal Collins]]&lt;br /&gt;
}}&lt;br /&gt;
== What is it? ==&lt;br /&gt;
This plugin is for when you want to include GDPR-compliant embeddings of content from external platforms such as YouTube, Facebook, Twitter, Instagram, Google Maps.&lt;br /&gt;
&lt;br /&gt;
The issue with simply embedding the iframe code that social media platforms generate for you with their share-feature, is that those platforms might instantly set a cookie or receive the viewer&#039;s ip address upon opening your page.&lt;br /&gt;
&lt;br /&gt;
The solution is to not include the iframe until the viewer has activated the content by pressing a button and thereby given their consent.&lt;br /&gt;
[[File:mod iconactivatecontent-before-activation.png|thumb|Before activation]]&lt;br /&gt;
[[File:screenshot-iconactivatecontent activated.png|thumb|After activation]]&lt;br /&gt;
==Using this plugin==&lt;br /&gt;
You add it to a course just like any other activity, by first enabling edit mode, then adding an activity.&lt;br /&gt;
&lt;br /&gt;
This is the form that you&#039;ll be presented:&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:screenshot-iconactivatecontent form.png|thumb|The form for adding/updating an instance of this activity]]&lt;br /&gt;
===External content===&lt;br /&gt;
Here is where you paste the HTML that the external platform will have given you for embedding on other pages.&lt;br /&gt;
====Embedding a YouTube video====&lt;br /&gt;
When you watch a video on YouTube, you&#039;ll see a &amp;quot;Share&amp;quot; link to the bottom right of the video. When you click it, you get a selection of possible share-options. The first option in the list is &amp;quot;Embed&amp;quot;. Clicking it will give you the HTML for the iframe to embed. Copy this HTML snippet and paste it into the &amp;quot;External content&amp;quot; field of this plugin.&lt;br /&gt;
====Embedding a Tweet, Facebook post or Instagram post====&lt;br /&gt;
All three platforms are very similar: To the top right of the tweet you&#039;ll find three dots. Click on them to get a menu with further options. Further down you have &amp;quot;Embed Tweet&amp;quot;. It opens a new tab with the HTML code to embed. Click on the &amp;quot;Copy Code&amp;quot; button next to it, then copy this into the &amp;quot;External content&amp;quot; field of this plugin. Note: From Facebook you can only embed your public posts!&lt;br /&gt;
====Embedding Google Maps====&lt;br /&gt;
When you&#039;ve entered a location in Google maps, you get multiple buttons, the first one being &amp;quot;Directions&amp;quot;, the last one &amp;quot;Share&amp;quot;. Click the share button. A new layer pops up. It has two tabs. The first one is &amp;quot;Send a link&amp;quot;. We don&#039;t want that one. Choose the second tab &amp;quot;Embed a map&amp;quot; instead. Then click on &amp;quot;Copy HTML&amp;quot;&lt;br /&gt;
===Headline, Text, Footer===&lt;br /&gt;
Those are the texts that will get displayed until the user has activated the external content. The default texts are just a suggestion. If you&#039;re using one of the platforms mentioned above, the &amp;quot;Platform&amp;quot; placeholder will automatically get replaced by the name of the platform as soon as the text editor for external content loses focus. The plugin will also automatically select the corresponding icon to display next to the teaser text.&lt;br /&gt;
===Icon===&lt;br /&gt;
The icon will be displayed to the right side of the text (see above &amp;quot;Headline, Text, Footer&amp;quot;). Five common icons are already available from the drop down: Twitter, YouTube, Facebook, Instagram and Google Maps. You also have the possibility to upload an icon of your choice or to not display any icon at all. Using icons is highly recommended as it allows users to quickly recognize the platforms that this will lead to.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
The plugin only has one setting: Maximum width. As the name suggests, it allows you to define the maximum width that you want it to take on the page. If you just type a number, or a number followed by &amp;quot;px&amp;quot;, like 900, or 900px, the width is defined in Pixels. Alternatively you can add &amp;quot;%&amp;quot;, like &amp;quot;90%&amp;quot;. The percentage is relative to its surrounding block, the content column of the course. &lt;br /&gt;
&lt;br /&gt;
You can of course also define widths from within your theme&#039;s CSS. This will give you the ability to define different widths for different screen sizes, for example. To do so, define width, min-width and/or max-width for the selector &amp;quot;.iconactivatecontent .externalcontent&amp;quot;. You might have to use &amp;quot;!important&amp;quot; to override the activity&#039;s default max-width. width and min-width don&#039;t have a default.&lt;br /&gt;
&lt;br /&gt;
==Installing via uploaded ZIP file==&lt;br /&gt;
Log in to your Moodle site as an admin and go to Site administration &amp;gt; Plugins &amp;gt; Install plugins.&lt;br /&gt;
Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.&lt;br /&gt;
Check the plugin validation report and finish the installation.&lt;br /&gt;
Installing manually&lt;br /&gt;
The plugin can be also installed by putting the contents of this directory to&lt;br /&gt;
&lt;br /&gt;
{your/moodle/dirroot}/mod/iconactivatecontent&lt;br /&gt;
Afterwards, log in to your Moodle site as an admin and go to Site administration &amp;gt; Notifications to complete the installation.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can run&lt;br /&gt;
&lt;br /&gt;
$ php admin/cli/upgrade.php&lt;br /&gt;
to complete the installation from the command line.&lt;br /&gt;
&lt;br /&gt;
(Btw. &amp;quot;ICON&amp;quot; in the name of this plugin refers to the name of the company that created this, ICON Vernetzte Kommunikation GmbH. It has nothing to do with icons being an important feature of this plugin. We hope this doesn&#039;t cause any confusion.)&lt;br /&gt;
==License==&lt;br /&gt;
2022 ICON Vernetzte Kommunikation GmbH &amp;lt;pascal.collins@iconnewmedia.de&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.&lt;br /&gt;
&lt;br /&gt;
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.&lt;/div&gt;</summary>
		<author><name>Pascalschmascal</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/500/en/index.php?title=ICON_activatecontent&amp;diff=144191</id>
		<title>ICON activatecontent</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/500/en/index.php?title=ICON_activatecontent&amp;diff=144191"/>
		<updated>2022-09-14T09:18:29Z</updated>

		<summary type="html">&lt;p&gt;Pascalschmascal: Created page with &amp;quot;{{Infobox plugin |type = activity |entry = Coming soon |tracker = https://github.com/iconnewmedia-de/moodle-filter_iconactivatecontent/issues |discussion = Coming soon |mainta...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Infobox plugin&lt;br /&gt;
|type = activity&lt;br /&gt;
|entry = Coming soon&lt;br /&gt;
|tracker = https://github.com/iconnewmedia-de/moodle-filter_iconactivatecontent/issues&lt;br /&gt;
|discussion = Coming soon&lt;br /&gt;
|maintainer = [[User:Pascal Collins]]&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== What is it? ==&lt;br /&gt;
This plugin is for when you want to include GDPR-compliant embeddings of content from external platforms such as YouTube, Facebook, Twitter, Instagram, Google Maps.&lt;br /&gt;
&lt;br /&gt;
The issue with simply embedding the iframe code that social media platforms generate for you with their share-feature, is that those platforms might instantly set a cookie or receive the viewer&#039;s ip address upon opening your page.&lt;br /&gt;
&lt;br /&gt;
The solution is to not include the iframe until the viewer has activated the content by pressing a button and thereby given their consent.&lt;br /&gt;
&lt;br /&gt;
[[File:mod iconactivatecontent-before-activation.png|thumb|Before activation]]&lt;br /&gt;
&lt;br /&gt;
[[File:mod iconactivatecontent-after-activation.png|thumb|Afteractivation]]&lt;br /&gt;
&lt;br /&gt;
== Using this plugin ==&lt;br /&gt;
You add it to a course just like any other activity, by first enabling edit mode, then adding an activity.&lt;br /&gt;
&lt;br /&gt;
This is the form that you&#039;ll be presented:&amp;lt;br&amp;gt;&lt;br /&gt;
[[File:screenshot-iconactivatecontent form.png|thumb|The form for adding/updating an instance of this activity]]&lt;br /&gt;
&lt;br /&gt;
=== External content ===&lt;br /&gt;
Here is where you paste the HTML that the external platform will have given you for embedding on other pages.&lt;br /&gt;
&lt;br /&gt;
==== Embedding a YouTube video ====&lt;br /&gt;
When you watch a video on YouTube, you&#039;ll see a &amp;quot;Share&amp;quot; link to the bottom right of the video. When you click it, you get a selection of possible share-options. The first option in the list is &amp;quot;Embed&amp;quot;. Clicking it will give you the HTML for the iframe to embed. Copy this HTML snippet and paste it into the &amp;quot;External content&amp;quot; field of this plugin.&lt;br /&gt;
&lt;br /&gt;
==== Embedding a Tweet, Facebook post or Instagram post ====&lt;br /&gt;
All three platforms are very similar: To the top right of the tweet you&#039;ll find three dots. Click on them to get a menu with further options. Further down you have &amp;quot;Embed Tweet&amp;quot;. It opens a new tab with the HTML code to embed. Click on the &amp;quot;Copy Code&amp;quot; button next to it, then copy this into the &amp;quot;External content&amp;quot; field of this plugin. Note: From Facebook you can only embed your public posts!&lt;br /&gt;
&lt;br /&gt;
==== Embedding Google Maps ====&lt;br /&gt;
When you&#039;ve entered a location in Google maps, you get multiple buttons, the first one being &amp;quot;Directions&amp;quot;, the last one &amp;quot;Share&amp;quot;. Click the share button. A new layer pops up. It has two tabs. The first one is &amp;quot;Send a link&amp;quot;. We don&#039;t want that one. Choose the second tab &amp;quot;Embed a map&amp;quot; instead. Then click on &amp;quot;Copy HTML&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Headline, Text, Footer ===&lt;br /&gt;
Those are the texts that will get displayed until the user has activated the external content. The default texts are just a suggestion. If you&#039;re using one of the platforms mentioned above, the &amp;quot;Platform&amp;quot; placeholder will automatically get replaced by the name of the platform as soon as the text editor for external content loses focus. The plugin will also automatically select the corresponding icon to display next to the teaser text.&lt;br /&gt;
&lt;br /&gt;
=== Icon ===&lt;br /&gt;
The icon will be displayed to the right side of the text (see above &amp;quot;Headline, Text, Footer&amp;quot;). Five common icons are already available from the drop down: Twitter, YouTube, Facebook, Instagram and Google Maps. You also have the possibility to upload an icon of your choice or to not display any icon at all. Using icons is highly recommended as it allows users to quickly recognize the platforms that this will lead to.&lt;br /&gt;
&lt;br /&gt;
== Installing via uploaded ZIP file ==&lt;br /&gt;
Log in to your Moodle site as an admin and go to Site administration &amp;gt; Plugins &amp;gt; Install plugins.&lt;br /&gt;
Upload the ZIP file with the plugin code. You should only be prompted to add extra details if your plugin type is not automatically detected.&lt;br /&gt;
Check the plugin validation report and finish the installation.&lt;br /&gt;
Installing manually&lt;br /&gt;
The plugin can be also installed by putting the contents of this directory to&lt;br /&gt;
&lt;br /&gt;
{your/moodle/dirroot}/mod/iconactivatecontent&lt;br /&gt;
Afterwards, log in to your Moodle site as an admin and go to Site administration &amp;gt; Notifications to complete the installation.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can run&lt;br /&gt;
&lt;br /&gt;
$ php admin/cli/upgrade.php&lt;br /&gt;
to complete the installation from the command line.&lt;br /&gt;
&lt;br /&gt;
(Btw. &amp;quot;ICON&amp;quot; in the name of this plugin refers to the name of the company that created this, ICON Vernetzte Kommunikation GmbH. It has nothing to do with icons being an important feature of this plugin. We hope this doesn&#039;t cause any confusion.)&lt;br /&gt;
&lt;br /&gt;
== License ==&lt;br /&gt;
2022 ICON Vernetzte Kommunikation GmbH &amp;lt;pascal.collins@iconnewmedia.de&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.&lt;br /&gt;
&lt;br /&gt;
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.&lt;br /&gt;
&lt;br /&gt;
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.&lt;/div&gt;</summary>
		<author><name>Pascalschmascal</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/500/en/index.php?title=File:screenshot-iconactivatecontent_form.png&amp;diff=144190</id>
		<title>File:screenshot-iconactivatecontent form.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/500/en/index.php?title=File:screenshot-iconactivatecontent_form.png&amp;diff=144190"/>
		<updated>2022-09-14T09:12:12Z</updated>

		<summary type="html">&lt;p&gt;Pascalschmascal: The settings for inserting/updating an instance of the activity mod_iconactivatecontent&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
The settings for inserting/updating an instance of the activity mod_iconactivatecontent&lt;/div&gt;</summary>
		<author><name>Pascalschmascal</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/500/en/index.php?title=File:screenshot-iconactivatecontent_activated.png&amp;diff=144194</id>
		<title>File:screenshot-iconactivatecontent activated.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/500/en/index.php?title=File:screenshot-iconactivatecontent_activated.png&amp;diff=144194"/>
		<updated>2022-09-14T09:09:31Z</updated>

		<summary type="html">&lt;p&gt;Pascalschmascal: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This screenshot shows the activity iconactivatecontent after a user has activated it by clicking/tapping&lt;/div&gt;</summary>
		<author><name>Pascalschmascal</name></author>
	</entry>
	<entry>
		<id>https://docs.moodle.org/500/en/index.php?title=File:mod_iconactivatecontent-before-activation.png&amp;diff=144193</id>
		<title>File:mod iconactivatecontent-before-activation.png</title>
		<link rel="alternate" type="text/html" href="https://docs.moodle.org/500/en/index.php?title=File:mod_iconactivatecontent-before-activation.png&amp;diff=144193"/>
		<updated>2022-09-14T09:07:42Z</updated>

		<summary type="html">&lt;p&gt;Pascalschmascal: This screenshot shows the activity iconactivatecontent before a user has activated it by clicking/tapping&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Summary ==&lt;br /&gt;
This screenshot shows the activity iconactivatecontent before a user has activated it by clicking/tapping&lt;/div&gt;</summary>
		<author><name>Pascalschmascal</name></author>
	</entry>
</feed>