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

Store Quiz Score In database

  • sanjit
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 5 months ago #1272 by sanjit
Store Quiz Score In database was created by sanjit
Hi all,

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

Thanks...

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #1273 by JohnSmith
Replied by JohnSmith on 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

Please Log in or Create an account to join the conversation.

  • sanjit
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 5 months ago #1274 by sanjit
Replied by sanjit on 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

Please Log in or Create an account to join the conversation.

More
12 years 5 months ago #1276 by tom
Replied by tom on 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.
The following user(s) said Thank You: sanjit

Please Log in or Create an account to join the conversation.

More
12 years 4 months ago #1352 by JohnSmith
Replied by JohnSmith on 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
The following user(s) said Thank You: sanjit

Please Log in or Create an account to join the conversation.

  • sanjit
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 4 months ago - 12 years 4 months ago #1364 by sanjit
Replied by sanjit on 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
Last edit: 12 years 4 months ago by sanjit.

Please Log in or Create an account to join the conversation.

Moderators: JohnSmith
Time to create page: 0.889 seconds
Copyright © 2026 The Xerte Project.
Xerte logo Apereo logo OSI Logo