The place for more technical questions for those who want to create new pagetypes or bespoke functionality.

Store Quiz Score In database

  • sanjit
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
12 jaren 5 maanden geleden #1272 door sanjit
Store Quiz Score In database werd gestart door sanjit
Hi all,

Do you have any idea on how to store the final quiz scores in database.

Thanks...

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 5 maanden geleden #1273 door JohnSmith
Beantwoord door JohnSmith in topic Store Quiz Score In database
You would probably have to either add code to the page types or intercept the Scorm tracking api calls, effectively creating your own mini Scorm player...

You can see the code that you would have to work with here github.com/thexerteproject/xerteonlineto...evelop/modules/xerte in both of the scorm folders

John

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • sanjit
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
12 jaren 5 maanden geleden #1274 door sanjit
Beantwoord door sanjit in topic Store Quiz Score In database
Thanks John,

I would like to know from where does "You scored 1 / 2" render. I mean which file.


Thanks
Sanjit

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 5 maanden geleden #1276 door tom
Beantwoord door tom in topic Store Quiz Score In database
That is done in the following file
modules/xerte/parent_templates/Nottingham/models_html5/quiz.html

At line 190.

The score is in variable myScore, the number of questions in quiz.questions.length.
De volgende gebruiker (s) zei dank u: sanjit

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Meer
12 jaren 5 maanden geleden #1352 door JohnSmith
Beantwoord door JohnSmith in topic Store Quiz Score In database
I wouldn't mess around too much with those page model files if you can help it Sanjit, otherwise you end up with files that can't be overwritten with the latest bugfixes, etc.

Otherwise when a new version of quiz.html is release and if you wish to use any of the new features or bug fixes then you will need to manually merge your changes into the new file.

You could also intercept what is tracked back via Scorm by modifying one of these xttracking files

github.com/thexerteproject/xerteonlineto...ction%28&ref=cmdform

John
De volgende gebruiker (s) zei dank u: sanjit

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

  • sanjit
  • Onderwerp Auteur
  • Offline
  • Nieuw lid
  • Nieuw lid
Meer
12 jaren 5 maanden geleden - 12 jaren 5 maanden geleden #1364 door sanjit
Beantwoord door sanjit in topic Store Quiz Score In database
Thanks for the update John.. I will look into scorm. I have another Doubt. I integrated Xerte with my application. I used integration.php file.The username, firstname and lastname are passing correctly from my application to Xerte. But when i try to create or edit an object it shows Session Id not Set. What is the matter.

Thanks
Sanjit
Laatst bewerkt 12 jaren 5 maanden geleden door sanjit.

Graag Inloggen of een account aanmaken deelnemen aan het gesprek.

Moderators: JohnSmith
Tijd voor maken pagina: 0.138 seconden
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo