27 posts / 0 new
Last post
major
Offline
Last seen: 3 years 7 months ago
Joined: 02/15/2014
Creating a new Tool to Courses

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?

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
Hi major,

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
Offline
Last seen: 4 years 7 months ago
Joined: 09/25/2013
Hi major.

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
Offline
Last seen: 3 years 7 months ago
Joined: 02/15/2014
Hey,

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-si...

cogicube
Offline
Last seen: 3 years 2 weeks ago
Joined: 06/12/2014
Hi,

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
Offline
Last seen: 6 days 9 hours ago
Staff
Joined: 09/25/2013
Bonjour

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
Offline
Last seen: 3 years 2 weeks ago
Joined: 06/12/2014
Bonjour,

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
Offline
Last seen: 3 years 2 weeks ago
Joined: 06/12/2014
lien pour télécharger le module

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

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
Hi cogicube,

Hi cogicube,

What version of Opigno are you using?

Best regards

cogicube
Offline
Last seen: 3 years 2 weeks ago
Joined: 06/12/2014
Hi James

Hi James I am using opigno 1.11.0

Best regards

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
Students cannot access "node/

Students cannot access "node/%/webinars", is that it?

Best regards

cogicube
Offline
Last seen: 3 years 2 weeks ago
Joined: 06/12/2014
Yes. All the other roles can

Yes. All the other roles can access.

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
If you go to group/node/%

If you go to group/node/%/admin/permissions, is the permission set for students?

cogicube
Offline
Last seen: 3 years 2 weeks ago
Joined: 06/12/2014
I set the permission for

I set the permission for students and it's work !

Merci beaucoup !

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
With the latest visibility

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
Offline
Last seen: 3 years 2 weeks ago
Joined: 06/12/2014
In fact, the problem is a

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.

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
Thank you for contributing to

Thank you for contributing to Opigno,

Keep us posted.

Best regards

cogicube
Offline
Last seen: 3 years 2 weeks ago
Joined: 06/12/2014
Everything works but if I

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

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
What permission is this

What permission is this "moderate webinars"? og Start meetings , configure bbb?

Jack
Offline
Last seen: 9 months 2 weeks ago
Joined: 10/15/2018
Hello,

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!

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
Hi major,

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

techseria
Offline
Last seen: 11 months 2 weeks ago
Joined: 08/26/2017
Hi James Aparicio,

Please give me information for edit tools name in which file?

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
Hi techseria,

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
Offline
Last seen: 9 months 2 weeks ago
Joined: 10/15/2018
Hi James

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!

James Aparicio
James Aparicio's picture
Offline
Last seen: 1 week 6 days ago
Staff
Joined: 10/30/2013
Hi Jack,

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

gubundo
Offline
Last seen: 4 years 3 months ago
Joined: 05/05/2015
BBB in OPIGNO :for newbie

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
Offline
Last seen: 1 year 8 months ago
Joined: 01/15/2018
RE: OPIGNO DEVELOPMENT FROM SCRATCH.

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.