<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Moodle Plugins directory: edu-sharing Filter: Comments</title>
    <link>https://moodle.org</link>
    <description>The edu-sharing filter displays embedded edu-sharing content.</description>
    <generator>Moodle</generator>
    <language>en</language>
    <copyright>(c) 2026 Moodle - Open-source learning platform | Moodle.org</copyright>
    <image>
      <url>https://moodle.org/theme/image.php/moodleorg/core/1776241734/i/rsssitelogo</url>
      <title>moodle</title>
      <link>https://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <title>Thursday, 24 November 2016, 5:20 AM - David Mudrák</title>
      <link>https://moodle.org/plugins/filter_edusharing#comment-39398</link>
      <pubDate>Wed, 23 Nov 2016 21:20:00 GMT</pubDate>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;p&gt;Hi Steffen, and sorry for the delay in finishing the review of your plugin. There are couple of issues I spotted that should be addressed in a future version.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;You call &lt;code&gt;reset_text_filters_cache()&lt;/code&gt; every time you initialize the filter. As a consequence, your filter effectively switches off all caching for all filters (and even worse, adds some extra processing on top of it). I don't think the filter is supposed to use this function like this.&lt;/li&gt;
&lt;li&gt;Performance wise, the &lt;code&gt;preg_match_all()&lt;/code&gt; is generally much slower than &lt;code&gt;strpos()&lt;/code&gt; check. I still think it would make sense to use the latter one first to see if a substring like &lt;code&gt;es:resource_id&lt;/code&gt; is present at all. And only if so, call &lt;code&gt;preg_match_all()&lt;/code&gt; and gather the actual matches.&lt;/li&gt;
&lt;li&gt;Your CSS file styles.css uses too generic selectors like &lt;code&gt;.inner&lt;/code&gt; and is likely to affect other parts of the Moodle interface. Please refer to &lt;a href=&quot;https://docs.moodle.org/dev/Plugin_contribution_checklist#CSS_styles&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://docs.moodle.org/dev/Plugin_contribution_checklist#CSS_styles&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;As you are using your own low level curl calls to obtain the remote content, the plugin does not respect other related site's settings (such as proxy etc). It might be better (and safer) to stick to using Moodle core API for these things.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Some of these issues are quite serious and normally I would prefer to see them fixed before publishing the plugin here. But I am going to approve this now anyway as the filter is an essential companion of the edusharing set and I believe you will improve it soon. You are cleared to land, welcome to the &lt;a title=&quot;Auto-link&quot; href=&quot;https://moodle.org/plugins&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;Plugins directory&lt;/a&gt;.&lt;/p&gt;
&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_edusharing#comment-39398</guid>
    </item>
    <item>
      <title>Thursday, 29 September 2016, 10:22 PM - Steffen Hippeli</title>
      <link>https://moodle.org/plugins/filter_edusharing#comment-38368</link>
      <pubDate>Thu, 29 Sep 2016 14:22:19 GMT</pubDate>
      <description>by Steffen Hippeli. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi David,&lt;br&gt;
finally i had the time to change this issue. Now the scripts will be loaded only if actually there is some edu-sharaing content in the text.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_edusharing#comment-38368</guid>
    </item>
    <item>
      <title>Saturday, 27 August 2016, 12:03 AM - David Mudrák</title>
      <link>https://moodle.org/plugins/filter_edusharing#comment-37855</link>
      <pubDate>Fri, 26 Aug 2016 16:03:01 GMT</pubDate>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;p&gt;Thanks Steffen for sharing this filter with the Moodle community. I've been looking at this together with reviewing the edusharing activity module. One thing I noticed is that your filter does a lot of things on all pages by default - such as it tries to prevent the browser from caching them, it includes the module's jQuery and other JS modules and it attempts to connect to the edu-sharing server via SOAP. This all seems to happen on every single page even if there is no edu-sharing contents on it.&lt;/p&gt;

&lt;p&gt;I am afraid of potential performance impacts due to such behaviour. I believe it would be much cleaner if the filter's &lt;code&gt;filter()&lt;/code&gt; method first checked via a quick and check &lt;code&gt;strpos()&lt;/code&gt;call that the passed &lt;code&gt;$text&lt;/code&gt; contains a substring like &lt;code&gt;es:resource_id&lt;/code&gt;. It would then perform all the required steps only then, otherwise it would quit early.&lt;/p&gt;

&lt;p&gt;Such an approach is recommended even for plugins that make much less than your filter does. I am marking this as needing more work now so you can evaluate this and provide a new fixed version. Thanks for your patience with the plugin approval process.&lt;/p&gt;
&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_edusharing#comment-37855</guid>
    </item>
    <item>
      <title>Wednesday, 27 April 2016, 3:54 PM - Plugins bot</title>
      <link>https://moodle.org/plugins/filter_edusharing#comment-35485</link>
      <pubDate>Wed, 27 Apr 2016 07:54:46 GMT</pubDate>
      <description>by Plugins bot. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Prechecker results: 367 errors/47 warnings&lt;br&gt;
&lt;a href=&quot;http://integration.moodle.org/job/Precheck%20remote%20branch/23128/artifact/work/smurf.html&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;http://integration.moodle.org/job/Precheck%20remote%20branch/23128/artifact/work/smurf.html&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
* Please provide a full description of the plugin. You can describe the plugin's features, purpose and typical usage scenarios there, for example.&lt;br&gt;
* Bug tracker is not specified for your plugin. Providing a place for users of your plugin to report issues encourages participation and provides a way for users to report bugs, make feature requests, or suggest other types of improvements.&lt;br&gt;
* In order to facilitate easier sharing and further development of your open-source plugin, please provide publicly accessible URL of your code repository. The suggested naming convention of the repository is moodle-{plugintype}_{pluginname}.&lt;br&gt;
* Please add a screenshot of your plugin to help folks get an idea of what it looks like when installed.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/filter_edusharing#comment-35485</guid>
    </item>
  </channel>
</rss>