Feature #4925
Plugin for OLPC Perú for Squid config by course
Description
The OLPC Perú project asked if we could include a small plugin to enable the setting of a Squid config file inside a Chamilo course.
Files
Associated revisions
Added blacklists documentation for the OLPC Peru filter plugin - refs #4925 (previous references were pointing to the wrong task)
Remove tool table insertion for the OLPC Peru filter plugin - refs #4925
Remove deprecated code from the OLPC Peru filter plugin - refs #4925
History
Updated by Yannick Warnier over 8 years ago
- Target version changed from 1.9 Beta to 1.9 RC1
- % Done changed from 0 to 20
Forgot the commit reference: http://code.google.com/p/chamilo/source/detail?r=b77ce15245b8e8351c66be6cb202f0714e9a5b26&repo=classic
Updated by Yannick Warnier over 8 years ago
- File Configuración_de_SquidGuard_en_Chamilo__2_.pdf Configuración_de_SquidGuard_en_Chamilo__2_.pdf added
- File sqg.sh sqg.sh added
Adjuntando nuevos archivos recibidos de Aliosh Neira
Updated by Julio Montoya over 8 years ago
olpc_peru_filter_na.png and olpc_peru_filter.png images need to be added
Otherwise an error will be shown in firebug
"NetworkError: 404 Not Found - main/img/olpc_peru_filter_na.png"
Updated by Yannick Warnier over 8 years ago
I think it would be better to modify the plugin.lib.php instead (because in this case I have added a feature to avoid showing the plugin in the course homepage, which should remove the need for a 64px image). I'll check that.
Updated by Yannick Warnier over 8 years ago
Julio A. Montoya wrote:
"NetworkError: 404 Not Found - main/img/olpc_peru_filter_na.png"
The location of this file here kind of implies that it loads it from the root of /main/img/... why would that be?
Updated by Yannick Warnier over 8 years ago
- Assignee changed from Yannick Warnier to Julio Montoya
I can't find that error anywhere in firebug... can you help me locate it?
Updated by Julio Montoya over 8 years ago
You can put the icon also in main/img/icons/32 or main/img/icons/64 we are using Display::return_icon to get the image
Updated by Julio Montoya over 8 years ago
- File olpc_bug.png olpc_bug.png added
- Status changed from Assigned to Needs more info
- Assignee deleted (
Julio Montoya)
Updated by Julio Montoya over 8 years ago
The php code is located in the course_home.lib.php file 744
// Including Courses Plugins
// Including Courses Plugins // Creating title and the link if (isset($tool['category']) && $tool['category'] == 'plugin') { $plugin_info = $app_plugin->get_plugin_info($tool['name']); if (isset($plugin_info) && isset($plugin_info['title'])) { $tool_name = $plugin_info['title']; } $tool_link_params['href'] = api_get_path(WEB_PLUGIN_PATH).$tool['original_link'].'?'.api_get_cidreq(); }
Updated by Julio Montoya over 8 years ago
Remember that when you install the course plugin it also installs "the icon" in the tool table
Updated by Yannick Warnier over 8 years ago
You probably have something wrong or I didn't send something, but in short, you shouldn't see that tool appear there, because I modified the plugins system to avoid creating anything in the tools table.
I mistakenly "attached" my commits to task #4796, so all commits relative to this plugin should be checked there.
Updated by Yannick Warnier over 8 years ago
Yannick Warnier wrote:
...because I modified the plugins system to avoid creating anything in the tools table.
Only if requested through an explicit parameter, of course :-)
Updated by Yannick Warnier over 8 years ago
Ok, got it. On course creation, it still gets created. My fault. Checking this right away...
Updated by Yannick Warnier over 8 years ago
- Assignee set to Julio Montoya
The latest commit should fix it (it redefines the course_install() method at the plugin level).
Updated by Julio Montoya over 8 years ago
- Assignee changed from Julio Montoya to Yannick Warnier
ok, no more OLPC icon in the course home seems ok to me.
Updated by Yannick Warnier over 8 years ago
- Status changed from Needs more info to Feature implemented
- % Done changed from 20 to 100
Thanks, closing.
Added blacklists documentation for the OLPC Peru filter plugin - refs #4925 (previous references were pointing to the wrong task)