<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Moodle Plugins directory: Links: Comments</title>
    <link>https://moodle.org</link>
    <description>This block is allows a site administrator to display links to users based on specific user profile fields</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>Friday, 27 October 2017, 6:28 PM - Gary Lynch</title>
      <link>https://moodle.org/plugins/block_links#comment-46157</link>
      <pubDate>Fri, 27 Oct 2017 10:28:19 GMT</pubDate>
      <description>by Gary Lynch. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;HI Stephen &lt;br&gt;
Thank you for an excellent plugin that has saved myself alot of work &lt;img class=&quot;icon emoticon&quot; alt=&quot;smile&quot; title=&quot;smile&quot; src=&quot;https://moodle.org/theme/image.php/moodleorg/core/1776241734/s/smiley&quot;&gt;&lt;br&gt;
I have followed the posts regarding adding extra field (description) to drop downs but i dont understand what it is i need to do in step 4 of the instructions? I have added the field to settings and lib.php. Would you mind giving me some direction please?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-46157</guid>
    </item>
    <item>
      <title>Thursday, 28 September 2017, 4:55 PM - Gary Lynch</title>
      <link>https://moodle.org/plugins/block_links#comment-45458</link>
      <pubDate>Thu, 28 Sep 2017 08:55:45 GMT</pubDate>
      <description>by Gary Lynch. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Stephen Thank you for the rapid reply just for information using Adaptable theme it does not provide the option in 'block' to add it on frontpage so do i need to contact theme developer?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-45458</guid>
    </item>
    <item>
      <title>Thursday, 28 September 2017, 12:24 AM - Stephen Bourget</title>
      <link>https://moodle.org/plugins/block_links#comment-45453</link>
      <pubDate>Wed, 27 Sep 2017 16:24:36 GMT</pubDate>
      <description>by Stephen Bourget. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;There is no restriction on where you can add this block. So it should be possible to add it onto the front page or on a report page as long as your theme supports adding other blocks in that location.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-45453</guid>
    </item>
    <item>
      <title>Wednesday, 27 September 2017, 11:10 PM - Gary Lynch</title>
      <link>https://moodle.org/plugins/block_links#comment-45452</link>
      <pubDate>Wed, 27 Sep 2017 15:10:20 GMT</pubDate>
      <description>by Gary Lynch. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Hi Stephen.. Is it possible to allow this block to be displayed on the front page or a page resource rather than just a course? My rational for this is to enable custom external report links available to certain groups based on a specific institution &lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-45452</guid>
    </item>
    <item>
      <title>Tuesday, 12 September 2017, 1:23 AM - Stephen Bourget</title>
      <link>https://moodle.org/plugins/block_links#comment-45106</link>
      <pubDate>Mon, 11 Sep 2017 17:23:02 GMT</pubDate>
      <description>by Stephen Bourget. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;It's possible.  You would need to modify the code for the plugin.  You need to modify the add_link() function (&lt;a href=&quot;https://github.com/sbourget/moodle-block_links/blob/master/block_links.php#L109&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/sbourget/moodle-block_links/blob/master/block_links.php#L109&lt;/a&gt;) which is used to create the HTML for each link.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-45106</guid>
    </item>
    <item>
      <title>Tuesday, 12 September 2017, 1:17 AM - Troy May</title>
      <link>https://moodle.org/plugins/block_links#comment-45105</link>
      <pubDate>Mon, 11 Sep 2017 17:17:32 GMT</pubDate>
      <description>by Troy May. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;How difficult would it be to make links appears as single buttons instead of text links? That might be way better in terms of graphical appearance. Thoughts?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-45105</guid>
    </item>
    <item>
      <title>Saturday, 26 August 2017, 5:44 AM - Stephen Bourget</title>
      <link>https://moodle.org/plugins/block_links#comment-44747</link>
      <pubDate>Fri, 25 Aug 2017 21:44:13 GMT</pubDate>
      <description>by Stephen Bourget. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;It's possible to add it, but you would need to modify the code for the plugin.  The areas you would need to modify are listed in the comment above from August 23 &amp;amp; 24 2016.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-44747</guid>
    </item>
    <item>
      <title>Monday, 21 August 2017, 6:37 PM - Gary Lynch</title>
      <link>https://moodle.org/plugins/block_links#comment-44630</link>
      <pubDate>Mon, 21 Aug 2017 10:37:43 GMT</pubDate>
      <description>by Gary Lynch. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Excellent Thank you &lt;img class=&quot;icon emoticon&quot; alt=&quot;smile&quot; title=&quot;smile&quot; src=&quot;https://moodle.org/theme/image.php/moodleorg/core/1776241734/s/smiley&quot;&gt;&lt;br&gt;
Just one other thing. is it easy to add Description profile field to the dropdown list of field?&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-44630</guid>
    </item>
    <item>
      <title>Sunday, 20 August 2017, 6:22 AM - Stephen Bourget</title>
      <link>https://moodle.org/plugins/block_links#comment-44615</link>
      <pubDate>Sat, 19 Aug 2017 22:22:54 GMT</pubDate>
      <description>by Stephen Bourget. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Yes, just use the version (M2.9 (2016062302)) It works with Moodle 2.9 - 3.2.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-44615</guid>
    </item>
    <item>
      <title>Saturday, 19 August 2017, 7:10 PM - Gary Lynch</title>
      <link>https://moodle.org/plugins/block_links#comment-44612</link>
      <pubDate>Sat, 19 Aug 2017 11:10:35 GMT</pubDate>
      <description>by Gary Lynch. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Is there a way to get this plugin to work with version 3.1.3+?&lt;br&gt;
