News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

SMF Quiz

Started by Diego Andrés, February 18, 2009, 01:08:19 PM

Previous topic - Next topic

Jotade29

Quote from: Diego Andrés on January 06, 2022, 03:09:31 PM
Quote from: Ivan. on January 06, 2022, 01:49:12 PMquiz_session as you have told me, I have entered the column id_session

Except I said it'd be the id_quiz column.
I checked it yesterday and it appears it's the only id_quiz column without a default value, in the quiz_session table.

Might be worth trying

Hi Diego Andrés. Thank you very much for answering, you dont need to check anything... That error jumps out at me because im creating questions without having created a quiz before. I think that if well builds error logs were made, developers would save (dolores de cabeza, que no sé decirlo en inglés)  :P

Thanks again!!
Quote from: Diego Andrés on August 12, 2023, 02:20:18 AMI'm afraid convincing Jotade to upgrade to SMF 2.1 will require bigger effort than your work sanitizing Unicode characters  :laugh:

Kindred

FYI, Ivan  -- "headache" is the english translation.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Jotade29

Hello @Diego Andrés , I havee found a heavy bug. When a user uploads a quizz, it is automatically activated without going through the review status, likewise if I desactivate a quizz, users can continue to see it. Thank you.

Quote from: Kindred on January 07, 2022, 11:57:31 AMFYI, Ivan  -- "headache" is the english translation.

Learn english with Kindred, hahahaha
Quote from: Diego Andrés on August 12, 2023, 02:20:18 AMI'm afraid convincing Jotade to upgrade to SMF 2.1 will require bigger effort than your work sanitizing Unicode characters  :laugh:

Dave J

Quote from: Jotade29 on January 07, 2022, 09:23:26 PMHello @Diego Andrés , I havee found a heavy bug. When a user uploads a quizz, it is automatically activated without going through the review status, likewise if I desactivate a quizz, users can continue to see it. Thank you.

Quote from: Kindred on January 07, 2022, 11:57:31 AMFYI, Ivan  -- "headache" is the english translation.

Learn english with Kindred, hahahaha

I'm not sure which version of the quiz you are using but I have made changes to it over the last year and you can find what I've done to it on my website. All the files you need are there to be able to be downloaded,including quizzes an all you need to do is register and make 2 posts on the site and you can download what you like from that section.

To those who might think I cannot do that the original owner of the quiz code 'quiz-modder' made a post here https://www.simplemachines.org/community/index.php?msg=4027071 expalining that

QuoteI was happy for anyone to take it forward with no caveats from me
.

So I have done that and I have made some changes and it installs on 2.0.18 with no errors and a clean install.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Dave J

Hi Diego

As promised, here is a list of issues that need resolving. I should add at this point that the quiz works without errors apart from the one mentioned in the fourth issue, which doesn't break anything it's just annoying.

The first issue is that the images are not showing in the Categories. It should look like this

caticons2.png

but it looks like this.

caticons1.png

The second issue is related to the creation of quizzes.

In the first image, you see the current default quiz creation page when you first go to create a quiz.

create quiz1.png

The second image is what the layout should look like, so you can add images to the quiz. The only way to get to see the second layout is by adding 1 question then click on 'Done' and then go to 'Admin>Quiz>Quiz>Quizzes'. Click on the edit icon for that quiz on the RHS, a little pen/pencil (Image 3), when the next window opens click 'Update Quiz and Add Questions' you'll now see that the option to upload an image in to the quiz is present.


create quiz1.png


Notice how the icons are out of the box on the RHS

create quiz2.png

Third issue

On the forum Quiz page you'll see on the left side the box with the 'New Quizzes' notice how the icons are squashed.

new quizzes icon.png

Fourth issue

'Admin>Quiz>Quiz>Quizzes' when on this page you have the ability to create quiz packages by selecting radio button next to the quiz/quizzes. Once you have seleted the quizzes you want to package, then go to the bottom of the page and fill out the required info in the boxes. Once that is doen you click on 'Package Quiz and it creates the quiz package. Following the creation of the package we get an error in the error log as seen below.

