<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>General developer forum</title>
    <link>http://moodle.org/mod/forum/view.php?f=33</link>
    <description>&lt;p&gt;This &lt;span class=&quot;nolink&quot;&gt;forum&lt;/span&gt; is for general developer news or issues that don't fit into any of the other &lt;span class=&quot;nolink&quot;&gt;forums&lt;/span&gt;!&lt;/p&gt; 
&lt;p&gt;Before posting, please make sure there is not a more appropriate forum you could be using. In particular, please use the General problems forum if you're having problems with your Moodle site, and the Moodle tracker to report bugs.&lt;/p&gt; 
&lt;p&gt;Please check out the Developer documentation and the Developer FAQ too.&lt;/p&gt;</description>
    <generator>Moodle</generator>
    <copyright>&amp;#169; 2009 Moodle.org</copyright>
    <image>
      <url>http://moodle.org/pix/i/rsssitelogo.gif</url>
      <title>moodle</title>
      <link>http://moodle.org</link>
      <width>140</width>
      <height>35</height>
    </image>
    <item>
      <category>How to implement a schedule (time table)?</category>
      <title>Re: How to implement a schedule (time table)?</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138309&amp;parent=603962</link>
      <pubDate>Fri, 20 Nov 2009 23:44:03 GMT</pubDate>
      <dc:creator>Philip Zander</dc:creator>
      <description>by Philip Zander. &amp;nbsp;&lt;p&gt;Thanks, then I'll probably rewrite it as a block, shouldn't be too much work.&lt;br /&gt;&lt;br /&gt;Is there any &amp;quot;official&amp;quot; place to let the user change plugin settings? I was thinking of maybe adding a new tab to the profile editing page - is this possible (without changing any moodle core code)? &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138309&amp;parent=603962</guid>
    </item>
    <item>
      <category>Can I add a countdown clock to my site?</category>
      <title>Can I add a countdown clock to my site?</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138422&amp;parent=603960</link>
      <pubDate>Fri, 20 Nov 2009 23:22:56 GMT</pubDate>
      <dc:creator>Laura Harrison</dc:creator>
      <description>by Laura Harrison. &amp;nbsp;&lt;p&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I'm just getting started with Moodle.  I have set up a course and added resources.  I would like a countdown clock in the header of my course, counting down days to an exam - is this possible?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks for any help&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138422&amp;parent=603960</guid>
    </item>
    <item>
      <category>missing shortcut in ECLIPSE</category>
      <title>missing shortcut in ECLIPSE</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138414&amp;parent=603936</link>

<enclosure url='http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=PHP' type='text/plain' />
      <pubDate>Fri, 20 Nov 2009 22:02:14 GMT</pubDate>
      <dc:creator>Joseph Rézeau</dc:creator>
      <description>by Joseph Rézeau. &amp;nbsp;&lt;p&gt;&lt;h5&gt;To developers using the ECLIPSE + &lt;a class=&quot;glossary autolink glossaryid27&quot; title=&quot;Links to interesting resources: PHP&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=PHP&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=PHP', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;PHP&lt;/a&gt; environment.&lt;/h5&gt;
&lt;p&gt;&lt;span class=&quot;MsgBodyText&quot;&gt;I have recently upgraded to Eclipse +PHP 3.5 (Galileo). In the previous version, when I placed the cursor just after an opening brace and double-clicked, the code between that opening brace and the matching closing brace would be highlighted, which I found quite a useful feature. I am no longer able to get the same feature in my present version. Has anyone come across this problem and found a solution? I've posted to the Eclipse forums &lt;a href=&quot;http://www.eclipse.org/forums/index.php?t=msg&amp;th=155265&amp;start=0&amp;S=1aab8d221fdf0ddf2a8b6fbdebd918d6&quot;&gt;here&lt;/a&gt; where others have mentioned the problem, but no response so far.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;MsgBodyText&quot;&gt;Joseph&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;MsgBodyText&quot;&gt;PS.- Tim has already responded (in private email) that he did not even know the feature existed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class=&quot;MsgBodyText&quot;&gt;&lt;/span&gt;&lt;/p&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138414&amp;parent=603936</guid>
    </item>
    <item>
      <category>Modules in 2.0 Require &quot;intro&quot; field?</category>
      <title>Modules in 2.0 Require &quot;intro&quot; field?</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138410&amp;parent=603913</link>
      <pubDate>Fri, 20 Nov 2009 20:49:27 GMT</pubDate>
      <dc:creator>Mike Churchward</dc:creator>
      <description>by Mike Churchward. &amp;nbsp;&lt;p&gt;Upgrading some third party modules to 2.0, I've run into an issue (I think)...&lt;br /&gt;&lt;br /&gt;Do modules in 2.0 have to have &amp;quot;intro&amp;quot; and &amp;quot;introformat&amp;quot; fields to be valid? Many have &amp;quot;summary&amp;quot; or &amp;quot;description&amp;quot; or other for these...&lt;br /&gt;&lt;br /&gt;mike&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138410&amp;parent=603913</guid>
    </item>
    <item>
      <category>User system role</category>
      <title>Re: User system role</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603900</link>
      <pubDate>Fri, 20 Nov 2009 20:10:24 GMT</pubDate>
      <dc:creator>Mary Cooch</dc:creator>
      <description>by Mary Cooch. &amp;nbsp;&lt;p&gt;Luke -where are you wanting this text only to parents to appear? As Sam says,if it's something like a label or a block you can set it up so only parents can see it as &lt;a href=&quot;http://docs.moodle.org/en/Block_permissions#Displaying_a_block_to_selected_users_only&quot;&gt;in the docs here &lt;/a&gt;&lt;br /&gt;But again - it depends on where you want this text.&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603900</guid>
    </item>
    <item>
      <category>User system role</category>
      <title>Re: User system role</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603872</link>
      <pubDate>Fri, 20 Nov 2009 18:10:13 GMT</pubDate>
      <dc:creator>sam marshall</dc:creator>
      <description>by sam marshall. &amp;nbsp;&lt;p&gt;Depending on where the text goes you may be able to control this already by clever use of other capabilities (e.g. for a label on course page I think you can make the label hidden, then override to give parents 'viewhiddenactivities' on just that label).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If not then yes you should create a new capability. For example if the text is part of a new plugin you're building, your new capability should go in the access.php of that plugin. If it is not part of a plugin then it should probably go in local/db/access.php. See docs/source for more details on capabilities.&lt;br /&gt;&lt;br /&gt;If you really really want to ensure the text appears to parents and not to any other role, even admin, then don't forget to use the 'false' flag to $doanything when you check has_capability.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--sam&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603872</guid>
    </item>
    <item>
      <category>Understanding course/category sortorder and fix_course_sortorder()</category>
      <title>Re: Understanding course/category sortorder and fix_course_sortorder()</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=126896&amp;parent=603833</link>
      <pubDate>Fri, 20 Nov 2009 15:31:10 GMT</pubDate>
      <dc:creator>Robert Russo</dc:creator>
      <description>by Robert Russo. &amp;nbsp;&lt;p&gt; &lt;span style=&quot;font-weight:bold;&quot;&gt;WE HAVE NOT TESTED THESE CHANGES WITH ANYTHING EXCEPT FOR 1.9.2. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We dealt with this problem a long time ago. Here is our fix for 1.9.2. It is by no means perfect, but it got us from 3 minute course creations down to instant course creations and deletions.&lt;br /&gt;&lt;br /&gt;Replace your fix_course_sortorder function with the one below and then update everything that calls fix_course_sortorder to pass in the courseid or categoryid of the course in question in order to update category counts or update sort order appropriately.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;WE HAVE NOT TESTED THESE CHANGES WITH ANYTHING EXCEPT FOR 1.9.2. &lt;/span&gt;&lt;br /&gt;Please test accordingly.&lt;br /&gt; &lt;pre&gt;
function fix_course_sortorder($categoryid=0, $n=0, $safe=0, $depth=0, $path='', $courseid=0) {

 global $CFG;

 // adamzap

 // We only want to sort things for specific requests.
 // We are not concerned with cleaning up the system all the time.
 if ($categoryid == 0 or $courseid &amp;lt; 3) {
 return 0;
 }

 // Update the course count for this category and its parents (if it has any)
 do {
 $course_count_&lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: SQL&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=SQL&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=SQL', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;sql&lt;/a&gt; = 'SELECT count(id) FROM ' . $CFG-&amp;gt;prefix . 'course ' .
 'WHERE category = ' . $categoryid;
 $course_count = get_field_sql($course_count_sql);

 set_field('course_categories', 'coursecount', $course_count, 'id', $categoryid);

 $categoryid = get_field('course_categories', 'parent', 'id', $categoryid);
 } while ($categoryid != 0);

 // Update the sort order of the passed in courseid
 $max_sortorder_sql = &amp;quot;SELECT MAX(sortorder) from mdl_course&amp;quot;;
 $max_sortorder = get_field_sql($max_sortorder_sql);

 $sortorder_sql = 'UPDATE ' . $CFG-&amp;gt;prefix . 'course c1 ' .
 'SET c1.sortorder = ' . $max_sortorder . ' + ' . rand(1, 100) .
 ' WHERE c1.id = ' . $courseid;

 execute_sql($sortorder_sql, 0);

 return 1;
}



&lt;/pre&gt; We reset our sort-orders in a similar way as above.&lt;br /&gt;&lt;i&gt;UPDATE mdl_course SET sortorder=ID +1000&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;With the new function and changes to about a 1/2 dozen other files everything works great, just much faster and no db limit issues.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;WE HAVE NOT TESTED THESE CHANGES WITH ANYTHING EXCEPT FOR 1.9.2. &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=126896&amp;parent=603833</guid>
    </item>
    <item>
      <category>Is it possible? Moodle ACLs?</category>
      <title>Re: Is it possible? Moodle ACLs?</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138332&amp;parent=603815</link>
      <pubDate>Fri, 20 Nov 2009 14:56:02 GMT</pubDate>
      <dc:creator>Hubert Chathi</dc:creator>
      <description>by Hubert Chathi. &amp;nbsp;&lt;p&gt;&lt;p&gt;You can use &lt;a href=&quot;http://docs.moodle.org/en/Override_permissions&quot;&gt;role overrides&lt;/a&gt; to prevent users from a specific role from seeing a block.&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138332&amp;parent=603815</guid>
    </item>
    <item>
      <category>Very slow admin login</category>
      <title>Re: Very slow admin login</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=114843&amp;parent=603813</link>
      <pubDate>Fri, 20 Nov 2009 14:44:43 GMT</pubDate>
      <dc:creator>Nathan Friend</dc:creator>
      <description>by Nathan Friend. &amp;nbsp;&lt;p&gt;&lt;p&gt;Any progress on this issue?&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=114843&amp;parent=603813</guid>
    </item>
    <item>
      <category>Direct access to a specific course</category>
      <title>Re: Direct access to a specific course</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138240&amp;parent=603810</link>

<enclosure url='http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=Java' type='text/plain' />
      <pubDate>Fri, 20 Nov 2009 14:33:55 GMT</pubDate>
      <dc:creator>Hubert Chathi</dc:creator>
      <description>by Hubert Chathi. &amp;nbsp;&lt;p&gt;&lt;p&gt;For reference, Moodle Networks is not just for Moodle-&amp;gt;Moodle, as long as you are willing to dig into the protocol (which, admittedly, is quite a task).  I have implemented the protocol in &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: Java&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=Java&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=Java', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;Java&lt;/a&gt;, and implemented a Moodle-&amp;gt;JasperServer single sign-on.&lt;br /&gt;
&lt;br /&gt;
Like you, my Java implementation will be open sourced at some point in the future, but the &quot;when&quot; will be determined by management (and the sometimes even more restrictive: &quot;when we have time&quot; element). &lt;img alt=&quot;smile&quot; width=&quot;15&quot; height=&quot;15&quot; src=&quot;http://moodle.org/pix/s/smiley.gif&quot; /&gt;&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138240&amp;parent=603810</guid>
    </item>
    <item>
      <category>Setting values of TextArea via JavaScript</category>
      <title>Re: Setting values of TextArea via JavaScript</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138310&amp;parent=603797</link>
      <pubDate>Fri, 20 Nov 2009 13:39:23 GMT</pubDate>
      <dc:creator>Frank Ralf</dc:creator>
      <description>by Frank Ralf. &amp;nbsp;&lt;p&gt;&lt;p&gt;Thanks for the hint, just a typo (missing &quot;r&quot;). I have just created that page with a redirect in case it happens again &lt;img alt=&quot;wink&quot; width=&quot;15&quot; height=&quot;15&quot; src=&quot;http://moodle.org/pix/s/wink.gif&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Frank&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138310&amp;parent=603797</guid>
    </item>
    <item>
      <category>Setting values of TextArea via JavaScript</category>
      <title>Re: Setting values of TextArea via JavaScript</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138310&amp;parent=603796</link>

<enclosure url='http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=Moodle+Docs' type='application/x-csh' />
      <pubDate>Fri, 20 Nov 2009 13:35:13 GMT</pubDate>
      <dc:creator>Joseph Rézeau</dc:creator>
      <description>by Joseph Rézeau. &amp;nbsp;&lt;p&gt; Hi Frank,&lt;br /&gt;Just clicked on the &lt;a href=&quot;http://docs.moodle.org/en/Javascipt_FAQ&quot; title=&quot;Javascipt FAQ&quot;&gt;Javascipt FAQ&lt;/a&gt; link you mention in your post, and it takes me to &lt;br /&gt;
&lt;h1 class=&quot;firstHeading&quot;&gt;Javascipt FAQ&lt;/h1&gt;
&lt;h3 id=&quot;siteSub&quot;&gt;From &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: Moodle Docs&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=Moodle+Docs&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=Moodle+Docs', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;MoodleDocs&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;This page does not exist yet. You are welcome to &lt;a href=&quot;http://docs.moodle.org/en/index.php?title=Javascipt_FAQ&amp;action=edit&quot; class=&quot;external text&quot; title=&quot;http://docs.moodle.org/en/index.php?title=Javascipt_FAQ&amp;action=edit&quot; rel=&quot;nofollow&quot;&gt;create it&lt;/a&gt;. &lt;/p&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138310&amp;parent=603796</guid>
    </item>
    <item>
      <category>Setting values of TextArea via JavaScript</category>
      <title>Re: Setting values of TextArea via JavaScript</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138310&amp;parent=603793</link>

<enclosure url='http://developer.yahoo.com/yui/examples/editor/post_editor.html' type='text/html' />
      <pubDate>Fri, 20 Nov 2009 13:32:04 GMT</pubDate>
      <dc:creator>Frank Ralf</dc:creator>
      <description>by Frank Ralf. &amp;nbsp;&lt;p&gt;&lt;p&gt;Hi Martin,&lt;br /&gt;
&lt;br /&gt;
I don't know whether this is too much, but Moodle comes with YUI support so you could resort to &lt;a href=&quot;http://developer.yahoo.com/yui/connection/&quot;&gt;YUI's AJAX capabilities&lt;/a&gt;, e.g. &lt;br /&gt;
&lt;br /&gt;
 &lt;a href=&quot;http://developer.yahoo.com/yui/examples/editor/post_editor.html&quot;&gt;Rich Text Editor: Editor Data Post with Connection Manager&lt;/a&gt; &lt;br /&gt;
&quot;This example demonstrates how to use Connection Manager to post data to the &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: server&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=server&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=server', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;server&lt;/a&gt;, filter it and return it to the Editor.&quot;&lt;br /&gt;
&lt;br /&gt;
See &lt;a href=&quot;http://docs.moodle.org/en/Javascript_FAQ&quot; title=&quot;Moodle Docs: Javascript FAQ&quot;&gt;Javascript FAQ&lt;/a&gt; for further hints on incorporating &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: Javascript&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=Javascript&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=Javascript', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;JavaScript&lt;/a&gt; into Moodle.&lt;br /&gt;
&lt;br /&gt;
hth&lt;br /&gt;
Frank &lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138310&amp;parent=603793</guid>
    </item>
    <item>
      <category>How to implement a schedule (time table)?</category>
      <title>Re: How to implement a schedule (time table)?</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138309&amp;parent=603784</link>
      <pubDate>Fri, 20 Nov 2009 12:57:21 GMT</pubDate>
      <dc:creator>Mark Johnson</dc:creator>
      <description>by Mark Johnson. &amp;nbsp;&lt;p&gt;We've got a similar system in place in the form of the &lt;a href=&quot;http://moodle.org/mod/data/view.php?d=13&amp;rid=734&amp;filter=1&quot;&gt;MRBS plugin&lt;/a&gt;.&lt;br /&gt;In terms of how it slots in to Moodle, it's written as a block to allow it to have an admin configuration page etc, but then all the actual pages reside in a subdirectory of the block. The block itself just displays a link into this subdirectory.&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138309&amp;parent=603784</guid>
    </item>
    <item>
      <category>User system role</category>
      <title>Re: User system role</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603779</link>
      <pubDate>Fri, 20 Nov 2009 12:48:13 GMT</pubDate>
      <dc:creator>Frank Ralf</dc:creator>
      <description>by Frank Ralf. &amp;nbsp;&lt;p&gt;&lt;p&gt;Hi Luke,&lt;br /&gt;
&lt;br /&gt;
Try using &lt;a href=&quot;http://docs.moodle.org/en/Developer_FAQ&quot; title=&quot;Moodle Docs: Developer FAQ&quot;&gt;Developer FAQ&lt;/a&gt; and/or &lt;a href=&quot;http://dev.moodle.org/&quot; target=&quot;_blank&quot;&gt;http://dev.moodle.org/&lt;/a&gt; as a starting point.&lt;br /&gt;
&lt;br /&gt;
hth&lt;br /&gt;
Frank&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603779</guid>
    </item>
    <item>
      <category>Setting values of TextArea via JavaScript</category>
      <title>Re: Setting values of TextArea via JavaScript</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138310&amp;parent=603773</link>
      <pubDate>Fri, 20 Nov 2009 12:23:31 GMT</pubDate>
      <dc:creator>Martin Holden</dc:creator>
      <description>by Martin Holden. &amp;nbsp;&lt;p&gt;&lt;p&gt;Thanks Sam&lt;/p&gt;
&lt;p&gt;Usual issue of been to close to things, makes perfect sense to abstract the setting function.&lt;/p&gt;
&lt;p&gt;Martin&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138310&amp;parent=603773</guid>
    </item>
    <item>
      <category>User system role</category>
      <title>Re: User system role</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603770</link>
      <pubDate>Fri, 20 Nov 2009 12:09:58 GMT</pubDate>
      <dc:creator>Luke Bridges</dc:creator>
      <description>by Luke Bridges. &amp;nbsp;&lt;p&gt;&lt;p&gt;we have a role called parent, and need some text to only display to parents and no one else so am looking for somthing like isadmin() but for othe roles.... &lt;/p&gt;
