What's new
[XB] Quizzes

[XB] Quizzes [Paid] 2.0.8 Beta 6

No permission to buy ($75.00)
Painbaker updated [XB] Quizzes with a new update entry:

2.0.8 Beta 1

This update brings a new question type, easier ways to give feedback with quiz ratings, and view counters to see what’s popular. A few helpful tweaks have also been made to improve your experience while taking and finishing quizzes.

See the full details below:

✏️ Changes:​

  • General code refactor
  • Show unanswered question count on quiz completing confirm popup

✨ New Features:​

  • Added multichoice question type
  • Added quiz...

Read the rest of this update entry...
 
Hi @Painbaker ,

If I could ask you to add a feature for Quiz.
AI has now reduced the number of visits to websites. For this reason, we need to make our sites interesting. while doing this, but at least we need to make a contribution to the site. for example, can an option such as automatic promotion to a group "for x amount of time" be added to users who have scored higher than X points in a quiz?
I have an Excel website. at least by increasing the time spent on my site a little, I will increase the time spent by the participants on the site. if they pass a certain score, they will benefit from VIP privileges on the site.

what do you think?
 
  1. Is it possible to set a minimum time to complete a quiz? For example, users cannot click the finish button until 30 minutes have passed.
  2. Is it possible to set once you start the quiz, you are required to NOT leave the current browser/tab otherwise the quiz will end and you will fail!
 
Last edited:
Hi @Painbaker ,

If I could ask you to add a feature for Quiz.
AI has now reduced the number of visits to websites. For this reason, we need to make our sites interesting. while doing this, but at least we need to make a contribution to the site. for example, can an option such as automatic promotion to a group "for x amount of time" be added to users who have scored higher than X points in a quiz?
I have an Excel website. at least by increasing the time spent on my site a little, I will increase the time spent by the participants on the site. if they pass a certain score, they will benefit from VIP privileges on the site.

what do you think?
I can add a user criteria for the overall quiz score so that it can be used in user group promotions

  1. Is it possible to set a minimum time to complete a quiz? For example, users cannot click the finish button until 30 minutes have passed.
  2. Is it possible to set once you start the quiz, you are required to NOT leave the current browser/tab otherwise the quiz will end and you will fail!
I believe so.
If you are interested in sponsoring the addition of these features, contact me via DM.
 
I deleted some users who had reacted to a quiz and their reactions are still appearing. How can I delete them?

1753355129932.png


And in My quizzes page I get this error with the button "Add quiz"

(Code: invalid_action, controller: OzzModz\Quiz:QuizItem, action: AddQuiz)

1753365575816.png
 
Last edited:
I've also noticed that after deleting several quizzes (and their questions), the total number of questions in the widget isn't updated. I've tried a rebuild, but the total number of questions that were there before deleting the quizzes still appears.
 
Thank you for your concern.
So with this, will it stay in that group permanently?
Is it possible to be added to a group for a certain period of time?
Users will remain in the group as long as the criteria is met. User group promotions do not support time-limited assignments.


I've also noticed that after deleting several quizzes (and their questions), the total number of questions in the widget isn't updated. I've tried a rebuild, but the total number of questions that were there before deleting the quizzes still appears.
The counters in the widget are updated by a cron scheduler

And in My quizzes page I get this error with the button "Add quiz"

(Code: invalid_action, controller: OzzModz\Quiz:QuizItem, action: AddQuiz)
Will be fixed in next update

I deleted some users who had reacted to a quiz and their reactions are still appearing. How can I delete them?
XF does not rebuild the content reactions cache when user is deleted.
If someone else reacts again, the deleted user name will be removed from the reacted user list.
 
@Painbaker I've also noticed that if a user is deleted and then one of their quizzes is reassigned, the questions in that quiz appear assigned to the deleted user instead of the new user. When the quiz is reassigned, shouldn't its questions also be reassigned?

I think it would also be helpful if users could save questions when taking a quiz so they could review them later, sort of like bookmarked questions.
 
Last edited:
@Painbaker I've also noticed that if a user is deleted and then one of their quizzes is reassigned, the questions in that quiz appear assigned to the deleted user instead of the new user. When the quiz is reassigned, shouldn't its questions also be reassigned?

I think it would also be helpful if users could save questions when taking a quiz so they could review them later, sort of like bookmarked questions.


Some Leaderboard statistics aren't updating. A user took a quiz hours ago, and it appears in the statistics for users who have taken it the most, but the updated best score isn't shown.
 
@Painbaker I've found another bug with the status prefix displayed below questions after they've been answered. Here's how to reproduce the bug:

1) Start a quiz and answer the question correctly.
2) On the same screen, click Edit and change something in the question explanation removing the format (for example italic font style)
3) Return to the quiz and see that the status prefix has changed from Correct to Incorrect, even though the answer is displayed with a green background.