package error.png

Finally, not so much of an issue, but something I feel should be added.

On the forum quiz page, there is a button on the RHS 'User Quizzes'. When you click on this button, it opens a page that has all the quizzes that person has created. At the bottom of that page is another button that says 'Add New Quiz'. If the user has created a lot of quizzes, then that button is a long way down the page, and you have to scroll down to get to it.

I think the button should move to the top of the page, which would stop all the scrolling. To give you an idea, on my site because I was the one who imported all the quiz packages I have to scroll through 550 lines of quizzes before I get to that button again. An alternative would to be create different pages with 20 quizzes to a page. I'm not sure which would be the easiest.

Add New Quiz.png

That's it. If you get this far then thanks for reading  ;D

If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Dave J

Diego,

Here is another issue that arises with guests. I have permissions set for guests to see the quiz but not play the quizzes.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

FrizzleFried

I heard a rumor this Quiz mod was going to be updated for 2.1.x?   If it ever is... I'll be re-installing it.  It was pretty popular on my 2.0.x site...

Diego Andrés

Yes indeed.
Though my time has been very limited so I've decided on first releasing an intermediate version with bug fixes.
That should be happening around next month, and hopefully a bigger update later this year.

Thanks to Dave of course, he's been helping and offering help with this.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Dave J

Hi Diego,

Another issue to look at if you're not already.

The 'Information Board' at the foot of the main Quiz page has the date aligned similar to a list, this then makes the quiz notices very spaced out in the list. To resolve this I edited:

Themes>default>SMFQuiz2.1.template.php

Around line 972

Find:
<td align="left" valign="top" class="nobr" >' , date("M d Y H:i", $infoboardRow['entry_date']) , '</td>
Replace with:
<td align="left" width="12%" valign="top" class="nobr" >' , date("M d Y H:i", $infoboardRow['entry_date']) , '</td>
See attached images of the changes from before and after

NOTE: For those using the SMF2.0 version, that you may have downloaded from me, you can also change the code to do the same.

In SMF2.0 you will need to edit Themes>default>SMFQuiz.template.php
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Shades.

I know I for one am looking forward to this mod for 2.1.1! Between Dave and I, I was able to get it working on my old 2.1.19 forum but i'm on 2.1.1 now and gave up! :o  But I still have it on my old database and testing forum if yall need any testing done let me know! ;)
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

kingkingston

Is this safe to use or not currently?

Dave J

Quote from: kingkingston on October 22, 2022, 05:10:54 AMIs this safe to use or not currently?

It's safe to use on SMF2.0 but not 2.1.2.

You should know that in the very near future a new version will be released which works with SMF2.1.2. I know Diego said that back in April, but he has been working on it and it's nearly ready for RC1.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Diego Andrés

Yes unfortunately my time has been limited and that's why it's taken a bit long, but should be available soon.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

2.0 - 31 October 2022
  • New Feature Compatible with SMF 2.1.x
  • Improvement Now using hooks.
  • Improvement Layout improvements.
  • Improvement Code improvements.
  • Bug Fix General bug fixes.

At this time I'll only focus on fixing bugs.
There are no plans to develop the 2.0 version any further, it's feature locked.
In the future a new version (3.0) could contain new features and improvements, so feel free to leave suggestions, just know they aren't getting added any time soon.
Also the repo is now public so feel free to contribute in any way you want to this 2.0 version.

Thanks to @Dave J and @Chen Zhen for helping out

SMF Tricks - Free & Premium Responsive Themes for SMF.

Dave J

Quote from: Diego Andrés on October 31, 2022, 01:23:31 AM2.0 - 31 October 2022
  • New Feature Compatible with SMF 2.1.x
  • Improvement Now using hooks.
  • Improvement Layout improvements.
  • Improvement Code improvements.
  • Bug Fix General bug fixes.

At this time I'll only focus on fixing bugs.
There are no plans to develop the 2.0 version any further, it's feature locked.
In the future a new version (3.0) could contain new features and improvements, so feel free to leave suggestions, just know they aren't getting added any time soon.
Also the repo is now public so feel free to contribute in any way you want to this 2.0 version.

Thanks to @Dave J and @Chen Zhen for helping out

Thanks very much Diego.

For those who are interested in the mod you can download more than 500 quizzes form my site, the link is in my signature.
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Diego Andrés

That's for sure, I even added a link in the readmes for good measure  ;D

SMF Tricks - Free & Premium Responsive Themes for SMF.

Dave J

Hi Diego,

The 'Disputes' button issue is still not fully resolved as the 'Delete Quiz Dispute' (1) button is still not working, but I think we can do with out it.

The 'Respond to Dispute' (2) button image (to the far right of a dispute) is sufficient to let the reporter know what has been done about their dispute.

If the responder just uses that button, fills out the text box and presses the 'Send and Remove' (3) button this will kill two birds with one stone, so to speak.

Apart from item 1, I have tested the other buttons and they work and the reporter does get a PM reply to their dispute.

I'm not sure about anyone else but I don't see the point in deleting a dispute without letting the dispute reporter know what action has been taken.

Maybe something to think about for a future update.

That reminds me I must edit that question in 'Pot Luck ' ;)
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Dave J

Shades has reminded me of an issue with the character limit of the quiz titles.

Way back in this thread we realised that 255 characters is not enough for some questions. (There is at least one question in my question packs that has more than 255 characters)

If you have already installed the latest version or even if you have an old version you can change the character limit as follows.

First thing to do is backup your database

Go to your sites cPanel, or whatever you have, go to 'phpMyAdmin', select your database at the top of the left column.

In the right hand panel look for the table 'smf_quiz_question', see attachments

Now click on 'Structure'

In the next window on line 3 you should see '3   question_text' at the end of that line click on 'Change'.

Now change the value 255 to 512 and then click on 'Save'

You should now have no problems importing, or creating quizzes with long question titles.

Regards

Dave
If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Steve

Quote from: Dave J on November 03, 2022, 04:18:24 AMFirst thing to do is backup your database
Bravo Dave.  :)
DO NOT pm me for support!

Dave J

SMF2.1.2
PHP8.0
MySQL Database
Server version: 5.7.40-cll-lve

Mods installed

1   Avatars Display Integration   1.5.3
2   Contact Page   7.0a
4   Track IP on ip-adress.com   1.2   
5   Stop Forum Spam   1.3   
6   Post and PM Inline Attachments   7.08   
7   EU Cookie SMF2.1   2.1   
8   SMF Quiz   2.0   
9   Remove "Last Edit"   1.2   
10   Members Online Today   1.0
11   Optimus   2.10.6   
12   Ultimate Menu   2.0.2   
13   Welcome Topic Mod   2.3b
14   EhPortal   1.39
15   Forum Width Setting   1.2
17   Simple Audio Video Embedder   7.0
19   Global Headers Footers   2.1a


I have been asked to install the quiz and quizzes on the friends website. The quiz installs fine and there are no errors either in the server log or the smf log.

I can import quizzes no problem with no errors, but as soon as I go to play a quiz I get the errors as seen in the attachments.

Can anyone help please?

Image 'nullerror1' shows what the page looks like when the quiz is selected to be played, there is no quiz info in it at all, I'm guessing this is because of the null error.

I should add that I have installed this on a clean install of 2.1.2 so I know it works OK. I was wondering if it was related to the fact that they started their site on phpBB then went to SMF2.0 now on SMF2.1.2

I have already had all the mods uninstalled and have replaced the 'Sources' and 'Themes' folders with those of the latest full 2.1.2 install package

If you want quizzes to add to the new SMF2.1 quiz mod go here . There are also walkthroughs in the forum to explain how to install them and other tips.

Advertisement: