News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

SMF Quiz

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

Previous topic - Next topic

Burt

Quote from: davejo on October 07, 2013, 07:52:21 AM
Quote from: webewitch on October 07, 2013, 06:14:45 AM
Quote from: webewitch on September 16, 2013, 08:06:27 AM
QuoteQuote from: webewitch on August 26, 2013, 12:05:20 PM
I'd like to allow my members to be able to replay the quizzes after a month -

I know I can change that in Settings with 'Session Replay Time (minutes)' but is there any way I can change all of the quizzes' Play Limits globally rather than one by one? (I have 555 quizzes so doing it individually would be a pain)
At the moment I don't remember exactly (it's a while i don't touch the code) and I can't check, but it should be easy to create a scheduled task to do the same thing once per month.

I'll try to remember, if you don't see anything before next week, feel free to bump the topic.
Bump  :)
Bumpity bump  :)

BACKUP your database before carrying out the following. I will not be held responsible for any failures of your site. (Note I have tested this on my own site and it works)


If you have access to 'phpMyAdmin' for your database then open it and click on 'SQL' at the top of the page insert the following into the box

UPDATE smf_quiz
SET play_limit = REPLACE(play_limit, 1, 4);


Look at the screenshot below for how to change the values you want.

Once your happy with the new value then press 'Go' on the right-hand side.

I have looked to see if there is a wildcard to substitute for the existing value so you can do them all at the same time but I can't find anything (I'm guessing someone here might have a better solution).

If you have different amounts in the current value then you will need to run the query for each value.

I just follow your instruction and double check the database and all play_limit entries are now set to 4. But we still cannot play the quizzes more than once. Is there something else that you did for yours to work?? Maybe a log-entry that need to be clear?

Thanks

Burt
If you Sig. line is longer or higher than two line, you are just an attention seeker. Grow up!

Dave J

Quote from: kungfujoe on February 09, 2014, 09:19:13 PM
Quote from: davejo on February 07, 2014, 01:07:42 PM
Quote from: kungfujoe on February 07, 2014, 10:23:06 AM
Anyone know where I can get additional quiz packs for this mod?


Look at the link in my signature then look around and you'll find some.

Thanks!  I registered and was able to get the quiz packs.

But do you know where I can find the ones with music that are on that site?  They don't seem to be a part of that package.

Those quizzes are personal to our site as they include links to the music files on our server. If we share them with the 'world' then we would end up using a lot of our sites bandwidth for others not to mention the legality of it.

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.

Dave J

Quote from: Burt on February 09, 2014, 09:33:32 PM
I just follow your instruction and double check the database and all play_limit entries are now set to 4. But we still cannot play the quizzes more than once. Is there something else that you did for yours to work?? Maybe a log-entry that need to be clear?

Thanks

Burt

Have a look at the attachments below. Firstly do all the quizzes show a play limit more than 1? (in the attachment 'quiz2' mine are set at 2)

Also what have you set the 'Session Replay Time (minutes)' I have mine set at 1440 which is one day, attachment 'quiz1'.

You may need to reset the session plays etc in the maintenance area. If you have not got that many members using the quiz at the moment maybe it would be worth resetting the whole quiz back to day 1, clear all results etc.

If you do this look a the attachment, 'quiz3' below and make sure you put '0' into each box before you press the 'Run Task' button, you will have to do this for each seperately. Basically use every button that's in the maintenance area

That's about all I can suggest.




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.

Burt

I'll try that...

Thank You  :)
If you Sig. line is longer or higher than two line, you are just an attention seeker. Grow up!

KungFuJoe

Quote from: davejo on February 10, 2014, 03:48:08 AM
Quote from: kungfujoe on February 09, 2014, 09:19:13 PM
Quote from: davejo on February 07, 2014, 01:07:42 PM
Quote from: kungfujoe on February 07, 2014, 10:23:06 AM
Anyone know where I can get additional quiz packs for this mod?


Look at the link in my signature then look around and you'll find some.

Thanks!  I registered and was able to get the quiz packs.

But do you know where I can find the ones with music that are on that site?  They don't seem to be a part of that package.

Those quizzes are personal to our site as they include links to the music files on our server. If we share them with the 'world' then we would end up using a lot of our sites bandwidth for others not to mention the legality of it.

regards

Dave

Understood.  Awesome mod, btw!

Burt

Hi davejo...

I would like to ask you another couple of questions if you don't mind...

As I mentioned in one of my previous post, the only way for us to be able to play the League and not having the League to stop working after the first round, was to disable (un-check) the option to "Send PM on Quiz League Round Update" in the Quiz Messaging Setting. I notice that some members here still complain about the League stopping after the first round. I was wondering what you setting for the League are and if you are having similar problem.

Second question is, when we originally started to use this mod, the quiz involving pictures were just impossible to use as the pictures were just too small to see anything in it. Is that because the picture were too small in size or was it a limitation of the mod? What I mean is, I haven't try again since and I was wondering if you are using quizzes involving pictures and if you do, what size picture do you use...

Thank You

Burt
If you Sig. line is longer or higher than two line, you are just an attention seeker. Grow up!

Dave J

Quote from: Burt on February 10, 2014, 08:26:06 PM
Hi davejo...

I would like to ask you another couple of questions if you don't mind...

As I mentioned in one of my previous post, the only way for us to be able to play the League and not having the League to stop working after the first round, was to disable (un-check) the option to "Send PM on Quiz League Round Update" in the Quiz Messaging Setting. I notice that some members here still complain about the League stopping after the first round. I was wondering what you setting for the League are and if you are having similar problem.

I do not use the 'Quiz League' as there has been no interest in it. I'm guessing this might be a coding issue that is best answered by Emanuele

Quote from: Burt on February 10, 2014, 08:26:06 PM
Second question is, when we originally started to use this mod, the quiz involving pictures were just impossible to use as the pictures were just too small to see anything in it. Is that because the picture were too small in size or was it a limitation of the mod? What I mean is, I haven't try again since and I was wondering if you are using quizzes involving pictures and if you do, what size picture do you use...

I have not created any quizzes with photo's Burt but you could always look in your default theme's image folder
Quotepublic_html\Themes\default\images\quiz_images\Questions
look at a quiz with photos in the question and then look at the size of those in the above folder.

Quote from: Burt on February 10, 2014, 08:26:06 PM
Thank You

Burt

My pleasure and I hope you get sorted out OK
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.

Burt

#867
Hello there..

Just to confirm that the modification to the DB plus entering 0 in the two Session and Information board, did NOT do the trick. I though it was working but now is back to one play per quiz regardless of what the DB says or to what number you have in "Play Limit".

PS

You don't play League?? Really.... My members go crazy for the League. They love it. Ii is like sharks feeding time..... :)
But as I said in the past, the League use to stop after the first run, unless you did disable the automatic messaging system in the game...If someone want to pass that to Emanuele (oppure lui puo` leggerlo qui 8-) )...

Burt
If you Sig. line is longer or higher than two line, you are just an attention seeker. Grow up!

KungFuJoe

I'm interested in the Quiz Leagues...but can someone give me a quick rundown on how it works?

Burt

Quote from: kungfujoe on February 11, 2014, 10:57:17 PM
I'm interested in the Quiz Leagues...but can someone give me a quick rundown on how it works?

It is actually very simple...

Quiz League > New Quiz League... then

Title: what ever you want.

Description: as per normal Quiz description.

Category: Here you pick the category from where you want the questions to be picked from.

Interval between plays: necessary time to allow every member to play. Normal choice here 3 to 7 days....It depends how busy your members are. If they log in often you can keep that number down. I they are busy, probably a 7 would be good. That mean they can play once a week.

Question per session: How many question per quiz (the question are randomly picket from the Category you did choose.

Seconds per question: same as per normal quiz question.

Point per correct answer: self explanatory.

Total rounds: here you pick the number of round for the League. So if you for instance have put 7 in the interval and you put 10 in here, your League should last 7 weeks.

State: on off

Show answer: same as normal quiz.


That's pretty much it. Once you started it, members have x day (based on your interval number to play), if the miss the round, the League still goes to the next round. They just lose the chance to play that round, but they can play the next. As long as you have plenty of quizzes and categories, the League is probably the most fun for the members as they compete against each other and not only against who play that particular Quiz. Also the questions are random and you may get the same question in a round even up to three times. Imagine how happy the member was considering that he didn't know the answer to that... :laugh:

If your League stop working after the first round, few years back, we discover that by turning the Automatic message system in the game off, did fix the problem. I'm not aware if anyone has fix it or got around to do anything about. But if you leave the boxes unchecked the league works as a charm...

Burt
If you Sig. line is longer or higher than two line, you are just an attention seeker. Grow up!

Burt

Does anybody here know how or if there is a fix, to get the League not to ask sometime the same question two or three times per round?

Burt
If you Sig. line is longer or higher than two line, you are just an attention seeker. Grow up!

emanuele

Quote from: tazmaniac on February 09, 2014, 07:19:09 AM
hi emanuele, i guess you follow this topic.
Yep, from time to time... :(

Quote from: tazmaniac on February 09, 2014, 07:19:09 AM
i was trying the modification recenlty and i really like it so much.if you want the truth my english language is not perfect but i want to translate to turkish although.
Cool! :D

Quote from: tazmaniac on February 09, 2014, 07:19:09 AM
i found the language directory in package but it seems that there are several lines in modification.xml file too.well,can you embed the code lines into package or add files here if i can translate it?
You can translate those strings and post them here, then I can put them into the package. ;)
If I understood the problem. :)


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

emanuele

Quote from: Burt on February 16, 2014, 11:48:25 PM
Does anybody here know how or if there is a fix, to get the League not to ask sometime the same question two or three times per round?
Unfortunately at the moment there is no way... :(


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Burt

Quote from: emanuele on February 22, 2014, 03:47:26 AM
Quote from: Burt on February 16, 2014, 11:48:25 PM
Does anybody here know how or if there is a fix, to get the League not to ask sometime the same question two or three times per round?
Unfortunately at the moment there is no way... :(


Hi there, when you say there is no way, what do you mean? How does the mod currently pick the random questions for the League? Surely, there is a way to implement a routine check that doesn't allow duplicate.... Or even allow the Mod to pick just one question out of each quiz, it would fix the current problem... :)
If you Sig. line is longer or higher than two line, you are just an attention seeker. Grow up!

sangham.net

Dear SMF-Supporters
Mod- Supporters,
And SMF and Mod friends,

Since a while there is a lot of activity of "robots"? in the quiz area and a huge amount of critical and undefined errors.

all are looking somehow like this but less really identical in line, detail action, IP, id-user...:

QuoteGuest
Apply Filter: Only show the error messages of this IP address 65.55.24.237 
     Reverse chronological order of list February 25, 2014, 08:14:36 PM
Apply Filter: Only show the error messages of this session a6a4199053baa02982b1611c055b5bdb
Apply Filter: Only show the errors of this type Type of error: Critical
Apply Filter: Only show the error messages of this URL
http://XXX/index.php?action=SMFQuiz;sa=playedQuizes;id_user=8;starts_with=o;sort=auto_compleyed;start=0
Apply Filter: Only show the errors with the same message
The database value you're trying to insert does not exist: sort
Function: GetPlayedQuizesData
Apply Filter: Only show the errors from this file
File: /var/www/vhosts/XXX/httpdocs/Sources/SMFQuiz.php
Line: 1529

I have to add that it is not often used actually but as soon as somebody is using it come to a big amour of this errors as if robots would be leaded by new links or file changes to try certain links and pass over the same "No No"s again.

I hope my unliteral description could give enough info to describe it.

If anybody has a hint, it would be great.

emanuele

Quote from: Burt on February 24, 2014, 05:36:20 AM
Quote from: emanuele on February 22, 2014, 03:47:26 AM
Quote from: Burt on February 16, 2014, 11:48:25 PM
Does anybody here know how or if there is a fix, to get the League not to ask sometime the same question two or three times per round?
Unfortunately at the moment there is no way... :(
Hi there, when you say there is no way, what do you mean? How does the mod currently pick the random questions for the League? Surely, there is a way to implement a routine check that doesn't allow duplicate.... Or even allow the Mod to pick just one question out of each quiz, it would fix the current problem... :)
Every question is requested separately to the db with an ajax call. In order to be able not to pick a duplicate question you'd have to track all the questions you have already asked.
As far as I remember, last time I looked at the code it was not easy to get that, but it was a long time ago so I may be wrong.

Quote from: Johann B on February 26, 2014, 09:16:28 AM
If anybody has a hint, it would be great.
Remove access to guests to the quizzes.
I'm pretty sure they cannot run a quiz, so it's useless to give them access.


Take a peek at what I'm doing! ;D




Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

sangham.net

Quote from: emanuele on March 05, 2014, 07:04:53 PM
Quote from: Johann B on February 26, 2014, 09:16:28 AM
If anybody has a hint, it would be great.
Remove access to guests to the quizzes.
I'm pretty sure they cannot run a quiz, so it's useless to give them access.

Thanks for the hint, I thought that this is the "problem".

sangham.net

Dear Emanuele,

I would love to make a translation into German and it is quoted "If you wish to translate to other languages, please get in touch". What the best way to provide such?
Just picking up the language.php? Or are there some specials?

sangham.net

I have made a "quick" German-Formal uft8 beta-version for general use. Would be good to see trough it and make beta test. If good so far, I would like to make a "informal" Version as well and! a Version that uses Language for a different purpose: As a leaching and mentor/student tool, of for not so gaming purposes as I think that this tool can be used very well in study forums as well. Such would be maybe good in English as well.

Feedback in this regard welcome.

May you have use of it and be able to receive it.



Change file-name part "Deutsch" into "German"

sangham.net

I am not a programmer, so my current question: Would it require to change

// Load the language file
loadLanguage('SMFQuiz');


to something like

if(loadLanguage('SMFQuiz') == false)
loadLanguage('SMFQuiz', 'english');


in SMFQuiz.php, to keep it changeable for the particular user in language regards of the forum ?




Advertisement: