Creating a new Tool to Courses

major

Hi, I'm developing a new Video Conference-tool for our Opigno-platform by using BigBlueButton (https://drupal.org/project/bbb). I have already made all the configurations that are needed to make it work, but now I want to implement it to Opigno. I would like to make it work as one of the Course-tools (such as Lessons, Polls, Forum etc..)

Can you give me some tips that which are the files that I should look into first? I was planning to use one of the existing tools as a framework and copy/modify the code from there. I quess that would be the easiest way?

Profile picture for user James Aparicio
James Aparicio

Hi major, You just have to implement hook_opigno_tool(). You can check the code of one of the apps for an example. Can you share this Video Conference tool with the community afterwards? Best regards
wadmiraal

Hi major. How's it going ? Do you need any more help, any pointers ? Don't hesitate to ask us, we'll be glad to help. Kind regards
major

Hey, thanks for the help, I believe I was finally able to do it. :) Users can now use their new Webinar-tool. This module of course requires media-server that is running BigBlueButton. I used the code from the Opigno Poll App and changed few lines here and there. https://dl.dropboxusercontent.com/u/64534703/opigno_bbb_app.zip Here is .zip-file of the module. Feel free the check it and give comments. There might be lots of things to fix, since this is the first module I have ever done/modified. And related to my beginner-level coding skills... I just made a new topic about development of Quiz-module https://www.opigno.org/en/forum/developping-opigno/all-quiz-questions-single-page
Profile picture for user James Aparicio
James Aparicio

Hi major, Thank you very much, we will look into it and most probably add it to Opigno. We will let you know what/if we change something. Thank you once again, best regards James Aparicio
cogicube

Hi, Sorry but it does not work. Many things are missing, for example hook_menu. I took some of the code's James Aparicio (WebEx) and I adapted to bbb. It seems to work but I have problems with OG access. Teachers can access and create meetings, but students can't access them (access denied). I can put module online, if someone could break the deadlock ... In French Salut Désolé mais ça ne fonctionne pas. Beaucoup de choses manquent, par exemple le hook_menu. J'ai repris une partie du code de James Aparicio et je l'ai adapté à bbb. Il a l'air de fonctionner mais j'ai des problèmes de droits avec OG. Les professeurs peuvent accéder et créer des meetings mais les étudiants ne peuvent pas y avoir accès. Je peux mettre le module en ligne, si quelqu'un pouvait débloquer la situation...
axel

Bonjour Merci de votre intérêt pour Opigno Si vous acceptez que le module soit ensuite partagé avec la communauté, nous pouvons vous aider à finaliser celui-ci. Il faudrait effectivement dans ce cas nous faire parvenir votre code (soit via le forum soit par email info[*arobase*]opigno[*point*]com). Cordialement,
cogicube

Bonjour, Bien sur, demain je mets le lien pour le télécharger Hi, Of course, tomorrow I'll put it online for download.
cogicube

Hi, Here is the link for download the module https://www.dropbox.com/s/c6mh85j4mxfx6qe/opigno_bbb_app.zip There are problems of access for the students... and I can't solve it :( Serge
Profile picture for user James Aparicio
James Aparicio

With the latest visibility changes, there are now per groups og permissions. What happens is that the default og permissions are only set for new groups. So what happened is that the course was created before the default og permissions were set.

We are adding the interface to check and change the per group (og permissions) in our next release. If you want to add it in the meanwhile inside the opigno_simple_ui.module, at the bottom of the function "opigno_simple_ui_menu_alter" add the following.

 

if (isset($items['group/%/%/admin/permissions'])) {// Per group og permissions.$items['node/%/group/permissions'] = $items['group/%/%/admin/permissions'];$items['node/%/group/permissions']['title arguments'][1] = 'node';$items['node/%/group/permissions']['title arguments'][2] = 1;$items['node/%/group/permissions']['access arguments'][1] = 'node';$items['node/%/group/permissions']['access arguments'][2] = 1;$items['node/%/group/permissions']['page arguments'][1] = 'node';$items['node/%/group/permissions']['page arguments'][2] = 1;$items['node/%/group/permissions']['type'] = MENU_LOCAL_TASK;$items['node/%/group/permissions']['weight'] = 10;}

 

This will add a new interface inside the group, under users. A new tab "Permissions for group xxx" will appear.

 

Best regards

cogicube

Everything works but if I give permission to moderate webinars for everyone, students can moderate webinars. If I delete permission for all members, so the teachers can not do although I gave them permission in OG. I wish that teachers can moderate the webinars but not students. Thank you for your help
cogicube

In fact, the problem is a permissions problem on the bbb module. I'll see if I can override the BigBlueButton menu by setting a condition on the permissions of the students with the hook_menu_alter. I patched the opigno_simple_ui.module with your code. It's very easy now to attribute permissions for a course. Thank for your help, I continue working on this module.
gubundo

Hi James I am a new user of OPIGNO, and would like to add BBB functions into it. Well I can see through your posts that a kind of module of BBB has been developed, and some parameters need to be set thoroughly in order to make it run. My skills in coding are nonexistent, so is there any simple process a beginner can follow in order to add BBB in OPIGNO, on the basis of the work that has been done so far ? thanks !
Zwelikays

Hello im pleased to meet you all im in the process of making a new lms but i dont know how one can perhaps acquire free content for the site. Are they straight forward places where one can get free or fremium content or negotiate for it. Id love to hear from you im a bit of a newbie to all this. goodday.
Profile picture for user James Aparicio
James Aparicio

Hi techseria,

 

We have a hook for that hook_opigno_tool_alter(&$tools) so that you dont have to hack any files

 

Best regards

Jack

Hello, Could you please share with me the Opigno Poll App files that you edited? The links ". https://dl.dropboxusercontent.com/u/64534703/opigno_bbb_app.zip" is not working. Thanks!
Jack

Could you please share the hook_opigno_tool_alter? I want to add a tool to the default course tools. Also, please let me know where to place that file. Any detailed instruction will be very helpful, sine I'm not a Drupal developer. Thanks!
Profile picture for user James Aparicio
James Aparicio

Hi Jack,

If you want to create a new tool, you can look at any of the already implemented hook_opigno_tool. hook_opigno_tool_alter to to alter an existing one.

All tools implement this hook. For example look at opigno_poll_app_opigno_tool and do the same for yours yourmodulename_opigno_tool.

You an see the documentation in the file opigno.api.php

 

Best regards

davoud

i want to download this module but not found