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!!

Kindred

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

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

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.
All Quizzes can be downloaded here

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

All Quizzes can be downloaded here

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.
All Quizzes can be downloaded here

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
All Quizzes can be downloaded here

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

Advertisement: