Project

General

Profile

Feature #4925

Plugin for OLPC Perú for Squid config by course

Added by Yannick Warnier over 7 years ago. Updated over 7 years ago.

Status:
Feature implemented
Priority:
Normal
Category:
-
Target version:
Start date:
18/06/2012
Due date:
% Done:

100%

Estimated time:
Spent time:
Complexity:
Normal
SCRUM pts - complexity:
?

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

Configuración_de_SquidGuard_en_Chamilo.pdf (46.8 KB) Configuración_de_SquidGuard_en_Chamilo.pdf Yannick Warnier, 18/06/2012 09:26
sqg-bl.php (1.26 KB) sqg-bl.php Yannick Warnier, 18/06/2012 09:26
sqg-bl-save.php (433 Bytes) sqg-bl-save.php Yannick Warnier, 18/06/2012 09:26
Configuración_de_SquidGuard_en_Chamilo__2_.pdf (110 KB) Configuración_de_SquidGuard_en_Chamilo__2_.pdf Yannick Warnier, 13/07/2012 05:41
sqg.sh (1.33 KB) sqg.sh Yannick Warnier, 13/07/2012 05:41
olpc_bug.png (67.3 KB) olpc_bug.png Julio Montoya, 13/07/2012 18:24

Associated revisions

Revision f72098ed (diff)
Added by Yannick Warnier over 7 years ago

Added blacklists documentation for the OLPC Peru filter plugin - refs #4925 (previous references were pointing to the wrong task)

Revision 48d63775 (diff)
Added by Yannick Warnier over 7 years ago

Added blacklists documentation for the OLPC Peru filter plugin - refs #4925 (previous references were pointing to the wrong task)

Revision 75177803 (diff)
Added by Yannick Warnier over 7 years ago

Remove tool table insertion for the OLPC Peru filter plugin - refs #4925

Revision 135d9022 (diff)
Added by Yannick Warnier over 7 years ago

Remove deprecated code from the OLPC Peru filter plugin - refs #4925

History

#1

Updated by Yannick Warnier over 7 years ago

  • Target version changed from 1.9 Beta to 1.9 RC1
  • % Done changed from 0 to 20
#2

Updated by Yannick Warnier over 7 years ago

Adjuntando nuevos archivos recibidos de Aliosh Neira

#3

Updated by Julio Montoya over 7 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"

#4

Updated by Yannick Warnier over 7 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.

#5

Updated by Yannick Warnier over 7 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?

#6

Updated by Yannick Warnier over 7 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?

#7

Updated by Julio Montoya over 7 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

#8

Updated by Julio Montoya over 7 years ago

#9

Updated by Julio Montoya over 7 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();
                }
#10

Updated by Julio Montoya over 7 years ago

Remember that when you install the course plugin it also installs "the icon" in the tool table

#11

Updated by Yannick Warnier over 7 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.

#12

Updated by Yannick Warnier over 7 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 :-)

#13

Updated by Yannick Warnier over 7 years ago

Ok, got it. On course creation, it still gets created. My fault. Checking this right away...

#14

Updated by Yannick Warnier over 7 years ago

  • Assignee set to Julio Montoya

The latest commit should fix it (it redefines the course_install() method at the plugin level).

#15

Updated by Julio Montoya over 7 years ago

Ok I'm going to test it

#16

Updated by Julio Montoya over 7 years ago

  • Assignee changed from Julio Montoya to Yannick Warnier

ok, no more OLPC icon in the course home seems ok to me.

#17

Updated by Yannick Warnier over 7 years ago

  • Status changed from Needs more info to Feature implemented
  • % Done changed from 20 to 100

Thanks, closing.

Also available in: Atom PDF