Moodle plugins directory: GURLS | Moodle.org
GURLS
This plugin will dynamically replace a URL (example: www.black.com) with an alternate URL (example: www.blue.com) based on front page group membership. Consider this example:
A Moodle site has a grouping named “SWAP” and this grouping contains two groups: Red Group and Blue Group. Using the GURLS filter, the admin creates a swap instance for the URL www.black.com. Within this instance, the Red Group is associated with www.red.com and the Blue Group with www.blue.com.
This
means that when members of the Red Group come across any page that contains the
URL www.black.com, they will see their
alternative URL www.red.com. Accordingly, members of
the blue group will see www.blue.com. This plugins can be used
for different purposes, but it was originally created to serve large media
files from a server that is closest to the user. In the example illustrated
below, www.red.com could be a server in
Brazil and www.blue.com could be a server in
China.
http://integration.moodle.org/job/Precheck%20remote%20branch/15709/artifact/work/smurf.html
Hi Fernando. Thanks for sharing another plugin with the Moodle community. Prior to approving this filter here, there are couple of issues that should be fixed.
help_text
string?1
as the hard-coded value to obtain the front page at several places. You should use theSITEID
constant as it does not always equal 1. There is alsoget_site()
core function, should you need it.s()
orformat_string()
).For now, I am marking this as needing more work to get things fixed and/or clarified. Thanks for you patience with the review and approval process.
Hi Fernando. Thanks for providing a new version that fixes many of the reported issues. I gave the filter another round of review and spotted some additional issues (now reported in your bug tracker) that should be fixed yet.
Please note, you should ideally bump the version number (at least
$plugin->version
but I prefer$plugin->release
too) when uploading a new version here - even though the plugin is not approved yet.Hi again. The plugins team is currently busy with other development tasks for the upcoming Moodle 3.0 release, so please expect delays in the review and approval process. Thanks for your understanding and patience, we will do our best to get to reviewing your plugin soon.
Hi Fernando. Please find my comments in your bug tracker.