It happens sometimes, not always
 
Last edited:
@Painbaker I've also noticed that if a user is deleted and then one of their quizzes is reassigned, the questions in that quiz appear assigned to the deleted user instead of the new user. When the quiz is reassigned, shouldn't its questions also be reassigned?
No, the quiz reassignment is only intended to reassign the quiz.

I will add this as an option to reassign questions too (but disabled by default, since the idea is that other users can add their questions to other people's quizzes, and there is also a permission allowing users to edit other people's questions in their own quiz)

Some Leaderboard statistics aren't updating. A user took a quiz hours ago, and it appears in the statistics for users who have taken it the most, but the updated best score isn't shown.
What do you use as the best result for leaderboard?

1754068861345.png
Here, by default, the old result is always higher if the new result is equal to the old one.


@Painbaker I've found another bug with the status prefix displayed below questions after they've been answered. Here's how to reproduce the bug:

1) Start a quiz and answer the question correctly.
2) On the same screen, click Edit and change something in the question explanation removing the format (for example italic font style)
3) Return to the quiz and see that the status prefix has changed from Correct to Incorrect, even though the answer is displayed with a green background.

It happens sometimes, not always
I can't reproduce this. What type of questions does this happen with, and is randomization enabled? Does this happen only with guests or with registered users as well?
 
Painbaker updated [XB] Quizzes with a new update entry:

2.0.8 Beta 3

This is a beta version and may contain bugs or incomplete features.
Please take a full backup of your site and database before upgrading.

✨ New Features:​

  • Added option to reassign questions when reassigning quiz
  • Added user criteria: quizzes created, quizzes completed, quiz score
  • Added ability to bookmark questions

🪲 Fixes:​

  • Fix: incorrect column was fetched in the method that retrieves question IDs from...

Read the rest of this update entry...
 
@Painbaker

ErrorException: Template error: [E_USER_WARNING] Template public:bookmark_item_ozzmodz_quiz_question is unknown src/XF/Template/Templater.php:781

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/home/xxxxx/...', 781)
#1 src/XF/Template/Templater.php(781): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(1766): XF\Template\Templater->getTemplateData('public', 'bookmark_item_o...')
#3 src/XF/Bookmark/AbstractHandler.php(240): XF\Template\Templater->renderTemplate('bookmark_item_o...', Array)
#4 src/XF/Entity/BookmarkItem.php(174): XF\Bookmark\AbstractHandler->renderMessageFallback(Object(XF\Entity\BookmarkItem))
#5 src/XF/Template/Templater.php(1282): XF\Entity\BookmarkItem->renderMessageFallback()
#6 internal_data/code_cache/templates/l2/s14/public/bookmark_macros.php(135): XF\Template\Templater->method(Object(XF\Entity\BookmarkItem), 'renderMessageFa...', Array)
#7 src/XF/Template/Templater.php(921): XF\Template\Templater->{closure:internal_data/code_cache/templates/l2/s14/public/bookmark_macros.php:92}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#8 internal_data/code_cache/templates/l2/s14/public/account_bookmarks.php(80): XF\Template\Templater->callMacro('bookmark_macros', 'row', Array, Array)
#9 src/XF/Template/Templater.php(1799): XF\Template\Templater->{closure:internal_data/code_cache/templates/l2/s14/public/account_bookmarks.php:4}(Object(SV\LazyImageLoader\XF\Template\Templater), Array, NULL)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_bookmar...', Array)
#11 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('XF:Account\\Book...', 'public:account_...', Array)
#13 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#15 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#16 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#17 src/XF.php(806): XF\App->run()
#18 index.php(23): XF::runApp('XF\\Pub\\App')
#19 {main}
 
@Painbaker I've found another bug with the status prefix displayed below questions after they've been answered. Here's how to reproduce the bug:

1) Start a quiz and answer the question correctly.
2) On the same screen, click Edit and change something in the question explanation removing the format (for example italic font style)
3) Return to the quiz and see that the status prefix has changed from Correct to Incorrect, even though the answer is displayed with a green background.

It happens sometimes, not always

@Painbaker The bug persists with the last update

Is possible to add the bookmark option in My results tab?
 
Last edited:
ErrorException: Template error: [E_USER_WARNING] Template public:bookmark_item_ozzmodz_quiz_question is unknown src/XF/Template/Templater.php:781
Sorry for wait
Fixed in last version

@Painbaker The bug persists with the last update
I cannot reproduce this
Perhaps in your case, the current answer data differs at the stage of these two checks even that they are referring to the same instance

I have uploaded the debug version for you, please try it and show what you see when you encounter this problem:


1754782083509.png


Version without debugging:
 
Last edited:
Back
Top