How to Create 'Quiz' and 'Lessons' Seperately

tshanmuganathan
Hi Team, We are using the full Drupal Opigno module. We would like to create lessons and Quiz in order list them seperately for our users for easy access. Whenever we create a content of type Quiz (say true / false question), and associate it with a specific group. we are unable to access that quiz at all. But When we create a lesson and then add quiz, it displays in the panel. On the other hand, even though we create a lesson of Type 'Theory' with 'ZERO' Questions in it, a panel is displayed with the below information which is irrelevant. Type: Theory Start lesson Questions: 0 Attempts allowed: Unlimited Available: Always Pass rate: 75 Passed: X We really couldn't achieve creating 'lessons' and 'Quiz' seperately. Any ideas / suggestions are really appreciated. Regards, Shan.
tshanmuganathan

Opigno Experts / Developers,

Opigno Experts / Developers, Can one of you, please help me answer my question. Thanks, Shan.
Profile picture for user James Aparicio
James Aparicio

Hi tshanmugnathan,

Hi tshanmugnathan,

 

"We are using the full Drupal Opigno module. We would like to create lessons and Quiz in order list them seperately for our users for easy access."

 

A quiz and a lesson are technically the same content type.  You can differentiate them with the opigno quiz type in the content type (quiz, theory, mix). Then inside you can add steps (questions slides etc)

To customize what displays in the quiz/lesson node view you can look at the template node--quiz.tpl.php.

The opigno_quiz_app ads a button for quizzes/lessons with a view that lists all quizzes/lessons of a course. You can add another button, duplicate the view, and filter both of them based on that type. 

 

  • "Whenever we create a content of type Quiz (say true / false question), and associate it with a specific group. we are unable to access that quiz at all. But When we create a lesson and then add quiz, it displays in the panel."

Not sure i understood very well, but anything that you add inside a (leson/quiz) are considered questions/steps and normal users cannot access. There is a permission called "View questions outside quiz". 

Questions/slides need to be inside quizzes/lessons otherwise you cannot respond to them.

Regarding access to the quiz/lessons. If a quiz/lesson is not associated to any quiz, normal user can access take it. If its associated to a public course, normal user can access them, if they only to a semi-public course, only after the user registers to the course can users access it. If its associated to a  course that is private, only users that are part of the course can access it.

 

BR

 

Opigno User Provisioning REST API/Endpoint

Hi Sir/Ma'am, We have to do Opigno user provisioning in our Application. I am searching user CRUD Opigno REST endpoint/api but not able to find it. Can you please send me the link from where I will get the Opigno REST endpoint/api. Regards, Sagar Tarle Email: [email protected]
Profile picture for user James Aparicio
James Aparicio

Hi Sagar,

Hi Sagar,

 

Depends on what version of Opigno you are looking at.

For drupal 7 you will need to install the module services:

https://www.drupal.org/project/services

For drupal 8 you should install the module restui:

https://www.drupal.org/project/restui

 

Best regards

Hi,

Hi, I am searching for an Opigno Rest API document that describes the request URL, expected payload, response etc. for creating/updating/deleting users to/from Opigno in JAVA using endpoint call. I am not able to understand what do you mean install the module. Is there any documentation for REST API for Opigno user CRUD in JAVA? Kindly send me the link or guide me to create a user in Opigno using calls to the Opigno API in Java. Regards, Sagar Tarle Email: [email protected]
Profile picture for user James Aparicio
James Aparicio

Hi sagar, As i explained it

Hi sagar, As i explained it depends on what version of Opigno you are talking about. Drupal 7 or Drupal 8. There is nothing custom regarding this for Opigno. The user rest apis are available for Drupal 7 when installing the module services.https://www.drupal.org/project/servicesSome documentation and examples including java:https://www.drupal.org/node/109782https://www.drupal.org/node/113697 The user rest api in Drupal 8 is part of core. But you should install the REST UI module so you can manage it.https://www.drupal.org/project/restuiHere, an example:https://areatype.com/blog/register-user-drupal-8-rest-api Best regards

Opigno Password Encryption Decryption In java

Hi there, We are using Opigno drupal 7 password encryption and decryption in our application. In frontend, we are using Drupal PHP lib as a plugin for Opigno encryption and decryption. Now we have to do the auto user provisioning in the application for that we have to use the same password mechanism. Can you provide the Java code that is encrypting and decrypting the password as in Drupal PHP code? Regards, Sagar T, [email protected]
hozey

Certificate Error

Hi, Am having issues downloading the certificates. Giving me an error "HTTP ERROR 500" Site currently unable to handle this request. Also looking for a tutorial to add a multiple choice quiz at the end of the course.