&lt;p&gt;unless i create a custom capability ( but i dont know how)&lt;/p&gt;&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603770</guid>
    </item>
    <item>
      <category>User system role</category>
      <title>Re: User system role</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603769</link>
      <pubDate>Fri, 20 Nov 2009 12:07:11 GMT</pubDate>
      <dc:creator>David Mudrák</dc:creator>
      <description>by David Mudrák. &amp;nbsp;&lt;p&gt;Luke,&lt;br /&gt;&lt;br /&gt;firtly, why would you ever need it? The role itself is nothing but a named set of capabilities. As a developer you check if the current user has some capability and you do not care the role. You usually use has_capability() or require_capability() for this. See the public API defined in lib/accesslib.php&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603769</guid>
    </item>
    <item>
      <category>User system role</category>
      <title>User system role</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603761</link>
      <pubDate>Fri, 20 Nov 2009 11:41:07 GMT</pubDate>
      <dc:creator>Luke Bridges</dc:creator>
      <description>by Luke Bridges. &amp;nbsp;&lt;p&gt;Is there a variable or method i can use to get what system/local/course role a user has been assigned to ?&lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138373&amp;parent=603761</guid>
    </item>
    <item>
      <category>Is it possible? Moodle ACLs?</category>
      <title>Re: Is it possible? Moodle ACLs?</title>
      <link>http://moodle.org/mod/forum/discuss.php?d=138332&amp;parent=603758</link>

<enclosure url='http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=CSS' type='text/css' />
      <pubDate>Fri, 20 Nov 2009 11:31:58 GMT</pubDate>
      <dc:creator>sam marshall</dc:creator>
      <description>by sam marshall. &amp;nbsp;&lt;p&gt; Yes, somewhat.&lt;br /&gt;&lt;br /&gt;For &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: activities&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=activities&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=activities', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;activities&lt;/a&gt; (module instances):&lt;br /&gt;&lt;br /&gt;Hide the module. Now only users with viewhiddenactivities capability (I forget if it is 'teachers' or 'editing teachers' that get this by default, but you can configure) can see it. You can override that capability on an individual module so that a particular one can be seen by some other role, or else not be seen by a role that normally would see it.&lt;br /&gt;&lt;br /&gt;For blocks:&lt;br /&gt;&lt;br /&gt;I don't think this is really possible in general for existing blocks unless they have their own 'view' capability, which they usually don't. It's easy to implement for your own blocks (just check for a capability and return empty string if they don't have it).&lt;br /&gt;&lt;br /&gt;However, if you aren't concerned about security in this regard, you can probably hide blocks using &lt;a class=&quot;glossary autolink glossaryid5&quot; title=&quot;Glossary of common terms: CSS&quot; href=&quot;http://moodle.org/mod/glossary/showentry.php?courseid=5&amp;amp;concept=CSS&quot; onclick=&quot;return openpopup('/mod/glossary/showentry.php?courseid=5\&amp;amp;concept=CSS', 'entry', 'menubar=0,location=0,scrollbars,resizable,width=600,height=450', 0);&quot;&gt;CSS&lt;/a&gt;. Create a custom theme, and within your theme's header.php, add code which checks for a capability. If that capability is not present, add a stylesheet like&lt;br /&gt;&lt;br /&gt;&amp;lt;style type=&amp;quot;text/css&amp;quot;&amp;gt;&lt;br /&gt;.block-whatever {&lt;br /&gt; display:none;&lt;br /&gt;}&lt;br /&gt;&amp;lt;/style&amp;gt;&lt;br /&gt;&lt;br /&gt;You get the idea...&lt;br /&gt;&lt;br /&gt;I may be mistaken, or not know about some other technique, so please others feel free to correct me if necessary..!&lt;br /&gt;&lt;br /&gt;--sam&lt;br /&gt; &lt;/p&gt;</description>
      <guid isPermaLink="true">http://moodle.org/mod/forum/discuss.php?d=138332&amp;parent=603758</guid>
    </item>
  </channel>
</rss>