My organisation is not in the position to upgrade yet due to recruitment issues?&lt;br&gt;
This would solve my problem of access to some custom reports i have created in php/sql&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-44612</guid>
    </item>
    <item>
      <title>Wednesday, 24 August 2016, 3:02 PM - Andreas Panagiotopoulos</title>
      <link>https://moodle.org/plugins/block_links#comment-37775</link>
      <pubDate>Wed, 24 Aug 2016 07:02:35 GMT</pubDate>
      <description>by Andreas Panagiotopoulos. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Thank you Stephen for your reply and your help!&lt;br&gt;
&lt;br&gt;
There is an extra step as well.&lt;br&gt;
&lt;br&gt;
4. Add an additional condition to the select case structure to select the availble values of field when adding a link. This case will be a query to distinct values of the specific field:&lt;br&gt;
&lt;a href=&quot;https://github.com/sbourget/moodle-block_links/blob/master/edit_form.php#L73&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/sbourget/moodle-block_links/blob/master/edit_form.php#L73&lt;/a&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-37775</guid>
    </item>
    <item>
      <title>Tuesday, 23 August 2016, 10:10 PM - Stephen Bourget</title>
      <link>https://moodle.org/plugins/block_links#comment-37752</link>
      <pubDate>Tue, 23 Aug 2016 14:10:10 GMT</pubDate>
      <description>by Stephen Bourget. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;To add new fields, you will need to do the following:&lt;br&gt;
&lt;br&gt;
1. Create a constant for the field you want to use.&lt;br&gt;
&lt;a href=&quot;https://github.com/sbourget/moodle-block_links/blob/master/lib.php#L27&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/sbourget/moodle-block_links/blob/master/lib.php#L27&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
2. To add the field to the drop down list, you need to edit the settings.php file and add the constant to the array&lt;br&gt;
&lt;a href=&quot;https://github.com/sbourget/moodle-block_links/blob/master/settings.php#L34&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/sbourget/moodle-block_links/blob/master/settings.php#L34&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
3. Then add an additional condition to the select case structure to match the link to the user:&lt;br&gt;
&lt;a href=&quot;https://github.com/sbourget/moodle-block_links/blob/master/lib.php#L61&quot; class=&quot;_blanktarget&quot; target=&quot;_blank&quot; rel=&quot;noreferrer&quot;&gt;https://github.com/sbourget/moodle-block_links/blob/master/lib.php#L61&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
It should be possible to a custom field as well.&lt;br&gt;
Should you add other fields, feel free to submit a patch or pull request to github.&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-37752</guid>
    </item>
    <item>
      <title>Tuesday, 23 August 2016, 2:58 PM - Andreas Panagiotopoulos</title>
      <link>https://moodle.org/plugins/block_links#comment-37745</link>
      <pubDate>Tue, 23 Aug 2016 06:58:47 GMT</pubDate>
      <description>by Andreas Panagiotopoulos. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;Thank you for this useful plugin! But how can we add more profile fields to be selected instead from these 4 (institution, department etc)? Which files can i edit?&lt;br&gt;
&lt;br&gt;
Moreover, can we add custom profile fields?&lt;br&gt;
&lt;br&gt;
Thank you!&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-37745</guid>
    </item>
    <item>
      <title>Friday, 12 August 2016, 5:04 PM - David Mudrák</title>
      <link>https://moodle.org/plugins/block_links#comment-37534</link>
      <pubDate>Fri, 12 Aug 2016 09:04:20 GMT</pubDate>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;p&gt;Hi Stephen. Thanks for clarification and for adding the info. It helped and I was able to test the plugin successfully.&lt;/p&gt;

&lt;p&gt;One thing I found not intuitive to me is that I would naturally expect that links are stored per block instance, not globally. I can imagine that in your particular use-case, cross-site management of links is easier though. Still, maybe it is something you should elaborate a bit in the plugin description. Otherwise I found the code readable and following Moodle coding standards. Well done on that.&lt;/p&gt;

&lt;p&gt;I am happy to approve this block now. 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/block_links#comment-37534</guid>
    </item>
    <item>
      <title>Friday, 24 June 2016, 4:14 AM - Stephen Bourget</title>
      <link>https://moodle.org/plugins/block_links#comment-36654</link>
      <pubDate>Thu, 23 Jun 2016 20:14:19 GMT</pubDate>
      <description>by Stephen Bourget. &amp;nbsp;&lt;p&gt;&lt;div class=&quot;no-overflow&quot;&gt;&lt;div class=&quot;text_to_html&quot;&gt;I've added some documentation which should explain that, but if you have data in the user profile fields then you can restrict the link so it will only be displayed to users who have the matching information in their user profile (We use the block here where we have multiple schools sharing the same Moodle install and we want to display different resources to different users based on where they are located)  It works well if you have your user information sync from an external system like LDAP and lock the profile fields that you are storing the user specific information. (In our case it we use institution)&lt;/div&gt;&lt;/div&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">https://moodle.org/plugins/block_links#comment-36654</guid>
    </item>
  </channel>
</rss>