Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: quiz_modder on February 18, 2009, 01:08:19 PM

Title: SMF Quiz
Post by: quiz_modder on February 18, 2009, 01:08:19 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1650)

SMF Quiz
By smfmodding (smfmodding@gmail.com)


Current developer: emanuele
Many thanks to davejo (http://www.simplemachines.org/community/index.php?action=profile;u=277473) and CircleDock (http://www.simplemachines.org/community/index.php?action=profile;u=311710) for the help in the development of this release!
Current Version: 1.1.0

Supported SMF Version(s):
2.0.x

Summary:
A Quiz system for SMF which includes:

Video tutorial:

Quiz packs:


Available Languages:

Installs on:

Change Log:


21st Apr 2012 - Release 1.1.0
21st Dec 2010 - Release 1.0.8 beta 4
14th May 2009 - Release 1.0.7
30 Apr 2009 - Release 1.0.6
17 Apr 2009 - Release 1.0.5
16 Apr 2009 - Release 1.0.4

13 Feb 2009 - Release 1.0.3

23rd Jan 2009 - Release Candidate 1.0.2

18th Dec 2008 - Beta 1.0.1

14th Dec 2008 - Alpha 1.0.0


The SMF Quiz is a modification for your SMF 2 forum that will allow you to provide an integrated Quiz. It has the following features:

I hope you enjoy this mod, YOU can make it better by providing feedback.
Title: Re: SMF Quiz
Post by: SgtMic on February 18, 2009, 01:15:09 PM
Looks interesting. I like that you have quizzes available for download.
Are there any other available sites the have more quizzes?
Title: Re: SMF Quiz
Post by: Özgür on February 18, 2009, 01:49:48 PM
Finally =)
Title: Re: SMF Quiz
Post by: alex30 on February 18, 2009, 03:02:44 PM
Please post a few screens, I would like to see how that looks. Thanks.
Title: Re: SMF Quiz
Post by: Özgür on February 18, 2009, 03:22:08 PM
Please post a few screens, I would like to see how that looks. Thanks.

You go to http://www.smfmodding.com/ , and register an account.
Try http://www.smfmodding.com/index.php?action=SMFQuiz.
Title: Re: SMF Quiz
Post by: quiz_modder on February 18, 2009, 05:24:17 PM
Looks interesting. I like that you have quizzes available for download.
Are there any other available sites the have more quizzes?

The idea is that there will eventually be a community of people that create and share their quizes, therefore increasing the amount available for others to import onto their site. Obviously this all depends on how well the mod is received.
Title: Re: SMF Quiz
Post by: quiz_modder on February 18, 2009, 06:38:08 PM
There was a minor issue with the Import Quiz functionality, I have uploaded an updated package in the mod section (http://custom.simplemachines.org/mods/index.php?mod=1650). In addition, I have made available an SMF Quiz Category addon to this mod which will install some default categories, along with images. This is available from the SMF Modding site.

http://www.smfmodding.com (http://www.smfmodding.com)

Thanks
Title: Re: SMF Quiz
Post by: quiz_modder on February 18, 2009, 06:44:10 PM
Someone requested some screenshots...
Title: Re: SMF Quiz
Post by: bullbreedluverz on February 18, 2009, 06:47:31 PM
hi ive been following the progress of this mod and glad you got it released

on my site i run a quiz twice a week - is it capable with this mod to upload questions to it and actually have new quizes released on certain days
Title: Re: SMF Quiz
Post by: quiz_modder on February 18, 2009, 06:54:17 PM
hi ive been following the progress of this mod and glad you got it released

on my site i run a quiz twice a week - is it capable with this mod to upload questions to it and actually have new quizes released on certain days

The nearest thing it has at the moment is the concept of a "Quiz League". You can create a Quiz League to run for a set duration and allow people to answer questions in it every x days. It will then pick random questions from all the quizes you have installed. Although not exactly what you are asking for it may suffice? If not, please post a request on the SMFModding site.

Thanks
Title: Re: SMF Quiz
Post by: bullbreedluverz on February 18, 2009, 06:58:02 PM
that could possibly work, cheers
Title: Re: SMF Quiz
Post by: Arveles on February 18, 2009, 07:55:07 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg9.imageshack.us%2Fimg9%2F9733%2F20090219025316kh3.jpg&hash=551ef164116d9f44cc761cb82080090f)

------------------------------------and-------------------------------
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg18.imageshack.us%2Fimg18%2F7056%2F20090219025339sr3.jpg&hash=e6308b0ab456c8f27f96e0ed7ed0572f)
Title: Thanks!!
Post by: PerryM on February 18, 2009, 09:02:43 PM
Holy guacamole!!
 
This is a fantastic module and it actually works - congratulations!
 
The only thing missing is when a user adds their own quiz the moderator/administrator must approve it and there is no notice sent.
 
Beyond that small item this is a 5 star module.
 
Thank you for sharing it with us...
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 03:49:26 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg9.imageshack.us%2Fimg9%2F9733%2F20090219025316kh3.jpg&hash=551ef164116d9f44cc761cb82080090f)

------------------------------------and-------------------------------
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg18.imageshack.us%2Fimg18%2F7056%2F20090219025339sr3.jpg&hash=e6308b0ab456c8f27f96e0ed7ed0572f)

I assume you hadn't already played the quiz over the maximum times? This error could also occur if the returned XML is invalid (it retrieves the quiz information and questions that way).

I could look into this further but would need a login to your forum and the quiz you were having problems with.
Title: Re: Thanks!!
Post by: quiz_modder on February 19, 2009, 03:50:32 AM
Holy guacamole!!
 
This is a fantastic module and it actually works - congratulations!
 
The only thing missing is when a user adds their own quiz the moderator/administrator must approve it and there is no notice sent.
 
Beyond that small item this is a 5 star module.
 
Thank you for sharing it with us...

It should do this, so if it isn't working then it is a bug. Did you get any error in your smf log at the same time?
Title: Re: SMF Quiz
Post by: chrisb on February 19, 2009, 04:12:59 AM
as we run a couple of quizes and would like to see this on version 1.1.8
Title: Re: SMF Quiz
Post by: casp3r on February 19, 2009, 05:13:51 AM
Looking forward to using this but just one problem :(

./Themes/default/languages/ManageScheduledTasks.english.php     File not found

Where do I get this file from?
Title: Re: SMF Quiz
Post by: mforum on February 19, 2009, 05:43:25 AM
i hope someone will make a similar mod for smf 1.1.x ,,,,, after all is the only stable version right now  :-\
Title: Re: SMF Quiz
Post by: edi67 on February 19, 2009, 07:24:08 AM
seem to be intersting thx
Title: Re: SMF Quiz
Post by: ethankcvds on February 19, 2009, 07:51:02 AM
I keep getting this error when I try to enter questions.

Wrong value type sent to the database. Integer expected. (id_quiz)
Function: SaveQuestion

It's effecting Line: 1146 of SMFQuizDb.php. All that line is is a ); .
Title: Re: SMF Quiz
Post by: edi67 on February 19, 2009, 09:26:41 AM
one question quiz in package are everything in english language as i think there is way for add quiz in different languagE? i means i have italian forum so will be nice to have quiz in italian
thx for all
Title: Re: SMF Quiz
Post by: Arveles on February 19, 2009, 01:01:06 PM
I assume you hadn't already played the quiz over the maximum times? This error could also occur if the returned XML is invalid (it retrieves the quiz information and questions that way).

I could look into this further but would need a login to your forum and the quiz you were having problems with.

ok..thanks..
http://www.egitimforumu.com
http://www.egitimforumu.com/index.php?action=SMFQuiz
user: testuser
pass: testpass
Title: Re: SMF Quiz
Post by: islam2hamy on February 19, 2009, 01:09:44 PM
nice mod , thank you.
Title: Re: SMF Quiz
Post by: Sudhakar Arjunan on February 19, 2009, 01:18:49 PM
HI SMFModding,

Such an excellent mod.

Quiz mod, i was searching for someone to embed  a years back.

So i have used the quiz separately out of forum.

this is an excellent concept. All the Best.
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 01:20:50 PM
Looking forward to using this but just one problem :(

./Themes/default/languages/ManageScheduledTasks.english.php     File not found

Where do I get this file from?

It should have been installed as part of the mod install. Check the download to make sure it is in there.
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 01:21:39 PM
i hope someone will make a similar mod for smf 1.1.x ,,,,, after all is the only stable version right now  :-\

It takes up a huge amount of my time as it is, I am not sure I am going to find any time to do a version for 1.x I am afraid.
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 01:24:04 PM
I keep getting this error when I try to enter questions.

Wrong value type sent to the database. Integer expected. (id_quiz)
Function: SaveQuestion

It's effecting Line: 1146 of SMFQuizDb.php. All that line is is a ); .

Could you try again? Could you also list the exact steps you took to get you to this error please?

Thanks
Title: Re: SMF Quiz
Post by: dimdom on February 19, 2009, 01:30:13 PM
Excellent mod. Too bad that it can not be used by the majority of SMF users that use 1.1.8 (I am one of them too)...



Title: Re: SMF Quiz
Post by: qubbah on February 19, 2009, 01:49:45 PM
hope.... can convert to smf 1.1.X tq...
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 01:51:06 PM
Excellent mod. Too bad that it can not be used by the majority of SMF users that use 1.1.8 (I am one of them too)...

I only had time to work on it for one version. As most people will be moving to SMF 2 in the future it seemed natural to choose that verison now, rather than create it for 1.x and then having to migrate it to 2.x. Also, my own forum is running 2.x

Sorry.
Title: Re: SMF Quiz
Post by: ethankcvds on February 19, 2009, 01:56:40 PM
I keep getting this error when I try to enter questions.

Wrong value type sent to the database. Integer expected. (id_quiz)
Function: SaveQuestion

It's effecting Line: 1146 of SMFQuizDb.php. All that line is is a ); .

Could you try again? Could you also list the exact steps you took to get you to this error please?

Thanks

Well it happens when I try to put in questions for the users to answer.
Title: Re: SMF Quiz
Post by: PerryM on February 19, 2009, 01:58:02 PM
Excellent mod. Too bad that it can not be used by the majority of SMF users that use 1.1.8 (I am one of them too)...

I only had time to work on it for one version. As most people will be moving to SMF 2 in the future it seemed natural to choose that verison now, rather than create it for 1.x and then having to migrate it to 2.x. Also, my own forum is running 2.x

Sorry.

Correct - why spend time on a version that will be replaced with 2.0.  I'm using smf 2.0 in production web sites - it would be foolish of me to waste my time too on an old version that will be replaced.
 
2.0 is doing just fine folks.
Title: Re: SMF Quiz
Post by: casp3r on February 19, 2009, 02:04:53 PM
Just downloaded SMFQuiz 1.0.3.zip again and checked it but can't find ManageScheduledTasks.english.php anywhere in it. I'm obviously doing something very stupid :)
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 02:17:44 PM
Just downloaded SMFQuiz 1.0.3.zip again and checked it but can't find ManageScheduledTasks.english.php anywhere in it. I'm obviously doing something very stupid :)

Argh, sorry, it is me that is being stupid, I should have read your post more carefully  :)

That is a standard file installed as part of SMF, so not sure why you don't have it??
Title: Re: SMF Quiz
Post by: casp3r on February 19, 2009, 02:38:28 PM
Many thanks. Can't understand why that file wasn't uploaded with the original install - have uploaded install seemed to go ok but when I click on 'Quiz' in the admin console I get the following message, any ideas?

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /mysitepathhere/public_html/Sources/SMFQuizAdmin.php on line 1325
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 02:41:07 PM
Many thanks. Can't understand why that file wasn't uploaded with the original install - have uploaded install seemed to go ok but when I click on 'Quiz' in the admin console I get the following message, any ideas?

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /mysitepathhere/public_html/Sources/SMFQuizAdmin.php on line 1325

You don't have PHP 5 installed I suppose? If you observe the readme PHP 5 is a prerequisite.
Title: Re: SMF Quiz
Post by: casp3r on February 19, 2009, 02:52:06 PM
Sorted - just had to add a php5 switch to my .htaccess file. Many thanks
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 03:18:54 PM
Sorted - just had to add a php5 switch to my .htaccess file. Many thanks

I am glad it is sorted  :)
Title: Re: SMF Quiz
Post by: jayman2 on February 19, 2009, 04:57:43 PM
Thanks for this amazing mod.  Only found one thing so far.  The quiz.jpg image that is supposed to show on the main page is missing from the /images/quiz_images/Quizes directory.  It's not in todays archive.  Could you please just post that image?  Thanks.
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 05:40:24 PM
Thanks for this amazing mod.  Only found one thing so far.  The quiz.jpg image that is supposed to show on the main page is missing from the /images/quiz_images/Quizes directory.  It's not in todays archive.  Could you please just post that image?  Thanks.

I had issues uploading the mod with all the quiz/category images on the SMF site - it seemed to be a timeout issue due to its size. Therefore I have created a separate add-on mod that will install a load of images for you, along with some default categories. Please visit the following for more information:

http://www.smfmodding.com/index.php?action=downloads;cat=1

Thanks
Title: Re: SMF Quiz
Post by: MF30 on February 19, 2009, 06:29:57 PM
I need this mod to 1.1.8.. :'(
Title: Re: SMF Quiz
Post by: quiz_modder on February 19, 2009, 06:47:03 PM
I need this mod to 1.1.8.. :'(

Sorry, no plans. I think people should start considering upgrading to SMF 2 personally.
Title: Re: SMF Quiz
Post by: samurai-lupin on February 19, 2009, 06:50:41 PM
Too bad there is no 1.1.8 Version. Some people, like myself, will not upgrade to 2.0 as it would mean lossing all the custom modifications running on my forum. It's a pitty.
Title: Re: SMF Quiz
Post by: quiz_modder on February 20, 2009, 03:39:38 AM
will not upgrade to 2.0

What, ever?? Surely the modifications that you do have will eventually be ported to 2.x?
Title: Re: SMF Quiz
Post by: chrisb on February 20, 2009, 04:17:37 AM
As you are getting alot of request what so different between 1.8 and 2.0 and most people who make mods do it for both versions
Title: Re: SMF Quiz
Post by: chrisb on February 20, 2009, 04:36:33 AM
that the reasons why this has been said on the 2.0 version , Note: As this is not a final release, we do not recommend running SMF 2.0 RC1 on a production site.
Title: Re: SMF Quiz
Post by: quiz_modder on February 20, 2009, 07:01:44 AM
As you are getting alot of request what so different between 1.8 and 2.0 and most people who make mods do it for both versions

I don't think you realise the effort it would take to provide a version for what will effectively be a superseded version of the SMF forum software. The main challenge is around keeping two versions of data access functions, as SMF2 uses a completely different access mechanism. And the quiz uses a lot of database access due to its nature, it isn't simply making a few interface changes that can quickly be fitted to work with various SMF versions.

Ontop of that, many changes would require duplicate effort. It has taken me months to develop this mod, I do not have the time nor the appetite to spend a few more months getting it to work with the older version, then doubling effort required to make many alterations and additional functionality going forward.

Bear in mind this is something I am doing in my spare time. I have a full time job along with a family, so I can't dedicate all my time to it!

I am glad there is a lot of interest in the mod for previous versions and I understand the argument for people not wishing to move to SMF2 until there is a final release. I have SMF2 running on a site that has many thousands of visitors a day and it has been performing fine, but that isn't to suggest people that are uncomfortable with pre-release software should take the plunge. I am merely stating the fact that the software is stable enough for many people to be using it, so this is the version I am targetting. When you get to the stage where you are comfortable migrating to SMF2 you will have access to this mod too.

Thanks for your thoughts.
Title: Re: SMF Quiz
Post by: PerryM on February 20, 2009, 12:24:25 PM
As you are getting alot of request what so different between 1.8 and 2.0 and most people who make mods do it for both versions

I don't think you realise the effort it would take to provide a version for what will effectively be a superseded version of the SMF forum software. The main challenge is around keeping two versions of data access functions, as SMF2 uses a completely different access mechanism. And the quiz uses a lot of database access due to its nature, it isn't simply making a few interface changes that can quickly be fitted to work with various SMF versions.

Ontop of that, many changes would require duplicate effort. It has taken me months to develop this mod, I do not have the time nor the appetite to spend a few more months getting it to work with the older version, then doubling effort required to make many alterations and additional functionality going forward.

Bear in mind this is something I am doing in my spare time. I have a full time job along with a family, so I can't dedicate all my time to it!

I am glad there is a lot of interest in the mod for previous versions and I understand the argument for people not wishing to move to SMF2 until there is a final release. I have SMF2 running on a site that has many thousands of visitors a day and it has been performing fine, but that isn't to suggest people that are uncomfortable with pre-release software should take the plunge. I am merely stating the fact that the software is stable enough for many people to be using it, so this is the version I am targetting. When you get to the stage where you are comfortable migrating to SMF2 you will have access to this mod too.

Thanks for your thoughts.

Thanks for donating your time and whatever you want to work on is fine with me, at least.  I pay folks to do work for me all the time - if there are enough folks here who want something outside a donated module then they can pool a few bucks and pay for it.
 
Thanks again...
Title: Re: SMF Quiz
Post by: Arveles on February 20, 2009, 02:55:55 PM
I assume you hadn't already played the quiz over the maximum times? This error could also occur if the returned XML is invalid (it retrieves the quiz information and questions that way).

I could look into this further but would need a login to your forum and the quiz you were having problems with.

ok..thanks..
http://www.egitimforumu.com
http://www.egitimforumu.com/index.php?action=SMFQuiz
user: testuser
pass: testpass
Title: Re: SMF Quiz
Post by: quiz_modder on February 20, 2009, 08:38:39 PM
I assume you hadn't already played the quiz over the maximum times? This error could also occur if the returned XML is invalid (it retrieves the quiz information and questions that way).

I could look into this further but would need a login to your forum and the quiz you were having problems with.

ok..thanks..
http://www.egitimforumu.com
http://www.egitimforumu.com/index.php?action=SMFQuiz
user: testuser
pass: testpass

I would suggest looking into this error a little more

http://www.egitimforumu.com/Sources/SMFQuizStart.php?id_quiz=1

What is on line 310 where it is having difficulties?
Title: Re: SMF Quiz
Post by: quiz_modder on February 20, 2009, 08:39:14 PM
As you are getting alot of request what so different between 1.8 and 2.0 and most people who make mods do it for both versions

I don't think you realise the effort it would take to provide a version for what will effectively be a superseded version of the SMF forum software. The main challenge is around keeping two versions of data access functions, as SMF2 uses a completely different access mechanism. And the quiz uses a lot of database access due to its nature, it isn't simply making a few interface changes that can quickly be fitted to work with various SMF versions.

Ontop of that, many changes would require duplicate effort. It has taken me months to develop this mod, I do not have the time nor the appetite to spend a few more months getting it to work with the older version, then doubling effort required to make many alterations and additional functionality going forward.

Bear in mind this is something I am doing in my spare time. I have a full time job along with a family, so I can't dedicate all my time to it!

I am glad there is a lot of interest in the mod for previous versions and I understand the argument for people not wishing to move to SMF2 until there is a final release. I have SMF2 running on a site that has many thousands of visitors a day and it has been performing fine, but that isn't to suggest people that are uncomfortable with pre-release software should take the plunge. I am merely stating the fact that the software is stable enough for many people to be using it, so this is the version I am targetting. When you get to the stage where you are comfortable migrating to SMF2 you will have access to this mod too.

Thanks for your thoughts.

Thanks for donating your time and whatever you want to work on is fine with me, at least.  I pay folks to do work for me all the time - if there are enough folks here who want something outside a donated module then they can pool a few bucks and pay for it.
 
Thanks again...

You're welcome  :)
Title: Re: SMF Quiz
Post by: mrtrc266 on February 21, 2009, 10:13:07 AM
Hello, I get this during the install of the Quiz Mod on a fresh SMF RC1

Table 'xxxxxx_testrc1.monsters_quiz_question_type' doesn't exist
File: /home/xxxxxx/public_html/testrc1/Packages/temp/SMFQuiz 1.0.3/smf2/installScript.php
Line: 159

Thanks in advance for you help.
Title: Re: SMF Quiz
Post by: quiz_modder on February 21, 2009, 01:37:32 PM
Hello, I get this during the install of the Quiz Mod on a fresh SMF RC1

Table 'xxxxxx_testrc1.monsters_quiz_question_type' doesn't exist
File: /home/xxxxxx/public_html/testrc1/Packages/temp/SMFQuiz 1.0.3/smf2/installScript.php
Line: 159

Thanks in advance for you help.

If you check your database, are there any tables that have the word "quiz" in them? If so, could you list them here please?

Thanks
Title: Re: SMF Quiz
Post by: samurai-lupin on February 21, 2009, 02:20:31 PM
will not upgrade to 2.0

What do you mean by saying "whatever". If you don't care to provide a serious reply you better don't reply at all rather than wasting your reader's time with these sort of phrases.

What, ever?? Surely the modifications that you do have will eventually be ported to 2.x?
Title: Re: SMF Quiz
Post by: quiz_modder on February 21, 2009, 02:51:51 PM
will not upgrade to 2.0

What do you mean by saying "whatever". If you don't care to provide a serious reply you better don't reply at all rather than wasting your reader's time with these sort of phrases.

What, ever?? Surely the modifications that you do have will eventually be ported to 2.x?

You did not read what I said, I posted "what, ever" notice the comma and space! So, I was asking if you mean't you would not be upgrading "ever". That was a serious reply, perhaps you should read more carefully!

I have spent a lot of time on this mod, I have tried to be as helpful as possible, I don't understand why you would think I would not be helpful.
Title: Re: SMF Quiz
Post by: PerryM on February 21, 2009, 03:01:45 PM
will not upgrade to 2.0

What do you mean by saying "whatever". If you don't care to provide a serious reply you better don't reply at all rather than wasting your reader's time with these sort of phrases.

What, ever?? Surely the modifications that you do have will eventually be ported to 2.x?

You did not read what I said, I posted "what, ever" notice the comma and space! So, I was asking if you mean't you would not be upgrading "ever". That was a serious reply, perhaps you should read more carefully!

I have spent a lot of time on this mod, I have tried to be as helpful as possible, I don't understand why you would think I would not be helpful.

I learned a long time ago that you get no respect with giving things away.  The more you charge the more folks appreciate what they are buying.  Ignore the folks who b-itch and moan when they are beggars - kind of like US citizens who pay no taxes and complain and complain.
 
I'm sure there are many folks who appreciate your efforts (they never speak up) and for those that don't (they cry the loudest) screw them....
Title: Re: SMF Quiz
Post by: quiz_modder on February 21, 2009, 03:05:26 PM
I learned a long time ago that you get no respect with giving things away.

Tell me about it. I wrote this mod for my forum and then thought "oh, other people might like this too". So I put in a lot of effort to make it available for others and now I have had a lot of ungrateful comments. Hey, I wasn't expecting gratitude, but not some of the moaning I have seen. However, I have had some nice comments too that has made it seem worthwhile.
Title: Re: SMF Quiz
Post by: PerryM on February 21, 2009, 03:20:15 PM
I learned a long time ago that you get no respect with giving things away.

Tell me about it. I wrote this mod for my forum and then thought "oh, other people might like this too". So I put in a lot of effort to make it available for others and now I have had a lot of ungrateful comments. Hey, I wasn't expecting gratitude, but not some of the moaning I have seen. However, I have had some nice comments too that has made it seem worthwhile.

I run about 150 web sites using Drupal - all freebies but make about $1 a day per web site in AdSense.  I'm now getting into chat rooms and will charge $5 per year for someone to join (basic entry level) - all the folks who snivel and cause all kinds of problems are kept out - the freeloaders.
 
Once I get up and running I donate to the folks who help me - did it for Drupal and will do so here too.
Title: Re: SMF Quiz
Post by: Arveles on February 21, 2009, 05:07:06 PM

I would suggest looking into this error a little more

http://www.egitimforumu.com/Sources/SMFQuizStart.php?id_quiz=1

What is on line 310 where it is having difficulties?

Thanks..But I don't see Turkish character:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F1160%2F20090222000443.jpg&hash=486fb2800e8bd35b8261518eb09212a8)
Title: Re: SMF Quiz
Post by: Mai Pen Rai on February 21, 2009, 07:38:03 PM

I would suggest looking into this error a little more

http://www.egitimforumu.com/Sources/SMFQuizStart.php?id_quiz=1

What is on line 310 where it is having difficulties?

Thanks..But I don't see Turkish character:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F1160%2F20090222000443.jpg&hash=486fb2800e8bd35b8261518eb09212a8)

Could you let me know how this was solved???
Title: Re: SMF Quiz
Post by: !Hachi! on February 21, 2009, 10:08:55 PM
i am getting missing db table error looks like mod was unable to make tables.any suggestions?running php 5 and smf 2 rc1
Title: Re: SMF Quiz
Post by: Mai Pen Rai on February 22, 2009, 05:09:05 AM
Any concrete solution to the popup with "max amount of times played"???

Anadolu or S_M_F_Modding... help needed.
Title: Re: SMF Quiz
Post by: quiz_modder on February 22, 2009, 05:28:23 AM
Any concrete solution to the popup with "max amount of times played"???

Anadolu or S_M_F_Modding... help needed.

The best way to see what error is actually being returned is to enter the following address

http://<your board address>/Sources/SMFQuizStart.php?id_quiz=1

This should return XML for the quiz with the id specified. I am guessing there is an error on yours for some reason, going to this page should return some kind of error. Let me know.
Title: Re: SMF Quiz
Post by: quiz_modder on February 22, 2009, 05:30:34 AM
i am getting missing db table error looks like mod was unable to make tables.any suggestions?running php 5 and smf 2 rc1

At the moment I don't understand why these tables get created fine in any install I have done and many other people's installations, but on a few they don't. I am going to have a look at this more when I get some free time and try to create a separate script to fix the issue for those that get it.

Sorry.
Title: Re: SMF Quiz
Post by: quiz_modder on February 22, 2009, 05:51:45 AM
i am getting missing db table error looks like mod was unable to make tables.any suggestions?running php 5 and smf 2 rc1

I have provided an extra database install script, could you let me know if that fixes your problem please?

http://www.smfmodding.com/index.php?topic=258.0
Title: Re: SMF Quiz
Post by: mrtrc266 on February 22, 2009, 09:57:11 AM
Hello, I get this during the install of the Quiz Mod on a fresh SMF RC1

Table 'xxxxxx_testrc1.monsters_quiz_question_type' doesn't exist
File: /home/xxxxxx/public_html/testrc1/Packages/temp/SMFQuiz 1.0.3/smf2/installScript.php
Line: 159

Thanks in advance for you help.

If you check your database, are there any tables that have the word "quiz" in them? If so, could you list them here please?

Thanks

I think I got it sorted. Great MOD! My members will love it when I convert to SMF 2  ;)
Title: Re: SMF Quiz
Post by: Arveles on February 22, 2009, 10:08:10 AM
I don't see Turkish character:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F1160%2F20090222000443.jpg&hash=486fb2800e8bd35b8261518eb09212a8)
Title: Re: SMF Quiz
Post by: quiz_modder on February 22, 2009, 12:57:51 PM
I don't see Turkish character:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg13.imageshack.us%2Fimg13%2F1160%2F20090222000443.jpg&hash=486fb2800e8bd35b8261518eb09212a8)

Yes, I don't have much experience with other character sets, so I am not sure how to get around that one. Any advice welcome!
Title: Re: SMF Quiz
Post by: qubbah on February 23, 2009, 01:26:28 AM
People will looking if can be run in 1.1.8

tq..
Title: Re: SMF Quiz
Post by: quiz_modder on February 23, 2009, 07:29:37 AM
People will looking if can be run in 1.1.8

tq..

As I said before, this is only going to be for SMF2.

Sorry.
Title: Re: SMF Quiz
Post by: geo on February 23, 2009, 09:41:21 AM
great mod.
my members really like it.
thanks for making and releasing.
Title: Re: SMF Quiz
Post by: quiz_modder on February 23, 2009, 07:01:09 PM
great mod.
my members really like it.
thanks for making and releasing.

You're welcome  :)
Title: Re: SMF Quiz
Post by: LadyC on February 23, 2009, 07:17:04 PM
just wanted to post you some kudos, S_M_F_Modding... i know *I* sure appreciate all your efforts!

(i'm aka cassie on your site)
Title: Re: SMF Quiz
Post by: dwd2000 on February 25, 2009, 02:36:10 AM
Quote
Bear in mind this is something I am doing in my spare time. I have a full time job along with a family, so I can't dedicate all my time to it!

WELL SAID - I think you just described about 90% of the people who help out the SMF community.

Congrats on finally getting it released. I noticed I'm on some of the screen shots  8)

Can't wait for your other project to get off the ground. I think people will love it even more than your quiz.
Title: Re: SMF Quiz
Post by: dwd2000 on February 25, 2009, 09:30:26 AM

./Themes/default/languages/ManageScheduledTasks.english.php     File not found

Where do I get this file from?

My main site is running SMF2 Beta 4. (this person may have been using the same)
I got the same error.
The file is included in SMF 2 RC1
I just uploaded the ManageScheduledTasks.english.php file to the languages folder before installation and it works fine.
Also no errors in "Logs".
Title: Re: SMF Quiz
Post by: Bancherd on February 26, 2009, 04:20:37 AM
I have this mod(1.0.3) on an intranet test site, my users are very excited. :D

Now, I just have to figure out how to handle non-english texts in the questions.  ;D
Title: Re: SMF Quiz
Post by: quiz_modder on February 26, 2009, 04:31:02 AM
I have this mod(1.0.3) on an intranet test site, my users are very excited. :D

Now, I just have to figure out how to handle non-english texts in the questions.  ;D

I know there will be a few issues with getting the mod working with other languages. I am happy to spend time on getting it working with other languages, but will obviously need assistance from people that want this.

At the moment I am not sure whether playing the quiz will work with all language specific characters, plus I am pretty sure there are a few admin functions that have a hard coded dependancy on the POST action being in English. There may also be other issues, but I need you and others to help find these issues.

Hopefully, once we have got over the initial pain the mod can be truely multi-lingual.

Thanks
Title: Re: SMF Quiz
Post by: Bancherd on February 26, 2009, 10:35:02 AM
Right now it cuts off after the first Thai-letter, which suggests that it might not be that difficult to fix.

Which file should I look into?  I took a peak at $questionText in SMFQuizAdmin.php, but I am not sure if I am on the right track?  ???

(My database is utf8_general_ci...but the board is using plain English)
 
Title: Re: SMF Quiz
Post by: quiz_modder on February 26, 2009, 10:38:37 AM
Right now it cuts off after the first Thai-letter, which suggests that it might not be that difficult to fix.

Which file should I look into?  I took a peak at $questionText in SMFQuizAdmin.php, but I am not sure if I am on the right track?  ???

(My database is utf8_general_ci...but the board is using plain English)

Firstly, I would suggest having this discussion on the SMF Modding site, as there have been a few posts relating to other languages on there. Secondly, I would need to know a little more detail. So, at what point is it cutting off after the first letter? What were you trying to do at the time, etc?

Thanks
Title: Re: SMF Quiz
Post by: Bancherd on February 26, 2009, 05:45:00 PM
Agreed, will go over to the mod's support site for more detailed discussion.  :D
Title: Re: SMF Quiz
Post by: bros on February 26, 2009, 07:16:28 PM
i am getting missing db table error looks like mod was unable to make tables.any suggestions?running php 5 and smf 2 rc1

I have provided an extra database install script, could you let me know if that fixes your problem please?

http://www.smfmodding.com/index.php?topic=258.0

I run it, it says it was all created, etc. etc., but it isn't >_>

Where should I put it? I'm putting it into the root of the board.

http://www.smfmodding.com/index.php?issue=14.0
Title: Re: SMF Quiz
Post by: quiz_modder on March 03, 2009, 07:14:36 PM
i am getting missing db table error looks like mod was unable to make tables.any suggestions?running php 5 and smf 2 rc1

I have provided an extra database install script, could you let me know if that fixes your problem please?

http://www.smfmodding.com/index.php?topic=258.0

I run it, it says it was all created, etc. etc., but it isn't >_>

Where should I put it? I'm putting it into the root of the board.

http://www.smfmodding.com/index.php?issue=14.0

Are you still having issues with this?
Title: Re: SMF Quiz
Post by: quiz_modder on March 05, 2009, 07:27:02 PM
I have been working on some new designs for the quiz popup (where you play the quiz). Feedback appreciated and this is your chance to shape it how you would like it.

http://www.smfmodding.com/index.php?topic=296.0

Cheers
Title: Re: SMF Quiz
Post by: C4G-TK on March 22, 2009, 11:51:56 PM
First off, great MOD.  Very Nice.

When installing, I got no FAILED TESTS, but after checking my Error Log, I see that I have one error appearing.  (attached)  It appears to be working.  I haven't made an actual quiz, yet, but I see everything in the Admin area and on the navigation bar.  How do I go about trying to fix this?
Title: Re: SMF Quiz
Post by: quiz_modder on March 23, 2009, 05:13:49 AM
First off, great MOD.  Very Nice.

When installing, I got no FAILED TESTS, but after checking my Error Log, I see that I have one error appearing.  (attached)  It appears to be working.  I haven't made an actual quiz, yet, but I see everything in the Admin area and on the navigation bar.  How do I go about trying to fix this?

Sorry, you need PHP 5 which I assume you don't have installed?
Title: Re: SMF Quiz
Post by: C4G-TK on March 23, 2009, 09:59:57 AM
Actually, I researched the PHP version prior to installing the modification.  My host uses PHP version: 5.1.6-3.7 on the plans that I have.  I will double check with them today to make certain when I have time to get on the phone.


Update:
Everything seems to be working fine.  I've gone through all the tabs and made changes and no more errors have pulled.  I'll just chalk it up to the Moon and Earth being in the correct alignment!  :D

Title: Re: SMF Quiz
Post by: Harvester on March 27, 2009, 11:06:01 PM
I wish this was also for 1.1.8  :)
Title: Re: SMF Quiz
Post by: perro88 on March 28, 2009, 03:14:42 PM
I wish this was also for 1.1.8  :)
me too ;(
Title: Re: SMF Quiz
Post by: Number7 on April 03, 2009, 06:51:04 PM
I wish this was also for 1.1.8  :)
me too ;(

Yes, very much
Title: Re: SMF Quiz
Post by: damnitmike on April 03, 2009, 10:22:46 PM
SMF M-O-D, my curiousity has peaked...I'm going to give it a shot. Stay the course bro! And spend the time you do have on improvements, whatever they may be...... 8)

A suggestion for 1.1.8's......Install 2.0, with just the Quiz mod.

I think once you try 2.0, 1.1.8 is going to seem...'old'.

And then you'll be wanting those 1.1.8 mods to get ported to 2.0..... :o

Title: Re: SMF Quiz
Post by: Eclipse16V on April 08, 2009, 04:33:28 PM
Doesn´t work on my German Board. :-(
Title: Re: SMF Quiz
Post by: mforum on April 09, 2009, 03:47:53 AM
Doesn`t work in my Greek board either ........ when i use English language in forum i can play, when i use Greek language i have "you have already played ......" error message.
Title: Re: SMF Quiz
Post by: gibby on April 09, 2009, 11:33:29 AM
sorry to ask simple question

will this work with other themes installed or do I need to change the code in the theme files - if yes how much to do

Thanks
Title: Re: SMF Quiz
Post by: quiz_modder on April 09, 2009, 12:48:38 PM
I haven't tested it with other themes or languages. I know some people have it working with other themes and languages though.
Title: Re: SMF Quiz
Post by: gibby on April 10, 2009, 04:00:34 AM
Hi

Installed on SMF 2 RC1 and Simple Portal 2.2

All looks good when viewing the index page of the quiz

However when you select another menu i.e. categories the RIGHT simple portal column is moved to the BOTTOM of the screen

Any help please

Thanks

Gibby
Title: Re: SMF Quiz
Post by: quiz_modder on April 10, 2009, 04:23:51 AM
Hi

Installed on SMF 2 RC1 and Simple Portal 2.2

All looks good when viewing the index page of the quiz

However when you select another menu i.e. categories the RIGHT simple portal column is moved to the BOTTOM of the screen

Any help please

Thanks

Gibby

Yeah, use PortaMx instead  ;)

Seriously though, you may have to send me the HTML from the affected page.
Title: Re: SMF Quiz
Post by: gibby on April 10, 2009, 09:31:56 AM
sent a PM

Thanks for the help  :D

Gibby
Title: Re: SMF Quiz
Post by: mforum on April 11, 2009, 04:33:23 AM
I haven't tested it with other themes or languages. I know some people have it working with other themes and languages though.

with other languages, how ?
Title: Re: SMF Quiz
Post by: quiz_modder on April 17, 2009, 04:26:36 AM
Update now available as well as an update to the categories add-on.

Mod Update:- http://custom.simplemachines.org/mods/index.php?mod=1650

Categories Add-on Update:- http://www.smfmodding.com/index.php?action=downloads;sa=view;down=104

Important information:- http://www.smfmodding.com/index.php?topic=334.0

Information regarding unsupported 1.1.8 version:- http://www.smfmodding.com/index.php?topic=237.0
Title: Re: SMF Quiz
Post by: quiz_modder on April 21, 2009, 12:35:28 PM
I haven't tested it with other themes or languages. I know some people have it working with other themes and languages though.

with other languages, how ?

Yes, please refer to my reply on the smfmodding site.

Thanks
Title: Re: SMF Quiz
Post by: Eclipse16V on April 21, 2009, 05:16:58 PM
Does yet the new Version work with other languages (German,...)?
Title: Re: SMF Quiz
Post by: quiz_modder on April 21, 2009, 05:51:44 PM
Does yet the new Version work with other languages (German,...)?

As I have mentioned on the smfmodding site, I have it working on there with French although using english language files named .french. I can't guarantee it will all work 100% with other languages, as I haven't tried and don't speak other languages in order to test it.
Title: Re: SMF Quiz
Post by: Eclipse16V on April 22, 2009, 05:07:39 AM
I had install the last version of this mod on 2.0RC1 and make the german files but i became an error message.
later i will test it with the new version.
Title: Re: SMF Quiz
Post by: quiz_modder on April 22, 2009, 05:17:21 AM
I had install the last version of this mod on 2.0RC1 and make the german files but i became an error message.
later i will test it with the new version.

You may want to read this topic

http://www.smfmodding.com/index.php?issue=43.0

For it to work with another lanugage you need to create the three language files SMFQuiz, SMFQuizAdmin and SMFQuizCommon for your language. You then need to put the following into your index.<language> file.

//Begin SMFQuiz
$txt['SMFQuiz'] = 'Quiz';
//End SMFQuiz

And you will then need to clear out the file cache in order for those to take effect.

As I have mentioned, I have it working using other languages without actually being in another language if you know what I mean. So, enabling French on my board and making the language changes but using English. I have not tested with an actual other language (as I only speak English), so I cannot guarantee it will work 100% perfectly, but would be happy to assist if there are any issues.
Title: Re: SMF Quiz
Post by: mforum on April 22, 2009, 05:19:52 AM
I haven't tested it with other themes or languages. I know some people have it working with other themes and languages though.

with other languages, how ?

Yes, please refer to my reply on the smfmodding site.

Thanks

the problem is not to add the code to other than english language files
the problem is that you have the allready played error message in every quiz if you have other than English language selected from your forum profile.

please try to your forum to choose French or German (i tried with German) as forum language
then try to play whatever quiz you normally could play
you`ll see the "allready played ......" error message ...
then select English language from your profile, try again and you will play just fine
Title: Re: SMF Quiz
Post by: quiz_modder on April 22, 2009, 05:39:51 AM
I haven't tested it with other themes or languages. I know some people have it working with other themes and languages though.

with other languages, how ?

Yes, please refer to my reply on the smfmodding site.

Thanks

the problem is not to add the code to other than english language files
the problem is that you have the allready played error message in every quiz if you have other than English language selected from your forum profile.

please try to your forum to choose French or German (i tried with German) as forum language
then try to play whatever quiz you normally could play
you`ll see the "allready played ......" error message ...
then select English language from your profile, try again and you will play just fine

I just did it this VERY second. I changed to French and it worked fine. As I explained in my reply to you on smfmodding, I haven't set it up to work with German, ONLY French. And I believe the reason why it isn't working on your forum is that you haven't cleared out the file cache? And if you have, perhaps you should enter the URL I suggested so you can see the error message.
Title: Re: SMF Quiz
Post by: quiz_modder on May 01, 2009, 08:02:45 PM
SMF Quiz 1.0.6 final has been released. Taken from the readme file...

Enjoy

SMF Quiz
By smfmodding (smfmodding@gmail.com)

Current Version:
1.0.6

Supported SMF Version(s):
2.0 RC1

Summary:
A Quiz system for SMF which includes:


If you are installing this for the first time it is HIGHLY RECOMMENDED that you also install the SMF Quiz Categories mod afterwards, as this will install some default quiz categories for you. You can obtain this from http://www.smfmodding.com (http://www.smfmodding.com)

Supported Languages:

Installs on:

Support Topic:

Change Log:

1 May 2009 - Release 1.0.6
17 Apr 2009 - Release 1.0.5
16 Apr 2009 - Release 1.0.4

13 Feb 2009 - Release 1.0.3

23rd Jan 2009 - Release Candidate 1.0.2

18th Dec 2008 - Beta 1.0.1

14th Dec 2008 - Alpha 1.0.0
Title: Re: SMF Quiz
Post by: tfs on May 01, 2009, 11:32:42 PM
SMF Quiz 1.0.6 final has been released.

Awesome work!  Anyone interested in this should know that this mod is running beautifully here.
Title: Re: SMF Quiz
Post by: Eclipse16V on May 02, 2009, 01:06:01 AM
I will again insert and will test it times with me. Certainly again with the German language together not to work. I will then provide times German files. Even if it brings probably nothing.
Title: Re: SMF Quiz
Post by: quiz_modder on May 02, 2009, 02:39:39 AM
I will again insert and will test it times with me. Certainly again with the German language together not to work. I will then provide times German files. Even if it brings probably nothing.

If you run into problems let me know and I will try to work with you to resolve them.
Title: Re: SMF Quiz
Post by: Eclipse16V on May 02, 2009, 03:35:44 AM
Are straight at translating.
Title: Re: SMF Quiz
Post by: Eclipse16V on May 02, 2009, 04:49:05 AM
At first i become this error when i will play a quiz:

Quote
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.
Title: Re: SMF Quiz
Post by: quiz_modder on May 02, 2009, 06:36:33 AM
At first i become this error when i will play a quiz:

Quote
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

Could you create me an account on the forum and send the details to smfmodding@googlemail.com and I will have a look later.

Thanks
Title: Re: SMF Quiz
Post by: Eclipse16V on May 02, 2009, 02:23:47 PM
I will make myself the days times to the error and will repair this. Property with you in that English file a double entry found.

SMFQuiz.english.php
Code: [Select]
'NotCreatedQuizes' => 'You have not created any quizes',
I already translated 1/4 into German.
Title: Re: SMF Quiz
Post by: Sudhakar Arjunan on May 02, 2009, 03:29:50 PM
Great update SMF_Modding, will install in my smf soon.
Title: Re: SMF Quiz
Post by: C4G-TK on May 02, 2009, 05:01:10 PM
Nice job with putting the videos in the install area of the package download.  very nice.
Title: Re: SMF Quiz
Post by: quiz_modder on May 02, 2009, 05:12:28 PM
Nice job with putting the videos in the install area of the package download.  very nice.

Yeah, I wasn't sure they showed up very well though?
Title: Re: SMF Quiz
Post by: C4G-TK on May 02, 2009, 05:19:15 PM
Could make out what they were doing by the tag below each video.
about to head over to your site to see what else you have going on.
Title: Re: SMF Quiz
Post by: quiz_modder on May 02, 2009, 05:28:32 PM
Could make out what they were doing by the tag below each video.
about to head over to your site to see what else you have going on.

Not much else to be honest, I spent FAR too much time on the quiz. The wife hardly sees me anymore  :o
Title: Re: SMF Quiz
Post by: tfs on May 02, 2009, 08:43:26 PM
Not much else to be honest, I spent FAR too much time on the quiz. The wife hardly sees me anymore  :o

You're married?  Now I feel kinda guilty for encouraging you to spend so much time on the quiz during the last couple of weeks!  :)
Title: Re: SMF Quiz
Post by: Eclipse16V on May 03, 2009, 04:58:24 AM
Hello, is not yet completely finished however 1/2 remains me still to translating. Unfortunately it lasts I unites a little longer there files only times to change had. Because of my error forum_url (http://www.simplemachines.org/community/index.php?topic=307964.msg2040909#msg2040909) I do not get ahead simply.

Code: [Select]
###################################
###### SMFQuiz.template.php #######
###################################

### SEARCH ###
days

### REPLACE ###
' , $txt['SMFQuiz_Common']['days'] , '


### SEARCH ###
Click to close

### REPLACE ###
' , $txt['SMFQuiz_Common']['Clicktoclose'] , '


### SEARCH ###
Click to zoom/close

### REPLACE ###
' , $txt['SMFQuiz_Common']['Clicktozoomclose'] , '


### SEARCH ###
Start Quiz

### REPLACE ###
' , $txt['SMFQuiz_Common']['StartQuiz'] , '


### SEARCH ###
Next Question

### REPLACE ###
' , $txt['SMFQuiz_Common']['NextQuestion'] , '


### SEARCH ###
Exit Quiz

### REPLACE ###
' , $txt['SMFQuiz_Common']['ExitQuiz'] , '


### SEARCH ###
Dispute

### REPLACE ###
' , $txt['SMFQuiz_Common']['Dispute'] , '


### SEARCH ###
Submit Answer

### REPLACE ###
' , $txt['SMFQuiz_Common']['SubmitAnswer'] , '


### SEARCH ###
seconds

### REPLACE ###
' , $txt['SMFQuiz_Common']['seconds'] , '


### SEARCH ###
timeouts

### REPLACE ###
' , $txt['SMFQuiz_Common']['Timeouts'] , '


### SEARCH ###
incorrect

### REPLACE ###
' , $txt['SMFQuiz_Common']['Incorrect'] , '


### SEARCH ###
correct

### REPLACE ###
' , $txt['SMFQuiz_Common']['Correct'] , '


### SEARCH ###
Question

### REPLACE ###
' , $txt['SMFQuiz_Common']['Question'] , '


### SEARCH ###
Loading

### REPLACE ###
' , $txt['SMFQuiz_Common']['Loading'] , '


### SEARCH ###
Reason

### REPLACE ###
' , $txt['SMFQuiz_Common']['Reason'] , '


### SEARCH ###
Category

### REPLACE ###
' , $txt['SMFQuiz_Common']['Category'] , '


### SEARCH ###
Play Quiz League

### REPLACE ###
' , $txt['SMFQuiz_Common']['PlayQuizLeague'] , '


### SEARCH ###
Recent Quiz League Results

### REPLACE ###
' , $txt['SMFQuiz_Common']['RecentQuizLeagueResults'] , '



###################################
#### SMFQuizCommon.english.php ####
###################################

### Insert ###
'Clicktoclose' => 'Click to close',
'Clicktozoomclose' => 'Click to zoom/close',
'days' => 'days',
'StartQuiz' => 'Start Quiz',
'NextQuestion' => 'Next Question',
'ExitQuiz' => 'Exit Quiz',
'Dispute' => 'Dispute',
'SubmitAnswer' => 'Submit Answer',
'Loading' => 'Loading',
'PlayQuizLeague' => 'Play Quiz League',
'RecentQuizLeagueResults' => 'Recent Quiz League Results',



###################################
#### SMFQuizCommon.german.php #####
###################################

### Insert ###
'Clicktoclose' => 'Hier klicken zum schliessen',
'Clicktozoomclose' => 'Hier klicken zum schliessen/&ouml;ffnen',
'days' => 'Tage',
'StartQuiz' => 'Quiz starten',
'NextQuestion' => 'N&auml;chste Frage',
'ExitQuiz' => 'Quiz beenden',
'Dispute' => 'Dispute',
'SubmitAnswer' => 'Antwort eintragen',
'Loading' => 'Laden...',
'PlayQuizLeague' => 'Quiz Liga spielen',
'RecentQuizLeagueResults' => 'Recent Quiz League Results',
Title: Re: SMF Quiz
Post by: quiz_modder on May 03, 2009, 05:13:43 PM
Hello, is not yet completely finished however 1/2 remains me still to translating. Unfortunately it lasts I unites a little longer there files only times to change had. Because of my error forum_url (http://www.simplemachines.org/community/index.php?topic=307964.msg2040909#msg2040909) I do not get ahead simply.

Code: [Select]
###################################
###### SMFQuiz.template.php #######
###################################

### SEARCH ###
days

### REPLACE ###
' , $txt['SMFQuiz_Common']['days'] , '


### SEARCH ###
Click to close

### REPLACE ###
' , $txt['SMFQuiz_Common']['Clicktoclose'] , '


### SEARCH ###
Click to zoom/close

### REPLACE ###
' , $txt['SMFQuiz_Common']['Clicktozoomclose'] , '


### SEARCH ###
Start Quiz

### REPLACE ###
' , $txt['SMFQuiz_Common']['StartQuiz'] , '


### SEARCH ###
Next Question

### REPLACE ###
' , $txt['SMFQuiz_Common']['NextQuestion'] , '


### SEARCH ###
Exit Quiz

### REPLACE ###
' , $txt['SMFQuiz_Common']['ExitQuiz'] , '


### SEARCH ###
Dispute

### REPLACE ###
' , $txt['SMFQuiz_Common']['Dispute'] , '


### SEARCH ###
Submit Answer

### REPLACE ###
' , $txt['SMFQuiz_Common']['SubmitAnswer'] , '


### SEARCH ###
seconds

### REPLACE ###
' , $txt['SMFQuiz_Common']['seconds'] , '


### SEARCH ###
timeouts

### REPLACE ###
' , $txt['SMFQuiz_Common']['Timeouts'] , '


### SEARCH ###
incorrect

### REPLACE ###
' , $txt['SMFQuiz_Common']['Incorrect'] , '


### SEARCH ###
correct

### REPLACE ###
' , $txt['SMFQuiz_Common']['Correct'] , '


### SEARCH ###
Question

### REPLACE ###
' , $txt['SMFQuiz_Common']['Question'] , '


### SEARCH ###
Loading

### REPLACE ###
' , $txt['SMFQuiz_Common']['Loading'] , '


### SEARCH ###
Reason

### REPLACE ###
' , $txt['SMFQuiz_Common']['Reason'] , '


### SEARCH ###
Category

### REPLACE ###
' , $txt['SMFQuiz_Common']['Category'] , '


### SEARCH ###
Play Quiz League

### REPLACE ###
' , $txt['SMFQuiz_Common']['PlayQuizLeague'] , '


### SEARCH ###
Recent Quiz League Results

### REPLACE ###
' , $txt['SMFQuiz_Common']['RecentQuizLeagueResults'] , '



###################################
#### SMFQuizCommon.english.php ####
###################################

### Insert ###
'Clicktoclose' => 'Click to close',
'Clicktozoomclose' => 'Click to zoom/close',
'days' => 'days',
'StartQuiz' => 'Start Quiz',
'NextQuestion' => 'Next Question',
'ExitQuiz' => 'Exit Quiz',
'Dispute' => 'Dispute',
'SubmitAnswer' => 'Submit Answer',
'Loading' => 'Loading',
'PlayQuizLeague' => 'Play Quiz League',
'RecentQuizLeagueResults' => 'Recent Quiz League Results',



###################################
#### SMFQuizCommon.german.php #####
###################################

### Insert ###
'Clicktoclose' => 'Hier klicken zum schliessen',
'Clicktozoomclose' => 'Hier klicken zum schliessen/&ouml;ffnen',
'days' => 'Tage',
'StartQuiz' => 'Quiz starten',
'NextQuestion' => 'N&auml;chste Frage',
'ExitQuiz' => 'Quiz beenden',
'Dispute' => 'Dispute',
'SubmitAnswer' => 'Antwort eintragen',
'Loading' => 'Laden...',
'PlayQuizLeague' => 'Quiz Liga spielen',
'RecentQuizLeagueResults' => 'Recent Quiz League Results',

Do you have your forum url issue resolved now?
Title: Re: SMF Quiz
Post by: Eclipse16V on May 04, 2009, 12:18:37 AM
No, it removed in each language file concerned only once and with index.php replaced. At least the Quiz Mod goes now again. Some things still are on English, but I find also still.
Title: Re: SMF Quiz
Post by: mforum on May 04, 2009, 06:43:20 AM
as the earlier version, 1.6 doesn`t work in Greek language  :'(

when i tried to play a Greek language quiz that was already in db from older version i had the "you must wait 30 mins ...." error message

on deleting older Greek language quiz , i have time session db error

on adding a new quiz which includes Greek characters i have:
Duplicate entry '' for key 2
File: /home/******/public_html/forum/Sources/SMFQuizDb.php
Line: 1085 
Title: Re: SMF Quiz
Post by: quiz_modder on May 04, 2009, 09:10:17 AM
as the earlier version, 1.6 doesn`t work in Greek language  :'(

when i tried to play a Greek language quiz that was already in db from older version i had the "you must wait 30 mins ...." error message

on deleting older Greek language quiz , i have time session db error

on adding a new quiz which includes Greek characters i have:
Duplicate entry '' for key 2
File: /home/******/public_html/forum/Sources/SMFQuizDb.php
Line: 1085

Set me up an aco****** on your forum and I will have a look.
Title: Re: SMF Quiz
Post by: mrtrc266 on May 04, 2009, 11:35:52 AM
Hello, I just installed the lastest Quiz Mod and must say you have made some HUGE Impovements....Great Job!
 
It installed clean and seems to work great thus far but I do have one error in my error log.
 
2: curl_setopt() [<a href='function.curl-setopt'>function.curl-setopt</a>]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set
File: /home/xxxxxx/public_html/Sources/SMFQuizLoad.php
Line: 112
 
Also, on the Quiz Importer on my site it's a white background with white fonts, I did see the Themes/default/css/quiz_css/quiz.css file is that the correct file for the Importer Section in the Admin or just for the Quiz itself? Can you point me in the right direction?
 
Thanks in advance.
Title: Re: SMF Quiz
Post by: quiz_modder on May 04, 2009, 12:07:56 PM
Hello, I just installed the lastest Quiz Mod and must say you have made some HUGE Impovements....Great Job!
 
It installed clean and seems to work great thus far but I do have one error in my error log.
 
2: curl_setopt() [<a href='function.curl-setopt'>function.curl-setopt</a>]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set
File: /home/xxxxxx/public_html/Sources/SMFQuizLoad.php
Line: 112

Also, on the Quiz Importer on my site it's a white background with white fonts, I did see the Themes/default/css/quiz_css/quiz.css file is that the correct file for the Importer Section in the Admin or just for the Quiz itself? Can you point me in the right direction?
 
Thanks in advance.

Hopefully if that item in your log isn't affecting anything then it is safe to ignore. I can't say I know the reason off the top of my head but will look into it.

With regard to the quiz importer, it uses your forum's css for the most part. I have checked it on a number of forums and themes and it works fine. I can only assume it is something with your forum styling? The quiz.css is for the actual playing of the quiz.

Let me know if you continue having problems with the above and if you give me a login perhaps I can look in more detail.

Cheers
Title: Re: SMF Quiz
Post by: Eclipse16V on May 05, 2009, 07:04:32 AM
Where do I find the language in the Quiz am spent?

EDIT:
OK, i find it in the QuizClient.js but how can i include there the language file?
Title: Re: SMF Quiz
Post by: quiz_modder on May 06, 2009, 06:49:34 AM
Where do I find the language in the Quiz am spent?

EDIT:
OK, i find it in the QuizClient.js but how can i include there the language file?

Sorry, I am not sure I understand? Also, it might be easier to submit your issues to the SMF Modding site, as it is easier for me to keep track of them there.

http://www.smfmodding.com/index.php?board=23.0

Thanks
Title: Re: SMF Quiz
Post by: quiz_modder on May 07, 2009, 08:16:17 PM
FYI, once you install this mod you can import over 350 (and rising) quizes directly into your site ready to play.
Title: Re: SMF Quiz
Post by: islam2hamy on May 13, 2009, 01:55:48 PM
does guest can play ?
Title: Re: SMF Quiz
Post by: quiz_modder on May 13, 2009, 05:48:45 PM
does guest can play ?

No, members only.
Title: Re: SMF Quiz
Post by: quiz_modder on May 13, 2009, 07:32:35 PM
v1.0.7 has now been released

http://custom.simplemachines.org/mods/index.php?mod=1650
Title: Re: SMF Quiz
Post by: LOVELORD on May 13, 2009, 08:47:39 PM
how to put this into 1.1.8??
Title: Re: SMF Quiz
Post by: tfs on May 13, 2009, 08:48:41 PM
v1.0.7 has now been released

http://custom.simplemachines.org/mods/index.php?mod=1650

Dude, the last two releases of this mod have turned it into one of the most complete mods I have seen.  Nice work!
Title: Re: SMF Quiz
Post by: quiz_modder on May 13, 2009, 08:59:01 PM
how to put this into 1.1.8??

I don't work on a 1.1.8 version, but a member on my forum has done some work on this. Please see http://www.smfmodding.com/index.php?topic=237.0 for further information.
Title: Re: SMF Quiz
Post by: quiz_modder on May 13, 2009, 08:59:17 PM
v1.0.7 has now been released

http://custom.simplemachines.org/mods/index.php?mod=1650

Dude, the last two releases of this mod have turned it into one of the most complete mods I have seen.  Nice work!

Thanks  :)
Title: Re: SMF Quiz
Post by: islam2hamy on May 13, 2009, 11:09:34 PM
No, members only.
can you please make guest can play !?
Title: Re: SMF Quiz
Post by: quiz_modder on May 14, 2009, 04:13:52 AM
No, members only.
can you please make guest can play !?

Actually, you could set it up so guests can play, they just won't be able to have their scores saved obviously.
Title: Re: SMF Quiz
Post by: islam2hamy on May 14, 2009, 09:18:35 AM
ok,
if i can do that ,so no problem.
thank you
Title: Re: SMF Quiz
Post by: Eclipse16V on May 14, 2009, 11:24:00 AM
Here the new german lang.
http://www.smfmodding.com/index.php?topic=447.0
Title: Re: SMF Quiz
Post by: Shades. on May 15, 2009, 09:23:42 PM
v1.0.7 has now been released

http://custom.simplemachines.org/mods/index.php?mod=1650
I have v1.0.6...how do I upgrade to v1.0.7?
Title: Re: SMF Quiz
Post by: quiz_modder on May 16, 2009, 03:51:08 AM
v1.0.7 has now been released

http://custom.simplemachines.org/mods/index.php?mod=1650
I have v1.0.6...how do I upgrade to v1.0.7?

Just uninstall and reinstall. It won't remove any of the data.
Title: Re: SMF Quiz
Post by: qubbah on May 19, 2009, 08:29:42 PM
i have the problem when try to play quiz.. its tell me to contact server administrator while i click the play button.
Title: Re: SMF Quiz
Post by: quiz_modder on May 20, 2009, 04:05:12 AM
i have the problem when try to play quiz.. its tell me to contact server administrator while i click the play button.

Try looking at the second post in this thread

http://www.smfmodding.com/index.php?topic=416.msg1707#new

See if that helps to provide a reason why you are getting this.

Thanks
Title: Re: SMF Quiz
Post by: Arveles on May 25, 2009, 06:35:32 PM
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.
Title: Re: SMF Quiz
Post by: quiz_modder on May 26, 2009, 03:53:59 AM
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

Again, try looking at the second post in this thread

http://www.smfmodding.com/index.php?topic=416.0
Title: Re: SMF Quiz
Post by: quiz_modder on May 31, 2009, 07:36:14 PM
Did you get it resolved?
Title: Re: SMF Quiz
Post by: bluerose927 on June 18, 2009, 10:23:06 PM
I learned a long time ago that you get no respect with giving things away.

Tell me about it. I wrote this mod for my forum and then thought "oh, other people might like this too". So I put in a lot of effort to make it available for others and now I have had a lot of ungrateful comments. Hey, I wasn't expecting gratitude, but not some of the moaning I have seen. However, I have had some nice comments too that has made it seem worthwhile.

I am speaking up to say THANK YOU! I am working my way through the install for my own site, but have played at SMFModding and it is pure genius.
Thanks!
Title: Re: SMF Quiz
Post by: bluerose927 on June 18, 2009, 10:25:24 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg9.imageshack.us%2Fimg9%2F9733%2F20090219025316kh3.jpg&hash=551ef164116d9f44cc761cb82080090f)

------------------------------------and-------------------------------
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg18.imageshack.us%2Fimg18%2F7056%2F20090219025339sr3.jpg&hash=e6308b0ab456c8f27f96e0ed7ed0572f)

Did you get this fixed. I am at 2.0 RC1.1 and am having the same issue.
Thanks for any help.
Title: Re: SMF Quiz
Post by: quiz_modder on June 21, 2009, 11:36:59 AM
I would suggest reading the following post

http://www.smfmodding.com/index.php?topic=416.0

If this doesn't help, please let me know.
Title: Re: SMF Quiz
Post by: Chaos Dragon on July 10, 2009, 02:52:02 PM
I just uploaded Quiz 1.0.7 to my SMF 2.0RC1-1 and it installed without a hitch, but when i try to go to the Admin Panel for the Quiz mod I get this error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/midev0/public_html/thecommentzone/forum/Sources/SMFQuizAdmin.php on line 2303

What would the fix be for this?

Title: Re: SMF Quiz
Post by: quiz_modder on July 10, 2009, 05:27:44 PM
I just uploaded Quiz 1.0.7 to my SMF 2.0RC1-1 and it installed without a hitch, but when i try to go to the Admin Panel for the Quiz mod I get this error:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/midev0/public_html/thecommentzone/forum/Sources/SMFQuizAdmin.php on line 2303

What would the fix be for this?

Check your version of PHP, it requires 5
Title: Re: SMF Quiz
Post by: Chaos Dragon on July 10, 2009, 06:22:08 PM
I am running PHP 5...It's all good though.....As mentioned in this post......Parse Error In SMFQuizAdmin.php
« Reply #6 (http://www.smfmodding.com/index.php?topic=510.msg2009#msg2009)

Mu host is looking into why I am having this problem even though I am running the most current PHP 5.
I will update you on the situation.
Title: Re: SMF Quiz
Post by: Chaos Dragon on July 10, 2009, 07:48:59 PM
Every things is now working. It was an issue on my hosts end......
Title: Re: SMF Quiz
Post by: Realinfo on July 20, 2009, 09:00:03 PM
When U make this mod for 1.1.X.............. There are too many people are on this ver.................
Title: Re: SMF Quiz
Post by: primetime on August 02, 2009, 03:56:07 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg9.imageshack.us%2Fimg9%2F9733%2F20090219025316kh3.jpg&hash=551ef164116d9f44cc761cb82080090f)

------------------------------------and-------------------------------
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg18.imageshack.us%2Fimg18%2F7056%2F20090219025339sr3.jpg&hash=e6308b0ab456c8f27f96e0ed7ed0572f)

Did you get this fixed. I am at 2.0 RC1.1 and am having the same issue.
Thanks for any help.

I get the same error.
Title: Re: SMF Quiz
Post by: primetime on August 02, 2009, 05:42:29 PM
I uninstalled 1.07 and installed 1.08 beta 2 and everything works fine.
Title: Re: SMF Quiz
Post by: ForumMustang.com on September 28, 2009, 11:52:33 AM
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

Again, try looking at the second post in this thread

http://www.smfmodding.com/index.php?topic=416.0 (http://www.smfmodding.com/index.php?topic=416.0)

I have the same error and here is the message displayed by the xml file:

Quote
XML Parsing Error: junk after document element
Location: http://www.site.com/Sources/SMFQuizStart.php?id_quiz=1
Line Number 2, Column 1:<b>Notice</b>:  Undefined variable: scripturl in <b>/home/account/public_html/Themes/default/languages/Modifications.english.php</b> on line <b>99</b><br />
^

The line 99 in Modifications.english.php is related to a different mod "Auto email inactive users".
When I delete the line a different error appears with this content:
Quote
<b>Notice</b>:  Undefined index:  mc_unapproved_poststopics in <b>/home/account/public_html/Sources/Subs.php</b> on line <b>3819</b><br />
^


My forum is in French and when I select the English language from my profile control panel, there is no error at all.
I tried to copy all the content of the mod from the English language files into the French ones but it was with no success.
Title: Re: SMF Quiz
Post by: quiz_modder on September 30, 2009, 07:42:52 PM
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

Again, try looking at the second post in this thread

http://www.smfmodding.com/index.php?topic=416.0 (http://www.smfmodding.com/index.php?topic=416.0)

I have the same error and here is the message displayed by the xml file:

Quote
XML Parsing Error: junk after document element
Location: http://www.site.com/Sources/SMFQuizStart.php?id_quiz=1
Line Number 2, Column 1:<b>Notice</b>:  Undefined variable: scripturl in <b>/home/account/public_html/Themes/default/languages/Modifications.english.php</b> on line <b>99</b><br />
^

The line 99 in Modifications.english.php is related to a different mod "Auto email inactive users".
When I delete the line a different error appears with this content:
Quote
<b>Notice</b>:  Undefined index:  mc_unapproved_poststopics in <b>/home/account/public_html/Sources/Subs.php</b> on line <b>3819</b><br />
^


My forum is in French and when I select the English language from my profile control panel, there is no error at all.
I tried to copy all the content of the mod from the English language files into the French ones but it was with no success.

Have you tried reinstalling the mod?
Title: Re: SMF Quiz
Post by: ForumMustang.com on September 30, 2009, 09:42:07 PM
Yes I did. I even tried an older version of the mod since my post and still have the same error. I created some qizzes and all I need is this bug to be fixed to make it available. :)
Title: Re: SMF Quiz
Post by: islam2hamy on October 01, 2009, 03:22:08 AM
Quote
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

me also get this error when i am using another language than English as default (Arabic) .

1.0.7
Title: Re: SMF Quiz
Post by: quiz_modder on October 01, 2009, 04:38:06 AM
Quote
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

me also get this error when i am using another language than English as default (Arabic) .

1.0.7

If you follow the instructions in this thread, what is the actual error message you get?

http://www.smfmodding.com/index.php?topic=416.0
Title: Re: SMF Quiz
Post by: ForumMustang.com on October 01, 2009, 08:36:30 AM
He probably has the same error message than me. This bug appears when a different language than English is used.



I have the same error and here is the message displayed by the xml file:

Quote
XML Parsing Error: junk after document element
Location: http://www.site.com/Sources/SMFQuizStart.php?id_quiz=1 (http://www.site.com/Sources/SMFQuizStart.php?id_quiz=1)
Line Number 2, Column 1:<b>Notice</b>:  Undefined variable: scripturl in <b>/home/account/public_html/Themes/default/languages/Modifications.english.php</b> on line <b>99</b><br />
^

The line 99 in Modifications.english.php is related to a different mod "Auto email inactive users".
When I delete the line a different error appears with this content:
Quote
<b>Notice</b>:  Undefined index:  mc_unapproved_poststopics in <b>/home/account/public_html/Sources/Subs.php</b> on line <b>3819</b><br />
^



Title: Re: SMF Quiz
Post by: islam2hamy on October 01, 2009, 09:06:32 AM
He probably has the same error message than me. This bug appears when a different language than English is used.

yes , you are right .
Title: Re: SMF Quiz
Post by: islam2hamy on October 01, 2009, 10:03:26 AM
Quote
8: Undefined index: SMFQuiz
Apply Filter: Only show the errors from this file
File: /Sources/Subs.php
Line: 3867

also i get this error


Quote
8: Undefined index: SMFQuiz
Apply Filter: Only show the errors from this file
File: /Sources/SMFQuiz.php
Line: 14
Title: Re: SMF Quiz
Post by: quiz_modder on October 01, 2009, 11:45:06 AM
I think the only way for me to really investigate this error on non-English forums is for someone to give me access to that forum or a test one (preferably). I will need admin and FTP access to this forum.
Title: Re: SMF Quiz
Post by: Joe N on October 01, 2009, 12:02:13 PM
SMF 1X!
Title: Re: SMF Quiz
Post by: quiz_modder on October 01, 2009, 12:03:17 PM
SMF 1X!

Sorry, no chance. I don't have enough time to work on the 2X version at the moment, let alone create a version that will also work with old versions of SMF. Perhaps you should make the move to SMF 2  ;)
Title: Re: SMF Quiz
Post by: ForumMustang.com on October 01, 2009, 12:36:27 PM
I think the only way for me to really investigate this error on non-English forums is for someone to give me access to that forum or a test one (preferably). I will need admin and FTP access to this forum.

I sent you a PM to access a test forum. Thanks. ;)
Title: Re: SMF Quiz
Post by: islam2hamy on October 01, 2009, 02:00:14 PM
I sent you a PM to access a test forum. Thanks. ;)

Thank you chadon
Title: Re: SMF Quiz
Post by: quiz_modder on October 01, 2009, 03:32:27 PM
I sent you a PM to access a test forum. Thanks. ;)

Thank you chadon

I have sent an email to the guy who got it working in German, hopefully he will be able to help

http://www.smfmodding.com/index.php?topic=486.msg2155
Title: Re: SMF Quiz
Post by: islam2hamy on October 02, 2009, 01:41:01 AM
I have sent an email to the guy who got it working in German, hopefully he will be able to help

http://www.smfmodding.com/index.php?topic=486.msg2155

ok , Thank you.
Title: Re: SMF Quiz
Post by: quiz_modder on October 02, 2009, 04:24:19 AM
I think the only way for me to really investigate this error on non-English forums is for someone to give me access to that forum or a test one (preferably). I will need admin and FTP access to this forum.

I sent you a PM to access a test forum. Thanks. ;)

This particular issue was due to the use of "Votre navigateur n\'est pas compatible!" in the language file. The \' gets translated to ' in the script and this causes a javascript error.
Title: Re: SMF Quiz
Post by: islam2hamy on October 02, 2009, 08:09:55 AM
This particular issue was due to the use of "Votre navigateur n\'est pas compatible!" in the language file. The \' gets translated to ' in the script and this causes a javascript error.


so , how to fix it ??
Title: Re: SMF Quiz
Post by: ForumMustang.com on October 02, 2009, 08:51:16 AM
S_M_F_ Modding found the problem in the language file SMFQuiz.yourlang.php

The apostrophe was located in the javascript language strings below. Make sur you don't have anything like it in this location.

Code: [Select]
// Language text located in javascript
$txt['SMFQuiz_Javascript'] = array(
    'QuizMaximum' => 'Limite de tentatives atteinte pour ce Quiz',
    'QuizLeagueMaximum' =>'Vous avez atteint votre limite de jeu dans ce tour pour cette League. Veuillez attendre le début du prochain tour.',
    'BrowserBroke' => 'Votre navigateur nest pas compatible!',
    'ProblemGettingQuestions' => 'Un probleme est apparu pour afficher cette question, essayez a nouveau...',
    'Timeout' => 'limite de temps dépassé',
    'NoQuizSpecified' => 'Aucun Quiz ou League Spécifié',
    'BrowserNotSupportHttp' => 'Votre navigateur ne supporte pas les requetes HTTP',
    'MustBeLoggedIn' => 'Vous devez vous identifier pour jouer a ce quiz',
    'SessionTime' => 'Vous ne pouvez pas continuer a jouer ce Quiz, vous devrez attendre la période spécifiée avant de jouer a nouveau',
);

I hope this helps.
 
Title: Re: SMF Quiz
Post by: islam2hamy on October 02, 2009, 08:59:58 AM
anything like what ??

Code: [Select]
// Language text located in javascript
$txt['SMFQuiz_Javascript'] = array(
'QuizMaximum' => 'You have already played this quiz over the maximum amount of times allowed',
'QuizLeagueMaximum' =>'You have already played this quiz league over the maximum amount of times allowed for this round\nPlease return when the next round starts.',
'BrowserBroke' => 'Your browser broke!',
'ProblemGettingQuestions' => 'There was a problem getting the question, trying again...',
'Timeout' => 'إنتهى الوقت',
'NoQuizSpecified' => 'No quiz or league specified',
'BrowserNotSupportHttp' => 'المتصفح الخاص بك لا يدعم الـ HTTP',
'MustBeLoggedIn' => 'يجب عليك تسجيل الدخول لكى تبدأ المسابقة',
'SessionTime' => 'You cannot continue playing the quiz yet, you must wait for the specified period to elapse before playing the quiz again',
);
Title: Re: SMF Quiz
Post by: ForumMustang.com on October 02, 2009, 09:06:07 AM
Anything like apostrophes or accents. I can't read your language so I wouldn't tell what is wrong but maybe you should leave everything in English in this portion of code.
Title: Re: SMF Quiz
Post by: islam2hamy on October 02, 2009, 09:08:42 AM
does it work with you good?
Title: Re: SMF Quiz
Post by: islam2hamy on October 02, 2009, 09:13:11 AM
i replaced it with English
but the same error
Title: Re: SMF Quiz
Post by: ForumMustang.com on October 02, 2009, 09:14:48 AM
It works perfectly on my test forum but I just applied the same correction on my production forum but the error is not gone either. :(
Title: Re: SMF Quiz
Post by: quizzz on October 02, 2009, 04:35:09 PM
Hi,I've got the same problem here, code language spanish is like english language i only change SMFQuiz.english.php to SMFQuiz.spanish_es.php but only work in english language forum setup, any idea?
Title: Re: SMF Quiz
Post by: ForumMustang.com on October 02, 2009, 05:20:51 PM
S_M_F_Modding found the problem on my forum and it was due to a conflict with two other mods. One is "auto email inactive users" and the other one was probably an old mod that left some code after it was removed in sources/Subs.php
You can try to uninstall the email inactive users mod if you have it or all other mods one by one to try to find the conflict. Or wait for S_M_F_Modding to see if he has a better idea. :)
Title: Re: SMF Quiz
Post by: quiz_modder on October 02, 2009, 05:37:57 PM
OK, firstly follow the steps in the FAQ to see if you can get a more detailed answer. In particular any error messages returned instead of the XML. This is how I found out there was an error with an old mod on chadon's subs.php file.

http://www.smfmodding.com/index.php?topic=416.0

Secondly, if the quiz popup is simply failing check the javascript error log for your browser to see if it gives you any details on potential issues. One of the problems I identified in chadon's installation was that the language specific entries caused the javascript to fail due to having the ' character output in a string.

If you are still having problems you will need to give me admin and FTP access to whatever test forum you have for me to be able to investigate further when I get some free time.

Cheers
Title: Re: SMF Quiz
Post by: islam2hamy on October 03, 2009, 04:43:58 AM
xml error :

Quote
<b>Notice</b>:  Undefined index:  SMFQuiz in <b> /Sources/Subs.php</b> on line <b>3867</b><br />

Quote
line 3867 is :'title' => $txt['SMFQuiz'],

p.s:i am test the mod on localhost
Title: Re: SMF Quiz
Post by: quiz_modder on October 03, 2009, 06:10:18 AM
xml error :

Quote
<b>Notice</b>:  Undefined index:  SMFQuiz in <b> /Sources/Subs.php</b> on line <b>3867</b><br />

Quote
line 3867 is :'title' => $txt['SMFQuiz'],

p.s:i am test the mod on localhost

In your Themes languages folder there should be a file index.<your language>.php e.g. index.english.php

Add the following to this file

Code: [Select]
//Begin SMFQuiz
$txt['SMFQuiz'] = 'Quiz';
//End SMFQuiz
Title: Re: SMF Quiz
Post by: islam2hamy on October 03, 2009, 07:56:53 AM
woow,yes it is
i forgot to add it,

Thank you , and thank you chadon.

that was the problem not Java error
Title: Re: SMF Quiz
Post by: islam2hamy on October 03, 2009, 07:59:27 AM
were can i found

Quote
Quiz Details

You will be given 2 questions
You will have 20 seconds to answer each question
This quiz can be played 1 times
This quiz is configured to show correct answers after submitting answer
You currently have a session for this quiz open and therefore this previous session will be resumed

to translate it ??

how i can also make the text align Right when it is Arabic and Left when it is English ??
Title: Re: SMF Quiz
Post by: quiz_modder on October 03, 2009, 08:31:47 AM
were can i found

Quote
Quiz Details

You will be given 2 questions
You will have 20 seconds to answer each question
This quiz can be played 1 times
This quiz is configured to show correct answers after submitting answer
You currently have a session for this quiz open and therefore this previous session will be resumed

to translate it ??

how i can also make the text align Right when it is Arabic and Left when it is English ??

To translate this you will need to modify the english text in QuizClient.js

Alignment of the text will probably need to be done in there as well. Look into the JQuery script that says $("#firstQuestionSpan").html(quizCompleteDivOutput);
Title: Re: SMF Quiz
Post by: islam2hamy on October 03, 2009, 08:44:28 AM
To translate this you will need to modify the english text in QuizClient.js

Alignment of the text will probably need to be done in there as well. Look into the JQuery script that says $("#firstQuestionSpan").html(quizCompleteDivOutput);

Mmm, but why you don't grab them to the language file
because if some one want to use Many languages in his forum ??

and make the text auto align too.
Title: Re: SMF Quiz
Post by: meehan09 on October 03, 2009, 08:47:51 AM
Ive manually edited all files and uploaded everything, but i cannot run installScript.php


I get thease errors when running it,


Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1473

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1474

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1475

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1476

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1477

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1478

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1479


Ive tried chmod the file but it doesnt seem to be working?, Can anyone help me fix this for smf 2 :0


Thanks in advance,
Paul
Title: Re: SMF Quiz
Post by: quiz_modder on October 03, 2009, 09:01:23 AM
To translate this you will need to modify the english text in QuizClient.js

Alignment of the text will probably need to be done in there as well. Look into the JQuery script that says $("#firstQuestionSpan").html(quizCompleteDivOutput);

Mmm, but why you don't grab them to the language file
because if some one want to use Many languages in his forum ??

and make the text auto align too.

Because I ran out of time  ;D

When I get more time to work on the mod I will make those changes so they come from a language file.
Title: Re: SMF Quiz
Post by: islam2hamy on October 03, 2009, 09:02:55 AM
ok,
Thank you for this very good mod .
Title: Re: SMF Quiz
Post by: quiz_modder on October 03, 2009, 09:04:17 AM
Ive manually edited all files and uploaded everything, but i cannot run installScript.php


I get thease errors when running it,


Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1473

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1474

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1475

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1476

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1477

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1478

Warning: chmod() [function.chmod]: Operation not permitted in /home/reptiles/public_html/installScript.php on line 1479


Ive tried chmod the file but it doesnt seem to be working?, Can anyone help me fix this for smf 2 :0


Thanks in advance,
Paul

The script is trying to chmod the following files to 0755

SMFQuizStart.php
SMFQuizQuestions.php
SMFQuizEnd.php
SMFQuizAnswers.php
SMFQuizExport.php
SMFQuizAjax.php
SMFQuizDispute.php

I am not sure why yours won't allow you to do this, I guess it is permissions on your host? I suppose you could do this manually after the install.
Title: Re: SMF Quiz
Post by: meehan09 on October 03, 2009, 09:29:06 AM
I removed this from the installScript.php to not chmod permissions and all is working ok now :)


I removed the php to chmod them files and install worked when running manually, I then chmodd them files and now all works ok and quizes can be played and installed.


Is it possible to show the games in catergeries at the top? Has mine are all shown in New Quizes & Popular Quizes.....


Can a catergories section be added so all quizes are in cats? Hope your able to help and what an excellent mod this is, just need a way add catergries to page so people can view each cat and find quizes.


Regards
Paul
Title: Re: SMF Quiz
Post by: quiz_modder on October 03, 2009, 09:31:46 AM
I removed this from the installScript.php to not chmod permissions and all is working ok now :)


I removed the php to chmod them files and install worked when running manually, I then chmodd them files and now all works ok and quizes can be played and installed.


Is it possible to show the games in catergeries at the top? Has mine are all shown in New Quizes & Popular Quizes.....


Can a catergories section be added so all quizes are in cats? Hope your able to help and what an excellent mod this is, just need a way add catergries to page so people can view each cat and find quizes.


Regards
Paul

Sorry, I am not sure I understand the question. Could you explain that again?  :-[
Title: Re: SMF Quiz
Post by: meehan09 on October 03, 2009, 09:34:36 AM
Can all the quizes be placed into catorgries on the quiz main page above NEW QUIZEZ


For an example like the games arcade where all the games are shown in cats with thumbnails ?


Hope this helps, ust so its easyier for members to get to quizes by going to catorgries ( Animal Quizes, Cartoons Quizes, TV Quizez ) etc etc, Has mine are just showing all in NEW QUIZES?


hope your able to understand me a little more here.


Thanks in advance,
Paul
Title: Re: SMF Quiz
Post by: quiz_modder on October 03, 2009, 09:38:33 AM
Can all the quizes be placed into catorgries on the quiz main page above NEW QUIZEZ


For an example like the games arcade where all the games are shown in cats with thumbnails ?


Hope this helps, ust so its easyier for members to get to quizes by going to catorgries ( Animal Quizes, Cartoons Quizes, TV Quizez ) etc etc, Has mine are just showing all in NEW QUIZES?


hope your able to understand me a little more here.


Thanks in advance,
Paul

Sorry, that can't be done at the moment with the mod the way it is. How would that work when you have 500+ quizzes anyway? I guess you could put in some paging, but then the main page would start to look overcrowded wouldn't it?

I don't know what version you installed, but on 1.0.8 beta 2 there is a "Random Unplayed Quizzes" block at the top which lists some random quizzes the user hasn't played, so this can help a little.

It's an idea and I will think about it next time I get some free time to work on the mod.

Cheers
Title: Re: SMF Quiz
Post by: meehan09 on October 03, 2009, 09:41:40 AM
what i am meaning is a block under the Quiz Search


Called Catorgries


Then have your guizes save to them cats and then people can select the cats off different quizes like arcade games.

Can this be added?, Has the guizes save into cats its just showing the cats in a block and when clicked goes to page with them games from that cat?


Thanks you again and i hope this can be added or will be added to the near future.

Iam using :

Version Information:
Mod Version: 1.0.7
Current SMF Quiz Version: 1.0.8 beta2



Regards,
Paul
Title: Re: SMF Quiz
Post by: quiz_modder on October 04, 2009, 11:05:46 AM
what i am meaning is a block under the Quiz Search


Called Catorgries


Then have your guizes save to them cats and then people can select the cats off different quizes like arcade games.

Can this be added?, Has the guizes save into cats its just showing the cats in a block and when clicked goes to page with them games from that cat?


Thanks you again and i hope this can be added or will be added to the near future.

Iam using :

Version Information:
Mod Version: 1.0.7
Current SMF Quiz Version: 1.0.8 beta2



Regards,
Paul

The quizzes are already saved off to categories of your choosing. I assume you just want the categories list on the main page rather than in a separate tab?
Title: Re: SMF Quiz
Post by: RvG on October 22, 2009, 05:37:21 PM
thank you so much for this mod. :)

hope you'll continue developing it.
Title: Re: SMF Quiz
Post by: king kratos on October 23, 2009, 07:55:00 PM
I love this mod! However, I cannot figure a couple things out.

First, how do I assign permissions at the category level? Example, I have two categories, Just for Students and Just for Leaders. The students have no need (nor should they be allowed) to see the Just for Leaders category and the quizzes included in that category.

Second, how do I assign permissions at the quiz level? Example, In the Just for Leaders category, I have quizzes for New Leaders and Level One Leaders. A person who wishes to become a leader must complete the New Leader quizzes just be be a leader. Once they have completed the New Leader quizzes, they are moved from New Leader membergroup to Level One Leader Membergroup. At this point, they need to complete the Level One Quizzes to advance to a Level Two Leader. The New Leaders are not allowed to see the Level One Leader quizzes until they have completed the New Leader quizzes and have been moved to the Level One Leader membergroup.

I looked everywhere and could not find a way to set permissions in this fashion. I guess my question is, if this is not a default setting, how would I add the code to do this. I am still quite new to php and even though I have learned quite a lot thus far, I still do not quite understand everything. The permissions really confuse me and I am having a hard time figuring this out.

Please help.

Thank you,
Kratos
Title: Re: SMF Quiz
Post by: LOVELORD on October 26, 2009, 08:50:30 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg41.imageshack.us%2Fimg41%2F2736%2Floadw.jpg&hash=5114491e65667240ce51a784e79e4f53)

Here you can see that I cant define question type?

What i need to fix?

I use 1.1.10 and little modfied scripts from smf moding?
Title: Re: SMF Quiz
Post by: king kratos on October 29, 2009, 08:29:02 PM
I love this mod! However, I cannot figure a couple things out.

First, how do I assign permissions at the category level? Example, I have two categories, Just for Students and Just for Leaders. The students have no need (nor should they be allowed) to see the Just for Leaders category and the quizzes included in that category.

Second, how do I assign permissions at the quiz level? Example, In the Just for Leaders category, I have quizzes for New Leaders and Level One Leaders. A person who wishes to become a leader must complete the New Leader quizzes just be be a leader. Once they have completed the New Leader quizzes, they are moved from New Leader membergroup to Level One Leader Membergroup. At this point, they need to complete the Level One Quizzes to advance to a Level Two Leader. The New Leaders are not allowed to see the Level One Leader quizzes until they have completed the New Leader quizzes and have been moved to the Level One Leader membergroup.

I looked everywhere and could not find a way to set permissions in this fashion. I guess my question is, if this is not a default setting, how would I add the code to do this. I am still quite new to php and even though I have learned quite a lot thus far, I still do not quite understand everything. The permissions really confuse me and I am having a hard time figuring this out.

Please help.

Thank you,
Kratos

Just wondering if anyone has any info about this?

Kratos
Title: Re: SMF Quiz
Post by: king kratos on November 04, 2009, 10:22:09 AM
I love this mod! However, I cannot figure a couple things out.

First, how do I assign permissions at the category level? Example, I have two categories, Just for Students and Just for Leaders. The students have no need (nor should they be allowed) to see the Just for Leaders category and the quizzes included in that category.

Second, how do I assign permissions at the quiz level? Example, In the Just for Leaders category, I have quizzes for New Leaders and Level One Leaders. A person who wishes to become a leader must complete the New Leader quizzes just be be a leader. Once they have completed the New Leader quizzes, they are moved from New Leader membergroup to Level One Leader Membergroup. At this point, they need to complete the Level One Quizzes to advance to a Level Two Leader. The New Leaders are not allowed to see the Level One Leader quizzes until they have completed the New Leader quizzes and have been moved to the Level One Leader membergroup.

I looked everywhere and could not find a way to set permissions in this fashion. I guess my question is, if this is not a default setting, how would I add the code to do this. I am still quite new to php and even though I have learned quite a lot thus far, I still do not quite understand everything. The permissions really confuse me and I am having a hard time figuring this out.

Please help.

Thank you,
Kratos

Just wondering if anyone has any info about this?

Kratos

Just wondering if this mod is still supported by it's author or if anyone has any info about this.

Thanks,
Kratos
Title: Re: SMF Quiz
Post by: quiz_modder on November 05, 2009, 04:32:35 PM
I love this mod! However, I cannot figure a couple things out.

First, how do I assign permissions at the category level? Example, I have two categories, Just for Students and Just for Leaders. The students have no need (nor should they be allowed) to see the Just for Leaders category and the quizzes included in that category.

Second, how do I assign permissions at the quiz level? Example, In the Just for Leaders category, I have quizzes for New Leaders and Level One Leaders. A person who wishes to become a leader must complete the New Leader quizzes just be be a leader. Once they have completed the New Leader quizzes, they are moved from New Leader membergroup to Level One Leader Membergroup. At this point, they need to complete the Level One Quizzes to advance to a Level Two Leader. The New Leaders are not allowed to see the Level One Leader quizzes until they have completed the New Leader quizzes and have been moved to the Level One Leader membergroup.

I looked everywhere and could not find a way to set permissions in this fashion. I guess my question is, if this is not a default setting, how would I add the code to do this. I am still quite new to php and even though I have learned quite a lot thus far, I still do not quite understand everything. The permissions really confuse me and I am having a hard time figuring this out.

Please help.

Thank you,
Kratos

Just wondering if anyone has any info about this?

Kratos

Just wondering if this mod is still supported by it's author or if anyone has any info about this.

Thanks,
Kratos

Yes, I am still supporting the mod, although I don't have time to work at it at the moment. With regard to your questions, permissions have not been implemented other than to simply allow the mod to be used ot not. If you post a request on the http://www.smfmodding.com site I will improve it when I get some time.

Thanks
Title: Re: SMF Quiz
Post by: king kratos on November 05, 2009, 05:08:01 PM
Thank you, I will do that now. I only asked if it was still supported because some of the mod threads don't ever get request responses from the author anymore.

Thank you for clarifying this info.

Kratos
Title: Re: SMF Quiz
Post by: orelanic on November 19, 2009, 08:20:21 AM
I un-installed this fab mod when I upgraded to the new smf 20 rc2 from the rc1 version, will it work on 2.0 or would it be best to wait.

kind regards
Ade
Title: Re: SMF Quiz
Post by: perplexed on December 17, 2009, 09:34:40 AM
This looks like fun, I think I'll have a play with it on a test forum and see if it works on RC2
Title: Re: SMF Quiz
Post by: Xarcell on December 22, 2009, 06:55:47 PM
Does this mod have the ability to place a member who passes a quiz into a membergroup?
Title: Re: SMF Quiz
Post by: C4G-TK on December 23, 2009, 09:08:26 PM
Does this mod have the ability to place a member who passes a quiz into a membergroup?

Not that I've seen.  That would bee a cool mod though.  Instead of membergroups being requestable or paid or free to join, it would be cool to have a membergroup function that allowed members to take a test to figure out if they got into a group.
Title: Re: SMF Quiz
Post by: Xarcell on December 24, 2009, 11:34:14 AM
Does this mod have the ability to place a member who passes a quiz into a membergroup?

Not that I've seen.  That would bee a cool mod though.  Instead of membergroups being requestable or paid or free to join, it would be cool to have a membergroup function that allowed members to take a test to figure out if they got into a group.

That's exactly what I need, but I can't seem to find anything for that in SMF 2.0 RC2.
Title: Re: SMF Quiz
Post by: quiz_modder on January 07, 2010, 05:39:36 AM
I un-installed this fab mod when I upgraded to the new smf 20 rc2 from the rc1 version, will it work on 2.0 or would it be best to wait.

kind regards
Ade

It does work, but with some issues (that can be overcome easily). Also there are some minor presentation problems with the new curve theme.

I haven't had time to look into the changes for the latest SMF version due to work commitments. If anyone has coding experience and wants to help out, feel free to contact me.
Title: Re: SMF Quiz
Post by: TravisM661 on January 07, 2010, 07:33:47 AM
Any Chance of a 2.0 RC2 Version?
Title: Re: SMF Quiz
Post by: Eclipse16V on January 07, 2010, 07:34:38 AM
I will work on it in the next days.
Title: Re: SMF Quiz
Post by: quiz_modder on January 07, 2010, 08:05:40 AM
Any Chance of a 2.0 RC2 Version?

OK, just made some updates and released a beta version. Please see the following

http://www.smfmodding.com/index.php?topic=554.0
Title: Re: SMF Quiz
Post by: Afro on January 22, 2010, 10:10:35 AM
Any Chance of a 2.0 RC2 Version?

OK, just made some updates and released a beta version. Please see the following

http://www.smfmodding.com/index.php?topic=554.0

does this mean it installs on v2 rc2 now ?
Title: Re: SMF Quiz
Post by: C4G-TK on January 22, 2010, 01:49:05 PM
I've got it working on RC2.  I went to his website and downloaded a package there.  I'm just getting one error about a DB matter that I posed on the site, but it is working fine.
Title: Re: SMF Quiz
Post by: Afro on January 22, 2010, 02:57:25 PM
I've got it working on RC2.  I went to his website and downloaded a package there.  I'm just getting one error about a DB matter that I posed on the site, but it is working fine.

ok good. thats hopeful
Title: Re: SMF Quiz
Post by: Afro on January 25, 2010, 07:21:09 AM
please add the latest version for 2rc2 here so we can install it through parse manually.
Title: Re: SMF Quiz
Post by: C4G-TK on January 25, 2010, 12:32:30 PM
If you get the package at his website, you can parse it here:

http://sleepycode.com/PackageParser/index.php


Even though it is RC2, I chose RC1 and still got things to work.
Title: Re: SMF Quiz
Post by: Afro on January 25, 2010, 06:02:38 PM
parseArchive(): No package-info.xml in this mod! Is it corrupted?

got the above error
Title: Re: SMF Quiz
Post by: C4G-TK on January 25, 2010, 06:15:55 PM
Make sure you are using the package on his site that is for RC2
Title: Re: SMF Quiz
Post by: Eclipse16V on March 15, 2010, 01:37:10 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
Title: Re: SMF Quiz
Post by: KensonPlays on March 28, 2010, 12:53:21 AM
Nice Mod

Please update it for SMF 2.0RC3  ;)

Thanks
SECOND!!
Title: Re: SMF Quiz
Post by: TurtleKicker on March 28, 2010, 11:37:01 PM
Never noticed this mod before. It looks really awesome and like something my users would love. Would love to see an update for RC3 so I can try this out on my test forum. Won't be moving to SMF2 formally until it's final.
Title: Re: SMF Quiz
Post by: navjotjsingh on April 02, 2010, 05:45:09 PM
I tried installing on 2.0RC2 but somehow it does not show in Admin backend..only shows at frontend. I am using 1.0.8 beta 3.
Title: Re: SMF Quiz
Post by: Afro on April 21, 2010, 05:26:21 AM
i have two sets of quiz tables created on my database.

first row looks like this :

quiz      Browse       Structure     Search       Insert     Empty       Drop     0     MyISAM     latin1_swedish_ci     1.0 KiB     -
   quiz_answer    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_category    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_dispute    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_infoboard    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_league    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_league_questions    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_league_result    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_league_table    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_question    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_question_type    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_result    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   quiz_session



second row

    smf_quiz      Browse       Structure     Search       Insert     Empty       Drop     112     MyISAM     latin1_swedish_ci     30.4 KiB     -
   smf_quiz_answer    Browse    Structure    Search    Insert    Empty    Drop    5,605    MyISAM    latin1_swedish_ci    291.3 KiB    -
   smf_quiz_category    Browse    Structure    Search    Insert    Empty    Drop    43    MyISAM    latin1_swedish_ci    9.2 KiB    -
   smf_quiz_dispute    Browse    Structure    Search    Insert    Empty    Drop    23    MyISAM    latin1_swedish_ci    7.0 KiB    -
   smf_quiz_infoboard    Browse    Structure    Search    Insert    Empty    Drop    147    MyISAM    latin1_swedish_ci    76.9 KiB    -
   smf_quiz_league    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   smf_quiz_league_result    Browse    Structure    Search    Insert    Empty    Drop    2    MyISAM    latin1_swedish_ci    4.1 KiB    -
   smf_quiz_league_table    Browse    Structure    Search    Insert    Empty    Drop    0    MyISAM    latin1_swedish_ci    1.0 KiB    -
   smf_quiz_question    Browse    Structure    Search    Insert    Empty    Drop    1,551    MyISAM    latin1_swedish_ci    342.1 KiB    -
   smf_quiz_question_type    Browse    Structure    Search    Insert    Empty    Drop    3    MyISAM    latin1_swedish_ci    2.1 KiB    -
   smf_quiz_result    Browse    Structure    Search    Insert    Empty    Drop    146    MyISAM    latin1_swedish_ci    14.6 KiB    -
   smf_quiz_session


apparently the second row is the one recording datas..

i suppose its safe to drop the first rows ?
Title: Re: SMF Quiz
Post by: Achilles. on May 22, 2010, 12:54:01 PM
No updates for Rc3?
Title: Re: SMF Quiz
Post by: Bugo on May 30, 2010, 04:14:37 AM
No updates for Rc3?
Only unofficial..
Title: Re: SMF Quiz
Post by: Heartlander on June 06, 2010, 12:23:39 PM
The latest version won't even install on RC3- at least not from the Packages feature in Admin.
That sucks...I really wanted this mod.
 :'(
Title: Re: SMF Quiz
Post by: C4G-TK on June 06, 2010, 08:48:01 PM
The latest version won't even install on RC3- at least not from the Packages feature in Admin.
That sucks...I really wanted this mod.
 :'(

I am using it fine on RC3.  If you go to the Mod Author's website, I downloaded 1.0.8 b3 package there and installed it on RC3.  There was only one error from Subs.php, that I needed to do manually, but that was because of another Mod that I used which changed the code it was looking for in the package.

Also, I double checked and I emulated RC2 in order to allow the install on RC3.
Title: Re: SMF Quiz
Post by: ukhalik2 on June 07, 2010, 06:37:10 AM
do quizes come automatically? or we have to adD?
Title: Re: SMF Quiz
Post by: C4G-TK on June 07, 2010, 10:57:06 AM
do quizes come automatically? or we have to adD?

The very first post answers your question:

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1650)
  • Import Quizes - allows you to create and share quizes with the wider community
  • Allow users to create and submit their own quizes to your forum

You can create quizzes.  You can allow your own members to create quizzes.  You can import quizzes that others have already created.
Title: Re: SMF Quiz
Post by: GoldieFR on July 19, 2010, 04:01:34 AM
Hello !!!

I managed to fix my problem having a look a the support topic of SMF.
First I created a SMFQuiz.french-utf8.php file in themes/default/languages
then I added a few lines of codes in a file (can't remember where, it's in the support topic of SMF).

Therefore we managed to play with no problem  ;D and I even uploaded my quiz (it's in french, don't know if anyone will be interested though  :-\).

So I decided to translate the file I had created ( SMFQuiz.french-utf8.php ) in french and I started creating leagues.
And know, I don't know why, my quiz are not loading  :-[

here is the xml
http://forumdediscussion.org/Sources/SMFQuizStart.php?id_quiz=3

looks ok though, can you help on this ?
another info : if I use english as language it works ok.
I translated SMFQuiz, SMFQuizAdmin and SMFQuizCommon, still not working.
Title: Re: SMF Quiz
Post by: waruna on July 19, 2010, 11:02:17 AM
If you get the package at his website, you can parse it here:

http://sleepycode.com/PackageParser/index.php


Even though it is RC2, I chose RC1 and still got things to work.

So this mod work for RC2?
Title: Re: SMF Quiz
Post by: C4G-TK on July 19, 2010, 01:56:21 PM
If you get the package at his website, you can parse it here:

http://sleepycode.com/PackageParser/index.php


Even though it is RC2, I chose RC1 and still got things to work.

So this mod work for RC2?

Both of my forums are now RC3, but the mod was working correctly on RC2 as well.  Go to the author's site and download the package there.  I'm pretty sure it is still newer than the one here.
Title: Re: SMF Quiz
Post by: laneydotbiz on July 24, 2010, 06:30:38 AM
Kindly link me up with the one that is compatible with SMF Version 1.1.11
Thanks
Title: Re: SMF Quiz
Post by: qubbah on July 26, 2010, 10:18:53 AM
i cant create the question.. problem like this image

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg839.imageshack.us%2Fimg839%2F2361%2F35457742.gif&hash=5533c0d1e83e42f5c71c0ad3f43192fa)
no submit button show.
Title: Re: SMF Quiz
Post by: kartheekb on July 31, 2010, 08:02:44 AM
Is the MOD available For Smf 2.0 rc3
Title: Re: SMF Quiz
Post by: CerebralJam on August 07, 2010, 03:16:03 PM
The latest version won't even install on RC3- at least not from the Packages feature in Admin.
That sucks...I really wanted this mod.
 :'(

I am using it fine on RC3.  If you go to the Mod Author's website, I downloaded 1.0.8 b3 package there and installed it on RC3.  There was only one error from Subs.php, that I needed to do manually, but that was because of another Mod that I used which changed the code it was looking for in the package.

Also, I double checked and I emulated RC2 in order to allow the install on RC3.

You say you manually edited the Subs.php file?  I am getting the same error... I had to upgrade my whole forum from 2.0 RC1 to 2.0 RC3  I was running this mod successfully under 2.0. RC1 but on the upgrade I can't reinstall.

Can you help please?  Because now I'm upgraded I'd rather like to use it!

Thanks!
Title: Re: SMF Quiz
Post by: CerebralJam on August 08, 2010, 10:42:08 AM
I found the bit to manually edit subs.php:

Quote
'show' => allowedTo('pm_send'),
               ),
            ),
         ),

add after...

//Begin SMFQuiz
         'SMFQuiz' => array(
            'title' => $txt['SMFQuiz'],
            'href' => $scripturl . '?action=SMFQuiz',
            'show' => allowedTo('quiz_view'),
            'sub_buttons' => array(
            ),
         ),
         //End SMFQuiz

But when I try to save it, I get this error:

Quote
Request object error 'ASP 0104 : 80004005'

Operation not Allowed

/include/system.asp, line 226

Can you tell me what that means?  And what do you mean by 'emulate'?  How do you do that...

Thanks!

EDIT:  Not to worry, I have solved this now by trial and error - less error and more taking a deep breath and modifying file outside of server  :)  I now have it up and running.
Title: Re: SMF Quiz
Post by: rodinhas10 on October 09, 2010, 05:42:42 AM
Hi,

Do you have a version of this mod for 1.1.11 SMF?
Thank´s
Title: Re: SMF Quiz
Post by: kartheekb on October 11, 2010, 11:46:23 PM
Can i have For 2.0 RC3 version
Title: Re: SMF Quiz
Post by: quiz_modder on December 20, 2010, 09:11:05 AM
Update for RC4

http://www.smfmodding.com/index.php?topic=632.msg2722#msg2722
Title: Re: SMF Quiz
Post by: Kindred on December 21, 2010, 09:37:59 AM
I am amused. :)   I downloaded 1.07 yesterday for use on an RC4 board...   I got 2 errors in files because of minor differences in code, but that's par for the course...     unfortunately, the database script for 1.07 was completely screwy and I was ready to give up (and make a note to the customization team to have a word... lol)

then I come back today and find the new version... 
Installed with no problems. Database edits were performed correctly, file edits all went smoothly, even with about 15 other mods installed.
The interface looks nice.

Issues:
New Quiz Page, New Categories Page, New Questions Page
-- No submit button... so no way to add Quizzes, Categories or Questions
-- the Image URL filed is a dropdown with no value and no way to type in a URL for an image.

New Question Page
-- If I select Multiple Choice, there is no way for me to define the choices.

Quiz Importer Page
-- I get an error when I go to this page -- Unable to open /MYSITE/Themes/default/images/quiz_images/Quizes/



Gripes:
-- I'd like to see tooltips describing the fields and what they do (use the standard SMF help [?] feature for fields)
i.e. what is "state" in the league setup? What does "Show answers" checkbox actually mean?
-- This is an involved mod. In addition to the tooltip help, I'd like to see an actual help section. Linking to the FAQ videos for the package readme is cute, but does not help when my staff does not have access to the package manager, but still have to admin the quiz section.

Title: Re: SMF Quiz
Post by: quiz_modder on December 22, 2010, 05:28:23 AM
I am amused. :)   I downloaded 1.07 yesterday for use on an RC4 board...   I got 2 errors in files because of minor differences in code, but that's par for the course...     unfortunately, the database script for 1.07 was completely screwy and I was ready to give up (and make a note to the customization team to have a word... lol)

then I come back today and find the new version... 
Installed with no problems. Database edits were performed correctly, file edits all went smoothly, even with about 15 other mods installed.
The interface looks nice.

Issues:
New Quiz Page, New Categories Page, New Questions Page
-- No submit button... so no way to add Quizzes, Categories or Questions
-- the Image URL filed is a dropdown with no value and no way to type in a URL for an image.

New Question Page
-- If I select Multiple Choice, there is no way for me to define the choices.

Quiz Importer Page
-- I get an error when I go to this page -- Unable to open /MYSITE/Themes/default/images/quiz_images/Quizes/



Gripes:
-- I'd like to see tooltips describing the fields and what they do (use the standard SMF help [?] feature for fields)
i.e. what is "state" in the league setup? What does "Show answers" checkbox actually mean?
-- This is an involved mod. In addition to the tooltip help, I'd like to see an actual help section. Linking to the FAQ videos for the package readme is cute, but does not help when my staff does not have access to the package manager, but still have to admin the quiz section.

I hope "amused" is a good thing ;)

Yes, 1.0.7 was never intended for RC4 it only worked on RC1 and the install script I had based on another mod, probably not the best way to do things. So, the latest version uses a more standard installation, I am glad it appeared to go smoothly.

Going back to your issues, I am surprised with some of them:

No submit button - I really don't understand this. I and a number of people have the quiz installed and this isn't an issue. If you don't mind I would appreciate it if you could describe this in more detail for me.

Image Url - This is a file upload and the dropdown will take an image from the folder where files are uploaded. If there are no images there it won't have anything in it. Are you saying the upload isn't available for you?

Multiple Choice - Again, not a problem on my installation and many others. I am guessing there is an issue somewhere, it would help to see this somewhere if possible?

Quiz Importer - Does that folder exist? It should be created when the mod is installed. If not, did you not get an error related to this on install anywhere?

Finally, did you install the category post installation mod (available from http://www.smfmodding.com) as this provides a set number of default categories and their images post install. This is highly recommended but obviously doesn't address what you mention above.

Thanks for the input and I hope to be able to resolve the issues for you. And yes, I know there are a number of improvements that could be made :)
Title: Re: SMF Quiz
Post by: Kindred on December 22, 2010, 07:55:54 AM
Nope, no errors on installation with 1.08. I was quite pleased (and yes, amused is a good thing) with the installation.

No upload function that I can see.
(no, I did not install the category mod)

Interestingly, from FF4, at home, I get more info
the same error as the importer page... that the directory can't be opened.
When I use the file manager from Cpanel, It looks like there is no diretory... BUT I can't create it either
Sorry the file or folder: Quizes already exists in /SITE/Themes/default/images/quiz_images
Using that, I looked....   when the mod created, it did not create empty folders for Quizes and Questions... it created two 0 byte files...

I deleted the 0 byte files, created the directories...  and *LO* the missing stuff appeared! Including the save and upload....
it looks like the system error in the upload function not finding the directory kills the rest of the page. from the dropdown (the error gets displayed IN the dropdown box)

Title: Re: SMF Quiz
Post by: quiz_modder on December 22, 2010, 08:42:31 AM
Nope, no errors on installation with 1.08. I was quite pleased (and yes, amused is a good thing) with the installation.

No upload function that I can see.
(no, I did not install the category mod)

Interestingly, from FF4, at home, I get more info
the same error as the importer page... that the directory can't be opened.
When I use the file manager from Cpanel, It looks like there is no diretory... BUT I can't create it either
Sorry the file or folder: Quizes already exists in /SITE/Themes/default/images/quiz_images
Using that, I looked....   when the mod created, it did not create empty folders for Quizes and Questions... it created two 0 byte files...

I deleted the 0 byte files, created the directories...  and *LO* the missing stuff appeared! Including the save and upload....
it looks like the system error in the upload function not finding the directory kills the rest of the page. from the dropdown (the error gets displayed IN the dropdown box)

Yes, it does rely on the folder existing, I should probably handle that more gracefully. So are things now working as expected? Not sure why it created files rather than folders for you though?
Title: Re: SMF Quiz
Post by: Kindred on December 22, 2010, 09:29:05 AM
it's a known problem on some servers with SMF mods, the system creates a 0 byte file instead of an empty folder...   
it's very odd and I have no explanation as to why.

I have not added any quizzes yet (just confirmed that it looks like I can!) but it SEEMS to be working correctly now. :)

so, from what I have seen so far (now that issues are dealt with)
My suggestions are: (and note: these are suggestions, not demands. :P )


-- I'd like to see tooltips describing the fields and what they do (use the standard SMF help [?] feature for fields)
i.e. what is "state" in the league setup? What does "Show answers" checkbox actually mean?

-- This is an involved mod. In addition to the tooltip help, I'd like to see an actual help section. Linking to the FAQ videos for the package readme is cute, but does not help when my staff does not have access to the package manager, but still have to admin the quiz section.

-- Allow the upload directory for images to be specified in mod settings...   i.e. I would like to use one of my pre-existing directories to pick images from rather than copying all images into two more folders
Title: Re: SMF Quiz
Post by: quiz_modder on December 22, 2010, 09:47:31 AM
it's a known problem on some servers with SMF mods, the system creates a 0 byte file instead of an empty folder...   
it's very odd and I have no explanation as to why.

I have not added any quizzes yet (just confirmed that it looks like I can!) but it SEEMS to be working correctly now. :)

OK, at least I am not going mad :)

so, from what I have seen so far (now that issues are dealt with)
My suggestions are: (and note: these are suggestions, not demands. :P )


-- I'd like to see tooltips describing the fields and what they do (use the standard SMF help [?] feature for fields)
i.e. what is "state" in the league setup? What does "Show answers" checkbox actually mean?


Yes, I put some tooltips in the settings section but not on all sections as I thought they were self explanatory. If I get time I will consider putting them elsewhere.

-- This is an involved mod. In addition to the tooltip help, I'd like to see an actual help section. Linking to the FAQ videos for the package readme is cute, but does not help when my staff does not have access to the package manager, but still have to admin the quiz section.

Not entirely sure I understand the second part of this paragraph but agree there could be a designated help section.

-- Allow the upload directory for images to be specified in mod settings...   i.e. I would like to use one of my pre-existing directories to pick images from rather than copying all images into two more folders

Yep, good point.

Cheers
Title: Re: SMF Quiz
Post by: Kindred on December 22, 2010, 09:54:47 AM
re: the help section - well, on my forum, we have a large staff. I have given the staff access to admin the quizzes.
However, the only place where the "help/demo videos" are displayed in in the mod's readme which is only displayed in the package manager.  None of the staff have access to the package manager to see the videos. :)

re:tooltips - yeah...   I've done the exact same thing...    "Those fields are self-explanatory, aren't they?" and then I get some idiot (like me, LOL!) who comes and says, "huh? I'm not sure what the field actually means"
The problem with working with something you developed is that you developed it! :)  you *KNOW* what everything is supposed to be doing.   It took me years of tech writing to figure out that every detail should be documented because you'll always find someone who doesn't get that one detail which you didn't document.  O:)
Title: Re: SMF Quiz
Post by: quiz_modder on December 22, 2010, 10:02:25 AM
re: the help section - well, on my forum, we have a large staff. I have given the staff access to admin the quizzes.
However, the only place where the "help/demo videos" are displayed in in the mod's readme which is only displayed in the package manager.  None of the staff have access to the package manager to see the videos. :)

re:tooltips - yeah...   I've done the exact same thing...    "Those fields are self-explanatory, aren't they?" and then I get some idiot (like me, LOL!) who comes and says, "huh? I'm not sure what the field actually means"
The problem with working with something you developed is that you developed it! :)  you *KNOW* what everything is supposed to be doing.   It took me years of tech writing to figure out that every detail should be documented because you'll always find someone who doesn't get that one detail which you didn't document.  O:)

All very good points. Thing is a week ago was the first time I looked at this mod again after over a year due to work time constraints. I hadn't had as many people upload their own quizzes to the site as I had hoped (with the exception of a couple of people) and felt like I was doing all the work, therefore didn't feel as enthused as I originally felt after putting in about 1/2 years worth of effort into it. I had a few guys ask me to get it working with RC4 and finally had a few hours to spare and thought I would help them out. I am not sure how much time I will have going forward to make more changes, but I might try and find a few hours here and there depending on how many people take an interest in the mod.

Thanks again
Title: Re: SMF Quiz
Post by: Kindred on December 22, 2010, 10:14:32 AM
well, once I get it set up, I'll share stuff :)  Although our quizzes might be rather "niche". :D

I do appreciate the work you had to put into this... as I said, it is a hugely involved mod and I certainly hope that people take an interest in supporting it further. :)

off-topic: Are you open to mod commissions? I want to do an involved mod (recipe book), but don't have the time myself.
Title: Re: SMF Quiz
Post by: quiz_modder on December 22, 2010, 12:30:54 PM
well, once I get it set up, I'll share stuff :)  Although our quizzes might be rather "niche". :D

I do appreciate the work you had to put into this... as I said, it is a hugely involved mod and I certainly hope that people take an interest in supporting it further. :)

off-topic: Are you open to mod commissions? I want to do an involved mod (recipe book), but don't have the time myself.

If I get some free time I will let you know

Cheers
Title: Re: SMF Quiz
Post by: Andrew94© on December 23, 2010, 03:30:34 PM
I found a problem on installation but I'm pretty sure I know a fix.

Those problem relates to a previous problem by Kindred.

My theme directory is named themes not Themes

on install, it's looking for the /Themes directory, which of course will not be found.

Ok here is the problem
modification.xml (line 679):
Code: [Select]
<file name="$themes_dir/default/languages/Help.english.php">Should be:
Code: [Select]
<file name="$themedir/languages/Help.english.php">
Line 636:
Code: [Select]
<file name="$themes_dir/default/languages/ManageScheduledTasks.english.php">Should be:
Code: [Select]
<file name="$themedir/languages/ManageScheduledTasks.english.php">
Line 649:
Code: [Select]
<file name="$themes_dir/default/languages/Modifications.english.php">Should be:
Code: [Select]
<file name="$themedir/languages/Modifications.english.php">
I've done a fix in the modification.xml file myself, the entire package with the fixes is attached.

I'm also have a problem with no submit button or anything when I want to add a quiz. A screenshot of that is also attached.

EDIT: Found a fix for me. I just created a directory under the root folder named Themes and apparently it fixed itself.

Title: Re: SMF Quiz
Post by: Kindred on December 23, 2010, 10:32:57 PM
actually, with a standard SMF install, the directory SHOULD be "Themes" (with the capital T)
Title: Re: SMF Quiz
Post by: Andrew94© on December 23, 2010, 10:37:15 PM
I like my directories lowercased :P besides in most mods $themedir is used, right?
Title: Re: SMF Quiz
Post by: Bugo on December 24, 2010, 03:10:45 AM
$languagedir is better ($themedir/languages instead).
Title: Re: SMF Quiz
Post by: Sudhakar Arjunan on December 28, 2010, 07:01:14 PM
Dear Admin,

I have been watching your mod for years, today when i noticed the mod is updated. Instantly i tried downloading and installed in my forum.

Installation went smooth, all video and details in the site were perfectly matched.

As proposed, with in few minutes, i have got around 25 quizes imported through the social platform you have designed within 1 category. Includes more than 250 questions and 1000 answers.

My forum is ready for the quiz now with 22,000 users. Thanks for the excellent work.

I have been using some third party quiz application, i will remove it by this week after uploading all our questions and quizes to this excellent mod.

Sure we will be interested to donate or help for your development of this excellent social quiz mod.  8)
Title: Re: SMF Quiz
Post by: quiz_modder on December 28, 2010, 07:04:17 PM
Dear Admin,

I have been watching your mod for years, today when i noticed the mod is updated. Instantly i tried downloading and installed in my forum.

Installation went smooth, all video and details in the site were perfectly matched.

As proposed, with in few minutes, i have got around 25 quizes imported through the social platform you have designed within 1 category. Includes more than 250 questions and 1000 answers.

My forum is ready for the quiz now with 22,000 users. Thanks for the excellent work.

I have been using some third party quiz application, i will remove it by this week after uploading all our questions and quizes to this excellent mod.

Sure we will be interested to donate or help for your development of this excellent social quiz mod.  8)

Thanks for the feedback and I am glad it is working well for you.
Title: Re: SMF Quiz
Post by: eyo on January 06, 2011, 07:55:11 PM
where's the download page for quizzes and team logos for PL? for the life of me i cant find it in your site
Title: Re: SMF Quiz
Post by: Kindred on January 11, 2011, 12:51:17 PM
quiz import is built into the new version.



quiz_modder,
A suggestion from my users (who love this and have started making some quizzes which I will submit when they are up-to-par)

make open answers non-case specific. i.e. netherlands should be the same as Netherlands, especially when typing in less than 20 seconds.



Question:
If someone disputes an answer (valid dispute), can I give them points for the answer?
There are a number of quizses that I imported which have cut-off questions or typos in the answers....
Title: Re: SMF Quiz
Post by: eyo on January 11, 2011, 07:56:40 PM
i installed this fine and it works being admin, its just that i cant seem to find the permissions for membergroups anywhere and they cant access it?
tried member-permissions and admin section, i cant find it
Title: Re: SMF Quiz
Post by: eyo on January 12, 2011, 07:06:53 AM
please help me find out how to give non admin users have access , seems to be this is an isolated problem that has happened only to me. there must something i can edit to fix this, using rc3 btw
Title: Re: SMF Quiz
Post by: Kindred on January 12, 2011, 07:53:49 AM
Eye... Please wait at least 24 hours before bumping...   

Permissions are in the standard permissions section. View, take, admin, submit
Title: Re: SMF Quiz
Post by: quiz_modder on January 16, 2011, 08:08:13 AM
quiz import is built into the new version.



quiz_modder,
A suggestion from my users (who love this and have started making some quizzes which I will submit when they are up-to-par)

make open answers non-case specific. i.e. netherlands should be the same as Netherlands, especially when typing in less than 20 seconds.



Question:
If someone disputes an answer (valid dispute), can I give them points for the answer?
There are a number of quizses that I imported which have cut-off questions or typos in the answers....

All very valid suggestions and something I would like to work on. Unfortunately my Christmas holiday has now passed and I am unlikely to get much time in the foreseeable future to implement changes  :)

Any other modders that want to help out are welcome.
Title: Re: SMF Quiz
Post by: teddyuk on February 08, 2011, 08:13:31 PM
Just installed it and everything seems to work perfectly

Except :(

When members try to play the quiz this happens

http://consolegl.com/index.php?action=SMFQuiz;sa=play;id_quiz1


Any suggestions?
Title: Re: SMF Quiz
Post by: Drunken Clam on February 09, 2011, 03:43:56 AM

http://consolegl.com/index.php?action=SMFQuiz;sa=play;id_quiz1


Any suggestions?

Yes, please supply a test logon!  ;)
Title: Re: SMF Quiz
Post by: teddyuk on February 09, 2011, 04:32:55 PM
I will PM u login details  ;D
Title: Re: SMF Quiz
Post by: More-to-life on February 20, 2011, 10:48:24 AM
Any updates for RC5?
Title: Re: SMF Quiz
Post by: quiz_modder on February 20, 2011, 11:33:36 AM
Any updates for RC5?

Ah man, a new version already? I assume the current mod doesn't work with RC5 then?
Title: Re: SMF Quiz
Post by: More-to-life on February 20, 2011, 11:39:21 AM
Ive not tried as yet but didnt want to update then find out it didnt

Can anyone confirm it works with RC5?
Title: Re: SMF Quiz
Post by: yakyakyak on March 01, 2011, 08:33:09 AM
Quote

If you are installing this for the first time it is HIGHLY RECOMMENDED that you also install the SMF Quiz Categories mod afterwards, as this will install some default quiz categories for you. You can obtain this from http://www.smfmodding.com


Can you please approve registrations so i can download this component
Title: Re: SMF Quiz
Post by: More-to-life on March 01, 2011, 10:10:20 AM
I can comfirm it fully works with RC5
Title: Re: SMF Quiz
Post by: fiesty on May 15, 2011, 09:59:03 AM
following a post on the chit chat board, re the smfmodding site being down/nonexistent,

(when i went to the quiz importer section, all i got was a blank page, and checking the smfmodding site came up with a 404 page not found error,)
which prevents any further downloading of quizzes,
has this mod been abandoned ? or can we look forward to its return soon ?

fiesty,
Title: Re: SMF Quiz
Post by: jack001 on June 06, 2011, 10:07:48 AM
i have installed successfully smf quiz 1.0.8 beta4.

everything works awesome except one thing.

unable to create any quiz by own. it gives an error:

Quote
An Error Has Occurred!
Wrong value type sent to the database. Integer expected. (id_category)

its so annoying for me as well as users. so please guide me what to do.

thank you.
Title: Re: SMF Quiz
Post by: Kindred on June 06, 2011, 11:06:38 AM
unfortunately, the author of this mod has withdrawn from all contact and shut down his site.
Title: Re: SMF Quiz
Post by: jack001 on June 06, 2011, 11:13:31 AM
so now what should i do?

can anyone solve this problem?

please need help.
Title: Re: SMF Quiz
Post by: danialasghar on June 07, 2011, 05:38:39 PM
I can comfirm it fully works with RC5

I had tired to install but having some test failed...  :-X :-X can anyone help me?
Title: Re: SMF Quiz
Post by: TheListener on June 07, 2011, 05:45:29 PM
What do you mean by test failed?

More information iss required.
Title: Re: SMF Quiz
Post by: Kindred on June 07, 2011, 07:41:34 PM
It likely means that some other mod has changed one or more points of the target code... And so, those portions will hav to be installed manually....   Really? Doesn't anyone read the wiki or do a search?
Title: Re: SMF Quiz
Post by: danialasghar on June 07, 2011, 07:43:05 PM
What do you mean by test failed?

More information iss required.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi51.tinypic.com%2F35i4zmb.jpg&hash=9166305b056abd2f9cbb8004fc58c3bf)

Check this snap bro..

I'm having SMF 2.0 RC5 with Coalblack theme.

Title: Re: SMF Quiz
Post by: Kindred on June 07, 2011, 08:04:24 PM
It likely means that some other mod has changed one or more points of the target code... And so, those portions will hav to be installed manually....   Really? Doesn't anyone read the wiki or do a search?
Title: Re: SMF Quiz
Post by: tfs on June 16, 2011, 03:20:06 PM
Some mod that you installed AFTER SMF Quiz has made a change to the same file as SMF Quiz, and now the SMF Quiz uninstaller can't find the exact spot to "un-edit" because it's now different.

All you need to do is to uninstall the OTHER mod first, then uninstall SMF Quiz, and then reinstall your other mod.
Title: Re: SMF Quiz
Post by: anakmacan on June 16, 2011, 05:31:25 PM
I need it for my 1.1.14.. not 2.0 :(
Title: Re: SMF Quiz
Post by: UKShark on June 22, 2011, 11:51:35 AM
i have installed successfully smf quiz 1.0.8 beta4.

everything works awesome except one thing.

unable to create any quiz by own. it gives an error:

Quote
An Error Has Occurred!
Wrong value type sent to the database. Integer expected. (id_category)

its so annoying for me as well as users. so please guide me what to do.

thank you.

I have the same problem and cannot find a solution

I'm guessing that the error is the result of there being no option to select the category when defining the question.

Any ideas anyone?
Title: Re: SMF Quiz
Post by: Jessica. on June 22, 2011, 01:43:45 PM
can't edit any parts of the Quiz in the admin anymore, can't get to Admin Center, Settings, Quizes, Quiz Leagues etc because I get this error in every single one:

Fatal error: Cannot redeclare parseleaguemessage() (previously declared in /home/u674831363/public_html/smfforum/Sources/ScheduledTasks.php:733) in /home/u674831363/public_html/smfforum/Sources/SMFQuizAdmin.php on line 348

I'm going to take a look at SMFQuizAdmin.php...
Title: Re: SMF Quiz
Post by: Kindred on June 22, 2011, 02:00:31 PM
you seem to have installed at least twice...   you will have to manually remove the duplicated code from the affected files.
(go into the installation parser, find what code is supposed to be installed in what files and manually verify that only one copy of each code is there)
Title: Re: SMF Quiz
Post by: Jessica. on June 22, 2011, 02:03:29 PM
weird, don't remember installing it twice. but I'll do what you've said.


EDIT: did not find any duplicate code in any of the files.
Title: Re: SMF Quiz
Post by: Jessica. on June 22, 2011, 02:35:05 PM
uninstalled, installed again. still get that same error
Title: Re: SMF Quiz
Post by: yakyakyak on June 22, 2011, 02:51:52 PM
uninstalled, installed again. still get that same error

if you uninstalled and then did not remove the 2nd install edits then the new install would place you in the same position as before :/
Title: Re: SMF Quiz
Post by: Kindred on June 22, 2011, 03:03:55 PM
you will have to manually remove the duplicated code from the affected files.
Title: Re: SMF Quiz
Post by: Jessica. on June 22, 2011, 08:54:42 PM
I never found any duplicated code. so I uninstalled it.
Title: Re: SMF Quiz
Post by: Jessica. on June 27, 2011, 02:53:01 PM
still not working
Title: Re: SMF Quiz
Post by: jack001 on June 30, 2011, 04:59:52 AM
i have installed successfully smf quiz 1.0.8 beta4.

everything works awesome except one thing.

unable to create any quiz by own. it gives an error:

Quote
An Error Has Occurred!
Wrong value type sent to the database. Integer expected. (id_category)

its so annoying for me as well as users. so please guide me what to do.

please do send me a positive reply..
Title: Re: SMF Quiz
Post by: More-to-life on July 16, 2011, 11:59:18 AM
Can anyone take over this mod & update for 2.0

I don't have the knowledge unfortunately  :-\
Title: Re: SMF Quiz
Post by: Kindred on July 16, 2011, 12:31:30 PM
without permission from the original author, this mod can not be distributed by any one else...
Title: Re: SMF Quiz
Post by: davejo on August 02, 2011, 12:38:13 PM
Does anyone know where to get the quizes from now the 'SMFModding' site has closed?

Just created a new site and want them on it, I'll see if I can import these via the database as I have another site that has them on it.

If I'm successful I'll reply here
Title: Re: SMF Quiz
Post by: davejo on August 02, 2011, 02:12:00 PM
OK an update:

I managed to import my database tables from my other site into the new site then just copied the images fromn one to the other also, now all the quizes are working ok.
Title: Re: SMF Quiz
Post by: Eclipse16V on August 19, 2011, 08:17:21 AM
can't edit any parts of the Quiz in the admin anymore, can't get to Admin Center, Settings, Quizes, Quiz Leagues etc because I get this error in every single one:

Fatal error: Cannot redeclare parseleaguemessage() (previously declared in /home/u674831363/public_html/smfforum/Sources/ScheduledTasks.php:733) in /home/u674831363/public_html/smfforum/Sources/SMFQuizAdmin.php on line 348

I'm going to take a look at SMFQuizAdmin.php...
Have the same problem with SMF 2.0.
I install it manually.
Title: Re: SMF Quiz
Post by: Jessica. on August 19, 2011, 09:38:38 AM
okay the thing is, when I barely have any mods installed, with this as one of them, it works. I can create a quiz. but when I go take a quiz, I get an error (Pop up)

then I go install more mods and suddenly it doesn't work anymore.
Title: Re: SMF Quiz
Post by: Eclipse16V on August 19, 2011, 04:58:54 PM
If I change the following, it works without problems (at present) with me.

SMFQuizAdmin.php
Search
Code: [Select]
function ParseMessage($message, $quiztitle, $total_seconds, $total_points, $top_time, $top_points, $quizImage, $scripturl, $id_quiz, $old_member_name) {

global $user_settings;

$message = str_replace("{quiz_name}", $quiztitle, $message);
$message = str_replace("{new_score_seconds}", $total_seconds, $message);
$message = str_replace("{new_score}", $total_points, $message);
$message = str_replace("{old_score_seconds}", $top_time, $message);
$message = str_replace("{old_score}", $top_points, $message);
$message = str_replace("{member_name}", $user_settings['real_name'], $message);
$message = str_replace("{old_member_name}", $old_member_name, $message);
$message = str_replace("{quiz_image}", "[img]" . $quizImage . "[/img]", $message);
$message = str_replace("{quiz_link}", $scripturl . '?action=SMFQuiz;sa=categories;id_quiz=' . $id_quiz, $message);
return $message;
}

function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league) {

global $user_settings, $scripturl;

$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}

Replace with
Code: [Select]
function ParseMessage($message, $quiztitle, $total_seconds, $total_points, $top_time, $top_points, $quizImage, $scripturl, $id_quiz, $old_member_name) {

global $user_settings, $scripturl;

$message = str_replace("{quiz_name}", $quiztitle, $message);
$message = str_replace("{new_score_seconds}", $total_seconds, $message);
$message = str_replace("{new_score}", $total_points, $message);
$message = str_replace("{old_score_seconds}", $top_time, $message);
$message = str_replace("{old_score}", $top_points, $message);
$message = str_replace("{member_name}", $user_settings['real_name'], $message);
$message = str_replace("{old_member_name}", $old_member_name, $message);
$message = str_replace("{quiz_image}", "[img]" . $quizImage . "[/img]", $message);
$message = str_replace("{quiz_link}", $scripturl . '?action=SMFQuiz;sa=categories;id_quiz=' . $id_quiz, $message);
return $message;
}
/*
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league) {

global $user_settings, $scripturl;

$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}
*/

This is not ideal, but at least I'm in the admin area.
Title: Re: SMF Quiz
Post by: M50Freak on September 19, 2011, 07:18:58 AM
Hello

I need help with the SMF Quiz.

I have already install the Quiz on my Board.

My SMF Version is: Powered by SMF 2.0 RC5 | SMF © 2006–2010, Simple Machines LLC
Extended by PortaMx v1.0 RC4 | PortaMx © 2008-2011 by PortaMx corp.

When I will start the Quiz:

Quote
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

By the install of the Quiz came one Error: Language - My Forum runs on German.UTF8.
I think the Quiz have a problem with that?

Sorry for my bad English.

www.abload.de/img/unbenanntfu2c.jpg

Gruß
Norbert
Title: Re: SMF Quiz
Post by: M50Freak on September 26, 2011, 07:12:09 AM
Leute???
Brauch dirngend hilfe mit meinen Problem...
 >:( :(
Title: Re: SMF Quiz
Post by: M50Freak on October 04, 2011, 02:31:35 AM
halllllllooooooooooo????????
Title: Re: SMF Quiz
Post by: Eclipse16V on October 04, 2011, 02:46:30 AM
Leider gibt es auch noch Leute die sich ein wenig Urlaub gönnen. :-)

So, wo liegt jetzt noch mal das Problem?
Title: Re: SMF Quiz
Post by: M50Freak on October 04, 2011, 03:11:10 AM
Hallo


Das Problem ist:

Ich hab mir das SMF Quiz installiert. (Bei mir im Forum soll bald ein Gewinnspiel laufen mit Sachpreisen vom Sponsor)

So das Installieren des Quiz war ja ganz einfach/ ebenso das erstellen.

Zum Testen habe ich mir ein Testquiz eröffnet, jedoch wenn ich das Quiz Starten will kommt der Fehler:

Code: [Select]
An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.
So im Fehlerprotokoll steht:
http://mofaforum.net/XXXXXXXXXXXXXMEINSXXXXXXXXXXXXXXXX: Undefined index: SMFQuizDatei: /var/www/MEINS/html/Sources/Subs.php
Zeile: 4194

Also solte ich mal dort in der Subs.php Zeile 4194 nachgucken;)

Aus Subs.php

Code: [Select]
//Begin SMFQuiz
4191.            'SMFQuiz' => array(
4192.                'title' => $txt['SMFQuiz'],
4193.                'href' => $scripturl . '?action=SMFQuiz',
4194.                'show' => allowedTo('quiz_view'),
4195.                'sub_buttons' => array(
4196.                ),
4197.            ),
4198.            //End SMFQuiz
4199.           
4200.            'calendar' => array(
4201.                'title' => $txt['calendar'],
4202.                'href' => $scripturl . '?action=calendar',
4203.                'show' => $context['allow_calendar'],
4204.                'sub_buttons' => array(
4205.                    'view' => array(
4206.                        'title' => $txt['calendar_menu'],
4207.                        'href' => $scripturl . '?action=calendar',
4208.                        'show' => allowedTo('calendar_post'),
4209.                    ),
4210.                    'post' => array(
4211.                        'title' => $txt['calendar_post_event'],
4212.                        'href' => $scripturl . '?action=calendar;sa=post',
4213.                        'show' => allowedTo('calendar_post'),
4214.                        'is_last' => true,
4215.                    ),
4216.                ),
4217.            ),



Ebenso habe ich nun in der Datei  /var/www/MEINS/html/Sources/SMFQuiz.php bei Zeile 14 einen Fehler:


Code: [Select]
1: <?php 
2
: if (!defined('SMF')) 
3 die('Hacking attempt...'); 
4:  
5// Include the SMF2 specific database file 
6: require_once($sourcedir '/SMFQuizDb.php'); 
7:  
8isAllowedTo('quiz_view'); 
9:  
10: function SMFQuiz() { 
11:  
12 global $context$txt
13  
==>
14 $context['page_title'] = $txt['SMFQuiz']; 
15:  
16 // Load the language file 
17 loadLanguage('SMFQuiz'); 
18:  
19 if ($context['current_subaction'] == 'play') { 
20 $context['template_layers'] = array(); 
21 $context['sub_template'] = 'quiz_play'
22
23:  
24 if (isset($_POST['id_quiz'])) { 
25 $context['id_quiz'] = $_POST['id_quiz']; 
26 } else if (isset($_GET['id_quiz'])) { 
27 $context['id_quiz'] = $_GET['id_quiz']; 
28 } else { 
29 $context['id_quiz'] = !empty($context['id_quiz']) ? $context['id_quiz'] : ''
30
31  
32 // Create an array of possible actions with the functions that will be called 
33 $actions = array( 
34 'home' => 'GetHomePageData'
 
mfg
Title: Re: SMF Quiz
Post by: Eclipse16V on October 04, 2011, 08:55:21 AM
Welche Sprache nutzt Du bzw. hast Du eingebaut?
Standard also Englisch oder eine eigene?
Title: Re: SMF Quiz
Post by: M50Freak on October 04, 2011, 09:33:22 AM
Hallo

Forum Deutsch? (UTF-8)

Sonst hab ich nichts geändert...
Mus ich im Quiz ne Datei German anlegen?
Title: Re: SMF Quiz
Post by: Eclipse16V on October 04, 2011, 09:52:08 AM
Ja bzw. so einfach ist es nicht.
Du musst da einiges an der Mod ändern um es in Deutsch zum laufen zu bekommen.
Title: Re: SMF Quiz
Post by: M50Freak on October 05, 2011, 01:17:46 AM
Moin

Und was? Sorry hab damit noch nicht so viel erfahrung.

mfg
Title: Re: SMF Quiz
Post by: Eclipse16V on October 05, 2011, 03:37:04 AM
Fast jede Datei dieser Mod habe ich geändert. IM ACP der Mod muss man aber aufpassen da sonst nichts mehr geht.
Ist ein haufen arbeit. Bin auch noch nicht ganz fertig bei mir.
Title: Re: SMF Quiz
Post by: M50Freak on October 05, 2011, 05:30:52 AM
OMG  :'(

Das bekomme ich dan sicherlich nicht hin:(:(

Könntest du mir die Deutsche Datei zukommen lassen?
In welchen Forum hast du es eingebunden?

Meine SMF Version:
Powered by SMF 2.0 RC5 | SMF © 2006–2010, Simple Machines LLC
Extended by PortaMx v1.0 RC4 | PortaMx © 2008-2011 by PortaMx corp.
BlackRain V2 2009, by CripXHTMLRSSWAP2


mfg
Norbert
Title: Re: SMF Quiz
Post by: bearstreet on October 05, 2011, 03:40:20 PM
is there anyone  using mod this for smf who can post the link of their of quiz website made with this mod?
Title: Re: SMF Quiz
Post by: Kindred on October 05, 2011, 03:46:08 PM
I am using it on 40konline.com
Title: Re: SMF Quiz
Post by: bearstreet on October 05, 2011, 11:30:07 PM
I am using it on 40konline.com

 i tried registering on your forum,
but the answer to that worded question 5+ ....... is 12 or something else...

5+11-4=12

i couldnt register so couldnt see
Title: Re: SMF Quiz
Post by: Ozzie on October 06, 2011, 04:32:52 AM
i have it on my site if you having trouble getting onto Kindred's site
Title: Re: SMF Quiz
Post by: bearstreet on October 06, 2011, 04:45:16 AM
i have it on my site if you having trouble getting onto Kindred's site

it says after registering that admin must approve my request
Title: Re: SMF Quiz
Post by: Ozzie on October 06, 2011, 04:52:34 AM
yer for some reason your user name you used  "sunny" sent stop spammer into overdrive  ....sent email but will monitor
Title: Re: SMF Quiz
Post by: bearstreet on October 06, 2011, 05:10:35 AM
yer for some reason your user name you used  "sunny" sent stop spammer into overdrive  ....sent email but will monitor

I am in.

it is awesome
 :)
Title: Re: SMF Quiz
Post by: M50Freak on October 06, 2011, 06:34:45 AM
Moin

Why the quiz dosent work´s ?

What must i change?
Title: Re: SMF Quiz
Post by: bearstreet on October 06, 2011, 09:23:25 AM
is there a limit for the number of users that can take the quizzes at a time simultaneously??
does any one has any experience with this??
Title: Re: SMF Quiz
Post by: bearstreet on October 07, 2011, 01:57:53 PM
I am planning to include the functionality that when a user finishes a quiz, he should be presented a link which redirects him to discussion thread for that quiz.

is that doable??
Title: Re: SMF Quiz
Post by: Kindred on October 07, 2011, 02:32:02 PM
anything is do-able, you just have to code it....   that is not a standard part of the mod, though.
Title: Re: SMF Quiz
Post by: bearstreet on October 07, 2011, 02:49:55 PM
anything is do-able, you just have to code it....   that is not a standard part of the mod, though.

any pointers how to go about it.??
how to include a link at the results page of every quiz so that when the quiz is finished and the results screen comes up, there is a link for directing users to a particular thread which is present for that particular quiz.
Title: Re: SMF Quiz
Post by: Kindred on October 07, 2011, 03:09:30 PM
you would have to add a new database field to hold the associated discussion ID and then create a form field in the admin so that you could assign a discussion ID to a quiz and finally a call-out/display of that discussion ID as a link on the results page.

In all, not a minor task.
Title: Re: SMF Quiz
Post by: GlitchPC on October 07, 2011, 04:43:13 PM
After install and redirect, I get the following error message:

Code: [Select]
Fatal error: Cannot redeclare ParseLeagueMessage() (previously declared in /usr/www/users/xxxxxxxx/xxxxxxxx/Sources/ScheduledTasks.php:733) in /usr/www/users/xxxxxxxx/xxxxxxxx/Sources/SMFQuizAdmin.php on line 348
I'm running SMF 2.0.1
Title: Re: SMF Quiz
Post by: Kindred on October 07, 2011, 05:00:34 PM
you have apparently installed twice.... or installed another mod which uses the same named function.
Title: Re: SMF Quiz
Post by: GlitchPC on October 07, 2011, 05:48:59 PM
Thanks for the reply, Kindred.

I didn't install it twice and really not sure what mod would be calling the same function.  Looks like the author no longer has any interest in this...so, I decided just to uninstall it.

I appreciate the help, though.
Title: Re: SMF Quiz
Post by: bearstreet on October 08, 2011, 10:33:56 AM
you would have to add a new database field to hold the associated discussion ID and then create a form field in the admin so that you could assign a discussion ID to a quiz and finally a call-out/display of that discussion ID as a link on the results page.

In all, not a minor task.

thanks kindered.

i do understand what you said, but as of now, i cant implement it due to lack of knowledge
Title: Re: SMF Quiz
Post by: davejo on October 09, 2011, 07:04:20 AM
For general info only.

Please don't ask me for support help as I'm not a coder I just do this as a hobby.

I have this installed and working in SMF 2.0.1 with the following mods installed:

1. Default Avatar 2.0   
2. SMF Arcade v2.5 PDL Package 3.4   
3. SimplePortal 2.3.3   
4. SMF Quiz 1.0.8 beta4   
5. Aeva Media 1.4w   
6. SMF Arcade PDL Jeza Edits 1.3   
7. Project Snow 1.1 1.1   
8. Holiday/Sunday Color Red 1.0.1   
9. Welcome Topic Mod 2.1     
10. SP-Shout Arcade Scores 1.0   
11. SMF Arcade Trophies Mod 1.2   
12. Arcade Skin 2.5 RC1 1.0.0     
13. Ad Managment 2.3.6.4 
14. SMF Arcade 2.5 RC1   
15. SMF 2.0.1 Update 1.0   
16. Happy Birthday 0.2.2   
17. Last Users In 24 Hours 1.0   
18. InLine Attachments 1.09   
19. Logo Rotator 0.1 Beta 2     
20. SMF 2.0.1 Update 1.0   
21. Highslide 4 SMF 0.7a     

I can create quizzes and all other funtionality is working Ok.

If you want to see it working look at my profile and sign up to my site to try it out.
Title: Re: SMF Quiz
Post by: ben sisko on October 11, 2011, 08:21:12 AM
Can anyone take over this mod & update for 2.0

I don't have the knowledge unfortunately  :-\

without permission from the original author, this mod can not be distributed by any one else...

@Kindred: i would say the message bellow qualifies as a permission. am i right?

.. Any other modders that want to help out are welcome.

Title: Re: SMF Quiz
Post by: Kindred on October 11, 2011, 09:39:18 AM
Unfortunately, taken in context to the post - no, it does not - he was asking for input from other modders to HELP with some requested additions to the mod, not giving permission to make those modifications or distribute it.

I know it sounds like I am being a hard-case here...  however. when it comes to copyright law, there is not a whole lot of leeway.

Until/Unless someone can get written permission from quiz_modder to take over the mod (or get him to release a statement that the mod is released under an Open Source license, like BSD) then we (on simplemachines.org) can not allow distribution of his mod by anyone else.

Believe me, this hurts me as much as anyone else. I like this mod. I use this mod. I want more quizzes for the mod.

Title: Re: SMF Quiz
Post by: davejo on October 12, 2011, 03:37:02 AM
I want more quizzes for the mod.

I tried to set up my test site as a base for the quizzes but unfortunately it seems that quiz_modder actually set up something on his server to allow people to access which is in part in the following lines

'SMFQuizAdmin.php'

Code: [Select]
"http://www.smfmodding.com/Sources/SMFQuizImporter.php?action=getImporterStats";
there are other lines that also refer to his site for uploading of files

Code: [Select]
$server  = 'www.smfmodding.com';
//$server  = 'localhost';
$port    = '80';
$uri     = '/Sources/SMFQuizUpload.php';
//$uri     = '/smf2/Sources/SMFQuizUpload.php';

All in all without the php files he put on his server so people can access the quizzes either to download or upload I cannot replicate the storage area he had.

I was quite willing to use my test site storage area for everyone to upload and download new and old quizzes alike (at no cost) as I have quite a bit of bandwidth that's not used.

I have used the package manager, on my live site, to create a packge for a quiz I have written, it saves the quiz in xml format,  but I am unable to import it into the test site to use it, so I'm not really sure what the function of the package manager is, unless I'm being thick and that could be an option ;).

Anyway unless someone can come up with those php files or create new ones were are basically stuffed.
 
Title: Re: SMF Quiz
Post by: Soja on October 28, 2011, 12:34:22 AM
i have installed successfully smf quiz 1.0.8 beta4.

everything works awesome except one thing.

unable to create any quiz by own. it gives an error:

Quote
An Error Has Occurred!
Wrong value type sent to the database. Integer expected. (id_category)

its so annoying for me as well as users. so please guide me what to do.

thank you.

I have the same problem and cannot find a solution

I'm guessing that the error is the result of there being no option to select the category when defining the question.

Any ideas anyone?

Wrong value type sent to the database. Integer expected. (id_category) is a result of not having a quiz made before you try and add questions. Took me a few hours to figure this one out myself  ;D

Title: Re: SMF Quiz
Post by: Study Force on October 29, 2011, 01:34:33 AM
Excellent Mod... Is there a 1.x variant to this :-[ :-\
Title: Re: SMF Quiz
Post by: quiz_modder on November 05, 2011, 09:59:10 AM
Apologies. I am not longer working on this mod.

If anyone wants to take it over from me you are more than welcome.

Thanks
Title: Re: SMF Quiz
Post by: Study Force on November 05, 2011, 01:43:37 PM
Apologies. I am not longer working on this mod.

If anyone wants to take it over from me you are more than welcome.

Thanks

That's too bad, I really want a flashcard mod like this one, nothing else exists for 1.x!
Title: Re: SMF Quiz
Post by: davejo on November 06, 2011, 04:08:46 AM
Until/Unless someone can get written permission from quiz_modder to take over the mod (or get him to release a statement that the mod is released under an Open Source license, like BSD) then we (on simplemachines.org) can not allow distribution of his mod by anyone else.

Apologies. I am not longer working on this mod.

If anyone wants to take it over from me you are more than welcome.

Thanks


I think the comment above by quiz_modder now opens that door Kindred
Title: Re: SMF Quiz
Post by: Kindred on November 06, 2011, 08:49:00 AM
It does... If someone will do it, now....
Title: Re: SMF Quiz
Post by: quiz_modder on November 06, 2011, 03:41:49 PM
It does... If someone will do it, now....

Have fun  :)
Title: Re: SMF Quiz
Post by: Study Force on November 06, 2011, 06:02:38 PM
That said, could someone make a 1.x variant :(
Title: Re: SMF Quiz
Post by: Kindred on November 06, 2011, 07:49:33 PM
it is unlikely that this will ever be back ported to 1.1.x.
2.0 is the current release....
Title: Re: SMF Quiz
Post by: Study Force on November 07, 2011, 07:36:44 PM
it is unlikely that this will ever be back ported to 1.1.x.
2.0 is the current release....

What a shame
Title: Re: SMF Quiz
Post by: mortymoose on November 14, 2011, 01:34:21 PM
I was using this mod about a 18 months ago, excellent mod, I just had a problem with my forum and had to uninstall the mod..... The problem on my forum had NOTHING to do with this mod, my members enjoyed the mod...so did I, I think this could be one of the :BIG" Mods..... given time and support .... So I encourage anyone out there to carry on with the project, I unfortunately do not know how to write the code....

On another point, I have just managed to reinstall the mod, but have lost all my animate icons.... I see smfmodding has shut his site down, does anyone remember how to get the icons back .... I forget as Iinitially installed this mode over two years ago.


Thanks
Title: Re: SMF Quiz
Post by: Wolfi on December 01, 2011, 07:20:46 AM
Moin Zusammen,

Vielleicht kann mir hier einer helfen, irgentwie finde ich nix passendes. Habe den Mod install via Paketmanager. Er zeigte mir keine Fehler an. Das Quiz kann ich sehen, auf der Seite sowohl als auch im ACP. Gehe ich jetzt allerdings auf bearbeiten im ACP
wird mir die darauffolgende Seite nicht angezeigt, einfach nur weißes Bild, keine Fehlermeldung, nichts.
Habe dann Sprache(ACP) umgestellt, brachte auch nichts.
Habe im Language Ordner die 3 Englishen Dateien, habe die 3 Kopiert und als german dazu gesetzt, nüscht.
habe im Paketordner die Version des Boards geändert, auch nichts.
Langsam verzweifel ich hier :)

version; SMF 2.0.1
ezBoard
Theme: Rhusty White

Sollte dieses Problem schonmal wo behandelt worden sein, dann sry für diese erneute Anfrage :)

Title: Re: SMF Quiz
Post by: Eclipse16V on December 01, 2011, 05:33:07 PM
Das umstellen auf Deutsch ist nicht so einfach.
Erst recht die ACP Dateien.
Dort habe ich alles noch in Englisch und nur den User Bereich in Deutsch. Da geht alles ohne Probleme.
Title: Re: SMF Quiz
Post by: GlitchPC on December 13, 2011, 12:16:39 PM
Okay...

I tried to give this another go.  I still get the same error as originally reported here:  http://www.simplemachines.org/community/index.php?topic=293949.msg3179787#msg3179787

So...I tried Eclipse16V's fix here:  http://www.simplemachines.org/community/index.php?topic=293949.msg3140530#msg3140530

While that got me into the Admin area...I still get several error messages in the Admin Error Log.  That was trying to use the latest beta version of this mod 1.0.8, I beleive...on an SMF 2.0.1 board.

So...next, I tried to install the 1.07 version on the same board.  It parsed okay...I just had to make manual template changes to Subs.php and ScheduledTasks.php...no big deal.  Uh-oh!  Database error...telling me I have to upgrade.  Go to PHPMyAdmin and change the database table names...to 'smf_' prefixes...still no go!

For those of you running this quiz on your SMF 2.0.1 boards...How the heck did you do it????
Title: Re: SMF Quiz
Post by: davejo on December 13, 2011, 01:14:44 PM
Okay...

I tried to give this another go.  I still get the same error as originally reported here:  http://www.simplemachines.org/community/index.php?topic=293949.msg3179787#msg3179787

So...I tried Eclipse16V's fix here:  http://www.simplemachines.org/community/index.php?topic=293949.msg3140530#msg3140530

While that got me into the Admin area...I still get several error messages in the Admin Error Log.  That was trying to use the latest beta version of this mod 1.0.8, I beleive...on an SMF 2.0.1 board.

So...next, I tried to install the 1.07 version on the same board.  It parsed okay...I just had to make manual template changes to Subs.php and ScheduledTasks.php...no big deal.  Uh-oh!  Database error...telling me I have to upgrade.  Go to PHPMyAdmin and change the database table names...to 'smf_' prefixes...still no go!

For those of you running this quiz on your SMF 2.0.1 boards...How the heck did you do it????

I had the same error and the only way I could get rid of it was to edit 'SMFQuizAdmin.php' which is in the 'Sources' directory

Make a copy of the current file.

Find:
Code: [Select]
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league) {

global $user_settings, $scripturl;

$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}

Remove this code, save the file and clear out the cache and try to access the quiz admin again.

What I found was that the above code is identical in both the 'SMFQuizAdmin.php' and 'ScheduledTasks.php'
 and my guess was that it would not be required twice, so removing it from the 'SMFQuizAdmin.php' seemed the logical choice.

I have seen no adverse effects after removing this code in the general working of the quiz or creating quizzes etc. I have not done a league clean up as I have disabled that function just incase the edit does affect it.

If you are likely to use the league part of the quiz you may want to speak to someone further to see if they can solve it.

Hope that helps
Title: Re: SMF Quiz
Post by: GlitchPC on December 13, 2011, 01:46:58 PM
Basically...that's what Eclipse16V's edit does.  Like I said...I'm able to get into the Quiz Admin, but every time I do...it results in an entry in the Admin Error Log.
Title: Re: SMF Quiz
Post by: Eclipse16V on December 14, 2011, 07:34:27 AM
Hello,
wanted to ask whether there is something new regarding the mod already?
Would not even pursue this a mod?
Title: Re: SMF Quiz
Post by: TosBoss on December 17, 2011, 03:13:43 PM
got this working in 2.0.1


 with 24 quizes from 2rc1

Title: Re: SMF Quiz
Post by: booch_21 on December 25, 2011, 08:16:40 PM
Ok, I'm trying to get this mod working again in 2.0.2.  Everything appears to work except that I am getting a "parser error" when trying to play any quiz.  I had this up and running back when the author was working with it quite a bit.  Now, his forum is down, and all traces of the fix are gone.  Can anyone help me trace this thing out, please?
Title: Re: SMF Quiz
Post by: Mr_Toad on January 20, 2012, 07:25:35 PM
As "booch_21", I am getting the "parser error", thus:
"An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error."

Any help that anyone can give me would be much appreciated. I use SMF 2.0.1 with TorBlock, BadBehaviour and Forum Firewall (the theme is 'Fresh Looks').

Previous commentators refer to this error in the context of using language files other than English - but my site is English. Are there some 'english'-related files that need to be removed?

Tried uninstalling and installing, without success. The first test quiz that I made keeps re-appearing - apart from clearing the file cache can anyone direct me to the relevant places to 'clean' up the code it left behind (I searched for 'SMFQuiz' and so on)?

I guess I'll have to make a quiz page myself and just re-direct to it from the forum. Very disappointing because this problem seems to be just a small glitch.
Title: Re: SMF Quiz
Post by: eedriyz on January 21, 2012, 10:05:46 AM
If I change the following, it works without problems (at present) with me.

SMFQuizAdmin.php
Search
Code: [Select]
function ParseMessage($message, $quiztitle, $total_seconds, $total_points, $top_time, $top_points, $quizImage, $scripturl, $id_quiz, $old_member_name) {

global $user_settings;

$message = str_replace("{quiz_name}", $quiztitle, $message);
$message = str_replace("{new_score_seconds}", $total_seconds, $message);
$message = str_replace("{new_score}", $total_points, $message);
$message = str_replace("{old_score_seconds}", $top_time, $message);
$message = str_replace("{old_score}", $top_points, $message);
$message = str_replace("{member_name}", $user_settings['real_name'], $message);
$message = str_replace("{old_member_name}", $old_member_name, $message);
$message = str_replace("{quiz_image}", "[img]" . $quizImage . "[/img]", $message);
$message = str_replace("{quiz_link}", $scripturl . '?action=SMFQuiz;sa=categories;id_quiz=' . $id_quiz, $message);
return $message;
}

function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league) {

global $user_settings, $scripturl;

$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}

Replace with
Code: [Select]
function ParseMessage($message, $quiztitle, $total_seconds, $total_points, $top_time, $top_points, $quizImage, $scripturl, $id_quiz, $old_member_name) {

global $user_settings, $scripturl;

$message = str_replace("{quiz_name}", $quiztitle, $message);
$message = str_replace("{new_score_seconds}", $total_seconds, $message);
$message = str_replace("{new_score}", $total_points, $message);
$message = str_replace("{old_score_seconds}", $top_time, $message);
$message = str_replace("{old_score}", $top_points, $message);
$message = str_replace("{member_name}", $user_settings['real_name'], $message);
$message = str_replace("{old_member_name}", $old_member_name, $message);
$message = str_replace("{quiz_image}", "[img]" . $quizImage . "[/img]", $message);
$message = str_replace("{quiz_link}", $scripturl . '?action=SMFQuiz;sa=categories;id_quiz=' . $id_quiz, $message);
return $message;
}
/*
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league) {

global $user_settings, $scripturl;

$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}
*/

This is not ideal, but at least I'm in the admin area.


My problem is different. After installing the quiz mod on my forum no part of the site can be accessed. All it brings is:
Code: [Select]
Fatal error: Cannot redeclare scheduled_quiz_maintenance() (previously declared in /home/leadwblc/public_html/Sources/ScheduledTasks.php:393) in /home/leadwblc/public_html/Sources/ScheduledTasks.php  on line 1116./ I already tried those solution but none worked. I use version 2.02
I really need help as fast as possible.
thanks in anticipation
Title: Re: SMF Quiz
Post by: eedriyz on January 21, 2012, 11:34:02 AM
All I need for now is to get my forum up and running again. Pls I really need help
Title: Re: SMF Quiz
Post by: SA™ on January 21, 2012, 01:16:03 PM
check Sources/ScheduledTasks.php

and see if scheduled_quiz_maintenance() is declared twice if so remove one if you are unsure pls attach that filee here
Title: Re: SMF Quiz
Post by: eedriyz on January 21, 2012, 02:03:58 PM
check Sources/ScheduledTasks.php

and see if scheduled_quiz_maintenance() is declared twice if so remove one if you are unsure pls attach that filee here

Thanks IT IS WORKING NOW
Title: Re: SMF Quiz
Post by: mrselnombre on March 03, 2012, 04:00:54 PM
I'd really like to try this mod.
Does anyone have the quiz packs?

Want to see if i can get it working.
Title: Re: SMF Quiz
Post by: mrselnombre on March 03, 2012, 05:14:31 PM
This is working fine on my forum.... so far.
Installed and created my own quiz, it's being tested by users now.
There are a couple of things in the error log, but nothing that prevents play so far.
I have a missing image but i can sort that tomorrow with my own creation.

I run 2.0.2 and the latest version of the quiz, which is a beta.
Title: Re: SMF Quiz
Post by: Chalky on March 03, 2012, 05:31:08 PM
I'm also on 2.0.2, and it says it's installed correctly, but then as it tries to divert me to the settings, or if I navigate to the settings myself, I get the error message:

Fatal error: Cannot redeclare parseleaguemessage() (previously declared in /home/content/28/74****8/html/sabrinova/Sources/ScheduledTasks.php:733) in /home/content/28/74****8/html/sabrinova/Sources/SMFQuizAdmin.php on line 348
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 12:48:43 AM
not had that problem?
have you checked that line 348 in the file SMFQuizAdmin.php?
Title: Re: SMF Quiz
Post by: Chalky on March 04, 2012, 03:44:14 AM
How odd.... line 348 is just a }

Any ideas?
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 03:49:41 AM
Looks like line 338 is relevant to your error.

what about the file /Sources/ScheduledTasks.php:733 ?
Title: Re: SMF Quiz
Post by: davejo on March 04, 2012, 04:12:19 AM
I'd really like to try this mod.
Does anyone have the quiz packs?

Want to see if i can get it working.


First thing you need to do is install the quiz even though you dont have any images or questions.

Then download the tables and images I have uploaded (13Mb) here  (http://www.rapidshare.com/files/511666311/Quiz_data___images.rar)

Once you have done that then go to your cPanel for your site, run 'phpMyadmin' and delete the 12 tables that start with the name smf_quiz.

Once you have done that, open the file 'create database tables for quiz.sql' in 'Notepad++' if you don't have it installed get it...it's free, and this will not add any formatting to the text either which is very important.

The copy the text, (CTRL+A).

Go to your database and click on 'SQL' at the top of the page and paste (CTRL+V)the text from the database file into the box. Once you have done that click on go....wait for a while until the text disappears then click on you database name to see if the tables have been installed. If yes then close 'cPanel'.

Now go to the location where your SMF site is installed go to
Quote
/public_html/Themes/default/images/quiz_images
using the folders provided by me overite the existing 2 folders 'Questions' & Quizes'

Once you have done that go to you site and clear out the cache and your quiz should be safe to run.

I have tested this method on my test site and it worked twice so there should be no reason that I can think of that it wont work on yours.

As I'm not sure if the link I have provided for the files is allowed PM me if the staff delete it and I'll send the link that way.
Title: Re: SMF Quiz
Post by: Chalky on March 04, 2012, 04:14:43 AM
Looks like line 338 is relevant to your error.

what about the file /Sources/ScheduledTasks.php:733 ?
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 04:19:06 AM
Looks like line 338 is relevant to your error.

what about the file /Sources/ScheduledTasks.php:733 ?
hmm, same as mine.
can you see any duplicate code in that file?
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 04:24:25 AM

First thing you need to do is install the quiz even though you dont have any images or questions.

Then download the tables and images I have uploaded (13Mb) here  (http://www.rapidshare.com/files/511666311/Quiz_data___images.rar)

Once you have done that then go to your cPanel for your site, run 'phpMyadmin' and delete the 12 tables that start with the name smf_quiz.

Once you have done that, open the file 'create database tables for quiz.sql' in 'Notepad++' if you don't have it installed get it...it's free, and this will not add any formatting to the text either which is very important.

i can't find that file in the rar i have just downloaded.
Title: Re: SMF Quiz
Post by: Chalky on March 04, 2012, 04:26:57 AM

hmm, same as mine.
can you see any duplicate code in that file?

I've just looked down the whole file and nothing has jumped out at me  :-\
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 04:28:55 AM
you can send it to me and i can take a look.
?
i don't know if you can attach it here, or if we'll have to rely on email
Title: Re: SMF Quiz
Post by: Chalky on March 04, 2012, 04:37:21 AM
you can send it to me and i can take a look.
?
i don't know if you can attach it here, or if we'll have to rely on email

Thanks :)  I'll try...
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 05:06:23 AM
hmm, all added to that file correctly.
Do you have any duplicate entries in your scheduled tasks section in your Admin area?

I'm puzzled. I'm no expert.

What about the edits to sourcedir/Admin.php? are there any duplicates there? (thinking about where you are getting the errors)
you could even try reuploading the file SMFQuizAdmin.php to your site? Not convinced about that one tho.

personally, i'd completely remove it, check all the files to make sure all the edits have been taken out.
Then i'd re-download and try again.

Something is off, but it's not affecting everyone, as i have installed it, and it is working fine.
Title: Re: SMF Quiz
Post by: Chalky on March 04, 2012, 05:15:58 AM
Thanks, I'll try removing and re-downloading first.
Upon uninstalling I get this message in red at the top of my screen:

"IMPORTANT NOTE: The database tables/entries are not uninstalled, as you may be going to perform an upgrade. If you are not planning on continuing with this mod, please remove these manually. A script may be provided at http://www.smfmodding.com to do this automatically if demand is high enough"

I have no idea how to manually remove database tables or entries  :-\
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 05:22:36 AM
I don't think it would install more entries to the database when you reinstall it, as the bits it needs would already be there.

BUT

I'm clueless with SQL, so hopefully someone else will know the quickest way to do it.

Otherwise I'd back up the database completely and go into PhpMyAdmin and delete entries manually, but this is risky if you don't know what you are doing, and I wouldn't advise it.
Title: Re: SMF Quiz
Post by: davejo on March 04, 2012, 09:16:15 AM
i can't find that file in the rar i have just downloaded.

It's definately there as I have just downloaded it myself.

Once you have extracted the file you will end up with a folder called 'Quiz_data___images' inside that there another folder 'Quiz data & images' inside that folder is the sql file and the images folders to upload.

The only way to delete the database tables is from your cPanel or whatever it is you use the administer your domain. You should be able to backup your database via the options in Admin\Maintenance\Database...and choose the option 'Backup Database'. I have never done this as I use a program called 'Mysql Administrator' but at least you'll have a backup in case you do something wrong.

As long as you only tick the boxes to the smf_quiz tables, as I have said there are on 12 of them, and drop those then your not doing any harm to the rest of the site.

If you have access to your cPanel but don't know what your doing and you need help let me know...I cannot do anything to help you if you don't have access to cPanel.
Title: Re: SMF Quiz
Post by: Chalky on March 04, 2012, 09:18:19 AM
Have you any ideas about my issue Davejo?  I've reinstalled from a fresh download but it's exactly the same...
Title: Re: SMF Quiz
Post by: davejo on March 04, 2012, 09:55:48 AM
Have you any ideas about my issue Davejo?  I've reinstalled from a fresh download but it's exactly the same...

I have just installed this on a fresh install of 2.0.2 and there were no errors at all. I have also changed the database files as i described and have a fully functioning quiz.

I might have changed some code in the original package. So I have attached it below. You do not have to delete the tables to re-install the quiz.
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 10:42:40 AM
Thanks, it was indeed there. I was having a blonde moment this morning. :D

1 question..
I don't really want to delete the quizzes I created this morning. Just because of the time it took to create them.

 So could i save them and some how add them back in once I've installed this Sql info?

I exported my quiz sql from the database before dropping, so i can add back easily.
Title: Re: SMF Quiz
Post by: GlitchPC on March 04, 2012, 10:57:55 AM
Have you any ideas about my issue Davejo?  I've reinstalled from a fresh download but it's exactly the same...

I have just installed this on a fresh install of 2.0.2 and there were no errors at all. I have also changed the database files as i described and have a fully functioning quiz.

I might have changed some code in the original package. So I have attached it below. You do not have to delete the tables to re-install the quiz.

Will you be submitting this to SMF for approval?
Title: Re: SMF Quiz
Post by: davejo on March 04, 2012, 11:44:38 AM
Will you be submitting this to SMF for approval?

I have no plans to...all I'm doing is trying to help out someone who's stuck...the file I have attached works for me so I am sharing it with others. I am not a coder and do not have any training as such... this is just a hobby...nothing else...if I can help someone along the way I will.

The original poster of this mod has abandoned it and said that anyone can take it over so I don't really see that there is a problem with sharing the file....unless you know different!!!
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 11:49:26 AM
Do you know how i can change creator of all the quizzes in the sql file?

It added tons of quizzes fine :D
So thank you heaps for that.
Title: Re: SMF Quiz
Post by: davejo on March 04, 2012, 12:00:34 PM
Do you know how i can change creator of all the quizzes in the sql file?

It added tons of quizzes fine :D
So thank you heaps for that.

No problem glad I could help.

I had an idea that if you created another admin on the site and then installed the quiz with that account it would use that name as the creator of the quiz.

I created a user called 'Quizmaster' and created a quiz with that account and it worked ok....but I'm not sure about doing it with the tables I have shared.

I'll have a mess around by re-installing it again on the test site with another admin name and see if it works...watch this space  ;)
Title: Re: SMF Quiz
Post by: davejo on March 04, 2012, 12:37:27 PM
Do you know how i can change creator of all the quizzes in the sql file?


Ok I have tried and tested some theories and it seems that the default creator of the quizzes is 'User 1' if I change the member id's in the database and reverse them i.e Quizmaster=1 and Dave=2 then it shows as 'Quizmaster' but as a soon as I revert back to the correct id's it revert the creator to 'Dave' again. As you know the installer username of the site is 'User 1'

This means that the settings for this are determined within the code of the files for the quiz when it's installed. I don't know how to or even if it's worth the hassle of trying to change it. Sorry I can't help any more than that
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 12:58:26 PM
I was thinking about running a sql query to just change the identity of the creator of all the quizzes in the sql file you had.
I don't mind being the creator of future quizzes. It would just be fun to join in on the playing on the new ones we have.

Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 01:10:38 PM
I created a new user called Quiz Master then I did this
Code: [Select]
UPDATE `quiz` SET `creator_id` = '4067' WHERE `quiz`.`creator_id` =1 and it worked

(i have a different system for my databases hence table names (mine don't have smf_)
Title: Re: SMF Quiz
Post by: davejo on March 04, 2012, 01:36:26 PM
I created a new user called Quiz Master then I did this
Code: [Select]
UPDATE `quiz` SET `creator_id` = '4067' WHERE `quiz`.`creator_id` =1 and it worked

(i have a different system for my databases hence table names (mine don't have smf_)


ok thanks for that...I ran

Code: [Select]
UPDATE `smf_quiz` SET `creator_id` = '12' WHERE `creator_id` =1
and that worked too.

Thanks for the heads up on that I'll run that on the main site now  ;)
Title: Re: SMF Quiz
Post by: mrselnombre on March 04, 2012, 01:40:59 PM
No problem.
:D

It's a good Mod, hopefully someone will pick it up and take it on :D
Title: Re: SMF Quiz
Post by: Kindred on March 04, 2012, 05:17:29 PM
hmmm.... what database changes did you need to make?

The quiz installed perfectly well on my 2.0.2 installation of SMF
The only issue with the package, as presented on the mod site, is that the smf quiz site is gone, so there are no more notices or quick packages.


As for sharing your version....   yes, the original author has said that anyone may take it over.... However, you're not taking it over and, by including the mod as an attachment, you bypassed the checks that the SMF makes to make sure that mods don't contain obvious security issues or back doors.... So users who download and/or use attached packages need to be aware and careful.
I'm not going to remove the package, since the author essentially opened it up... but it does border on the edge of the rules. :)


to the user with the "previously declared" error.
You apparently did an additional install without uninstalling first.
You will have to MANUALLY remove all of the duplicated code (and there is likely more affected than just the part giving you the error message)
Title: Re: SMF Quiz
Post by: Chalky on March 04, 2012, 05:36:26 PM

to the user with the "previously declared" error.
You apparently did an additional install without uninstalling first.
You will have to MANUALLY remove all of the duplicated code (and there is likely more affected than just the part giving you the error message)

If you mean me, I have uninstalled each time before trying to reinstall.  I know I have because the first two times I uninstalled immediately that I saw the error message.  The third time I installed it I had a sniff around a bit first before uninstalling.  I have also installed each time through the Package Manager.  Each time the install passes all the tests then claims to have installed successfully, ie. it seems a completely normal installation.  I can even navigate around the front end of the application from the "Quiz" button on my menu bar, although there are no quizzes in there.  The error message only appears when I try to access the settings for the Quiz in my admin area, and of course when SMF tries to auto-direct to the settings immediately after install.

If however, you believe I have duplicated code that needs removing, please can you point me in the right direction - what and where?  I'm a complete newbie at this. 
Title: Re: SMF Quiz
Post by: Kindred on March 04, 2012, 05:54:22 PM
you will have to check the mod parse instructions and go through each instruction to check for duplicated code.
Title: Re: SMF Quiz
Post by: Chalky on March 04, 2012, 06:17:51 PM
Thanks, I will have to have a look at this tomorrow now as my head is jangled.
Title: Re: SMF Quiz
Post by: GlitchPC on March 04, 2012, 06:34:41 PM
Will you be submitting this to SMF for approval?

I have no plans to...all I'm doing is trying to help out someone who's stuck...the file I have attached works for me so I am sharing it with others. I am not a coder and do not have any training as such... this is just a hobby...nothing else...if I can help someone along the way I will.

The original poster of this mod has abandoned it and said that anyone can take it over so I don't really see that there is a problem with sharing the file....unless you know different!!!

Nope...just looking for a fully functional mod for 2.0.2.  I'll give it a shot...and thanks!
Title: Re: SMF Quiz
Post by: GlitchPC on March 04, 2012, 08:03:03 PM
Have you any ideas about my issue Davejo?  I've reinstalled from a fresh download but it's exactly the same...

I have just installed this on a fresh install of 2.0.2 and there were no errors at all. I have also changed the database files as i described and have a fully functioning quiz.

I might have changed some code in the original package. So I have attached it below. You do not have to delete the tables to re-install the quiz.

Using the file you supplied in the above post.  I had to extract and compress as a zip file since the Package Manager does not use .rar files.

Installation with Package manager had no errors...however, my error log shows different:

xxxx://glitchpc.net/index.php?action=admin;area=quiz;sa=adminCenter
8: Trying to get property of non-objectFile: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Sources/SMFQuizAdmin.php
Line: 2408

xxxx://glitchpc.net/index.php?action=admin;area=quiz;sa=adminCenter
8: Trying to get property of non-objectFile: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Sources/SMFQuizAdmin.php
Line: 2411

xxxx://glitchpc.net/index.php?action=admin;area=quiz;sa=adminCenter
2: Invalid argument supplied for foreach()File: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Themes/default/languages/BadBehavior_bbc.english.php (main sub template - eval?)
Line: 1740

Any suggestions?
Title: Re: SMF Quiz
Post by: Kindred on March 04, 2012, 10:11:56 PM
hmmm.... what database changes did you need to make?

The quiz installed perfectly well on my 2.0.2 installation of SMF
The only issue with the package, as presented on the mod site, is that the smf quiz site is gone, so there are no more notices or quick packages.
Title: Re: SMF Quiz
Post by: GlitchPC on March 04, 2012, 10:36:17 PM
Thanks, Kindred...I sort of realized that after looking at the code from those two lines of SMFQuizAdmin.php.  However, I still have one error that needs to be addressed.  I put a support request over at the Bad Behavior mod support forum and was told to disable template eval to remove the above error.  After doing so...the error now reads:

xxxx://glitchpc.net/index.php?action=admin;area=quiz;xxxxxxxxxxx=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
2: Invalid argument supplied for foreach()File: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Themes/default/SMFQuizAdmin.template.php
Line: 1740
Title: Re: SMF Quiz
Post by: Kindred on March 04, 2012, 10:56:46 PM
Do you have quizzes in the list?
Title: Re: SMF Quiz
Post by: GlitchPC on March 04, 2012, 11:04:55 PM
None...I'm just adding categories at the moment.

Edit...

Duh!  That explains it.  I like the way you make a person think, Kindred...

I appreciate the help...really.

On another note...

Can someone tell me how to clean this up?  See attachment...
Title: Re: SMF Quiz
Post by: davejo on March 05, 2012, 02:49:02 PM
On another note...

Can someone tell me how to clean this up?  See attachment...

It might be a theme issue Glitch....have you tried copying the 'quiz_css' into the custom themes css folder?

Can't think of anything else
Title: Re: SMF Quiz
Post by: GlitchPC on March 05, 2012, 03:38:26 PM
Thanks for the reply...

I doubt it's a theme issue since I see the same on your site...and I also experience the same in the default SMF Curve theme.  It just looks so ugly the way it's displayed...almost like an accordion...ya know?

I just think it's the way it's coded.  However...I've said it once...and I'll say it a thousand times...I'm no coder.  Kindred make me think about it, though...which I do...sometimes.  Sometimes I figure it out...and sometimes I don't.  That's when Kindred steps in and gives me a little nudge.  He's good for that...and I hope he knows I appreciate it.  As well as I appreciate your help, too, davejo.  Thanks!
Title: Re: SMF Quiz
Post by: davejo on March 05, 2012, 04:08:07 PM
Thanks for the reply...

I doubt it's a theme issue since I see the same on your site...and I also experience the same in the default SMF Curve theme.  It just looks so ugly the way it's displayed...almost like an accordion...ya know?

I just think it's the way it's coded.  However...I've said it once...and I'll say it a thousand times...I'm no coder.  Kindred make me think about it, though...which I do...sometimes.  Sometimes I figure it out...and sometimes I don't.  That's when Kindred steps in and gives me a little nudge.  He's good for that...and I hope he knows I appreciate it.  As well as I appreciate your help, too, davejo.  Thanks!

I am exactly the same as you Glitch, I'm no coder and most of what I know is from info on boards like this with the help of everyone else, who I thank very much for their input and help.

I have just looked at your screenshot and have attached mine...I have used the default theme and the look of mine is not the same as yours. So now I'm thinking is it a browser issue..I'm using IE9..especially as you said that mine looks like yours.

here's my screenshot
Title: Re: SMF Quiz
Post by: mrselnombre on March 05, 2012, 04:12:03 PM
Mine doesn't do that though.
Title: Re: SMF Quiz
Post by: Kindred on March 05, 2012, 04:17:51 PM
mine seems to work correctly in IE9 and FF10
http://www.40konline.com/index.php?action=SMFQuiz;sa=home
Title: Re: SMF Quiz
Post by: GlitchPC on March 05, 2012, 04:30:07 PM
I'm using the latest version of Chrome...
Title: Re: SMF Quiz
Post by: Kindred on March 05, 2012, 04:32:37 PM
well, that's your problem, right there... :P
Title: Re: SMF Quiz
Post by: Ozzie on March 05, 2012, 04:34:49 PM
well, that's your problem, right there... :P


you beat me too it kindred chrome knackers up a lot of stuff on my site to appearance wise i have got most of my members using ff now and no complaints at all
Title: Re: SMF Quiz
Post by: GlitchPC on March 05, 2012, 04:45:53 PM
I run XP.  My 7 PC is down in Virginia.  I have to settle with what I have...for now, anyway.

IE8 and Chrome (latest versions for this PC) have issues.  IE8 loads page but, with errors on page.  Safari sucks!  Well...their latest version does.

All other browsers...okay!
Title: Re: SMF Quiz
Post by: vindinacho on March 07, 2012, 12:52:27 PM
Hi
Apologies if this is in the wrong place, but I am very keen to know if there is a Quiz mod available for 2.02 yet, I see from this thread that there appears to be a lot of interest/development. I can only see an older possibly unsupported version in the approved mod list.

I am a new user to this forum with limited knowledge of SMF, but I do run an SMF forum be it very small at the moment.
Any answers gratefully received.

Thanks
Vin
Title: Re: SMF Quiz
Post by: davejo on March 07, 2012, 01:17:13 PM
Hi
Apologies if this is in the wrong place, but I am very keen to know if there is a Quiz mod available for 2.02 yet, I see from this thread that there appears to be a lot of interest/development. I can only see an older possibly unsupported version in the approved mod list.

I am a new user to this forum with limited knowledge of SMF, but I do run an SMF forum be it very small at the moment.
Any answers gratefully received.

Thanks
Vin

Go here http://www.simplemachines.org/community/index.php?topic=293949.360

3rd post from the bottom and there's an attachment. That is a working version of the quiz and will install in SMF 2.0.2. Your only issue then is to install the quizzes themselves if you go further up on the same page you will see that I have given a walkthrough and a link to installing the quizzes via changes to the quiz database tables.

I should add that if you don't know what your doing then get someone who does, as making changes to the database can seriously harm your website should you mess it up.

Always make backups of your files and database before making any changes.
Title: Re: SMF Quiz
Post by: vindinacho on March 07, 2012, 01:35:15 PM
Wow ok that sounds great news.
I will probably try and install on a test forum first as I probably don't know what I am doing but willing to learn :-)

Much appreciated, and will certainly keep an eye on this thread.

Thanks
Title: Re: SMF Quiz
Post by: Kindred on March 07, 2012, 01:50:36 PM
I will say it again.... there is no need to use that attachment since the Quiz Mod that is available as the confirmed package on the mod site works just fine on 2.0.2 (yes, you have to set your forum to use emulation, but in 2.0.x, that is a simple button click.

I have no idea what database changes or code changes davejo has done -- since he has yet to answer my question (posed twice already) but it is not needed.
Title: Re: SMF Quiz
Post by: FrizzleFried on March 07, 2012, 01:53:17 PM
Does someone have a working link to the categories mod mentioned in the OP (with a bad link)?

Thanks!
Title: Re: SMF Quiz
Post by: vindinacho on March 07, 2012, 01:57:03 PM
Hi again,

I am getting slightly confused, should I use the quiz on the mod site instead ?
And set my forum to emulation, (whatever that means, but I can find out)
Does it come with the quizzes ?

Sorry to sound so green but I am :-)

Thanks
Vin
Title: Re: SMF Quiz
Post by: Kindred on March 07, 2012, 02:18:01 PM
vindinacho,
no, I  don't believe that the mod comes with any quizzes, and the site which supplied the quizzes is gone... but you can make your own through the system.

As for emulation:   in the package manager, scroll down to the bottom of the packages list and click on the link labeled "Advanced". Change 2.0.2 to read 2.0 RC4 and then save. Now the "install" link should not appear for the quiz mod.
When you're done, go back to the advanced link and click the "revert" button and then save.
http://wiki.simplemachines.org/smf/Package_manager#Browse_Packages_2

FrizzleFried,
What categories mod?
This is for the SMF QUIZ mod
Title: Re: SMF Quiz
Post by: FrizzleFried on March 07, 2012, 02:27:09 PM
vindinacho,
no, I  don't believe that the mod comes with any quizzes, and the site which supplied the quizzes is gone... but you can make your own through the system.

As for emulation:   in the package manager, scroll down to the bottom of the packages list and click on the link labeled "Advanced". Change 2.0.2 to read 2.0 RC4 and then save. Now the "install" link should not appear for the quiz mod.
When you're done, go back to the advanced link and click the "revert" button and then save.
http://wiki.simplemachines.org/smf/Package_manager#Browse_Packages_2

FrizzleFried,
What categories mod?
This is for the SMF QUIZ mod

I meant the QUIZES themselves...  does anyone have any copies of what was available before the site went down?
Title: Re: SMF Quiz
Post by: vindinacho on March 07, 2012, 02:36:17 PM
Hi Kindred,

Thank you for the kind info, I am maybe missing out some basics but just to clarify, changed emulation as per your post.

Then ? I browsed for quiz mod within Download Packages and found it, but no download option available next to file name.
I then tried to download by URl, still no joy, but may well be doing that wrong.

So struggling a little to get the mod down at all ?
Any suggestions to what I'm doing wrong here
Thanks
Vin

Title: Re: SMF Quiz
Post by: vindinacho on March 07, 2012, 02:40:35 PM
Ok downloaded it now !

Just checking this version ?

   SMFQuiz_1.0.8_b4.zip

Thanks
Title: Re: SMF Quiz
Post by: Kindred on March 07, 2012, 02:51:01 PM
yup!
Title: Re: SMF Quiz
Post by: vindinacho on March 07, 2012, 03:22:29 PM
Ok please put me out of my misery, what simple mistake am I making
I have done this so many times now.

1 - Changed emulation to SMF 2.0 RC4
2 - Downloaded package
3 - See "Instal mod" and press it
4 - Error - The package you are trying to download or install is either corrupt or not compatible with this version of SMF.
5 - Checked Emulation and still set to SMF 2.0 RC4
6 - File used - SMFQuiz_1.0.8_b4.zip

Thanks
Title: Re: SMF Quiz
Post by: vindinacho on March 07, 2012, 03:28:02 PM
Panic over I did it ? somehow
Title: Re: SMF Quiz
Post by: davejo on March 07, 2012, 03:47:48 PM

I have no idea what database changes or code changes davejo has done -- since he has yet to answer my question (posed twice already) but it is not needed.

I'm sorry Kindred I thought you had read what I have done.

Ok here goes.

As you know there are no defualt quizzes with the mod, so what I have done is to extract the tables from my test site with 546 quizzes and I have attached them along with their images etc as a file. All those, willing to do so, have to do is install the quiz mod, then go into phpmyadmin and delete the current 12 tables that are created when the mod installs.

Once that is done then they open the sql file i have attached into Notepad++ and copy the text into a "Run SQL query/queries on database" window and run the query...this will then create the tables that hold the quizzes.

What should be noted is that some people are not using the default smf_ prefix on their tables so it means they will have to go through the sql file and manually remove the prefix.

And thats all there is too it.

If you want to removed the 'SMFQuiz' attachment I have in that post feel free to do so...the only reason I posted it is because someone was having problems installing the mod.. and that version I have posted will install without error on a clean install of SMF2.0.2

If you need to know anything else please ask
 

Title: Re: SMF Quiz
Post by: vindinacho on March 07, 2012, 04:03:33 PM
Hi all,
I managed to get the mod installed with your help and started using the quiz, tried to add a question and when I hit save I got the following error.

Wrong value type sent to the database. Integer expected. (id_quiz)

I found this same error in the first page of this thread, but as far as I can see there was no answer given, does anyone have a "simple answer" to allow me to go further ?

Thanks
Vin
Title: Re: SMF Quiz
Post by: FrizzleFried on March 07, 2012, 06:48:05 PM
What am I doing wrong?

I installed the mod package fine.

I followed the instructions to update my mySQL database... I deleted the old 12 entries,  used Notebook++ to paste them in... saved... they showed up.... in the admin I can see them... in the game i can see them... but when i go to play a game it opens the quiz window... I hit the play button and it continues to LOAD LOAD LOAD... never ending?  The little load bar moves but nothing happens.

My error logs read:

Quote
http://aha-forums.com/index.php?action=admin;area=quiz;a78f7f0=8d5c9b7222ca7d3213b94477f1aa89f5
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/ahaforum/public_html/Themes/default/SMFQuizAdmin.template.php (main sub template - eval?)
Line: 1740

and

Quote
http://aha-forums.com/index.php?action=admin;area=quiz;a78f7f0=8d5c9b7222ca7d3213b94477f1aa89f5
Apply Filter: Only show the errors with the same message
8: Trying to get property of non-object
Apply Filter: Only show the errors from this file
File: /home/ahaforum/public_html/Sources/SMFQuizAdmin.php
Line: 2408


EDIT #2:  Those errors appear to be related to the QUIZ ADMIN side not the continual loading issue... as the error log shows a much earlier time for the errors vs when I've attempted to play the quiz.

The quiz window still just... sits there... loading...

EDIT #3: I verified the 12 QUIZ files are in the mySQL database.   The questions are there... answers... what not... the proper graphics are where they are supposed to be... the quizzes all load up on the menu... graphics etc... I can choose a quiz... when I hit the PLAY triangle button it pops up the quiz window... which sits there...

No error is generated evidently.





Title: Re: SMF Quiz
Post by: davejo on March 08, 2012, 03:01:14 AM
Hi all,
I managed to get the mod installed with your help and started using the quiz, tried to add a question and when I hit save I got the following error.

Wrong value type sent to the database. Integer expected. (id_quiz)

I found this same error in the first page of this thread, but as far as I can see there was no answer given, does anyone have a "simple answer" to allow me to go further ?

Thanks
Vin

What am I doing wrong?

I installed the mod package fine.

I followed the instructions to update my mySQL database... I deleted the old 12 entries,  used Notebook++ to paste them in... saved... they showed up.... in the admin I can see them... in the game i can see them... but when i go to play a game it opens the quiz window... I hit the play button and it continues to LOAD LOAD LOAD... never ending?  The little load bar moves but nothing happens.

My error logs read:

Quote
http://aha-forums.com/index.php?action=admin;area=quiz;a78f7f0=8d5c9b7222ca7d3213b94477f1aa89f5
Apply Filter: Only show the errors with the same message
2: Invalid argument supplied for foreach()
Apply Filter: Only show the errors from this file
File: /home/ahaforum/public_html/Themes/default/SMFQuizAdmin.template.php (main sub template - eval?)
Line: 1740

and

Quote
http://aha-forums.com/index.php?action=admin;area=quiz;a78f7f0=8d5c9b7222ca7d3213b94477f1aa89f5
Apply Filter: Only show the errors with the same message
8: Trying to get property of non-object
Apply Filter: Only show the errors from this file
File: /home/ahaforum/public_html/Sources/SMFQuizAdmin.php
Line: 2408


EDIT #2:  Those errors appear to be related to the QUIZ ADMIN side not the continual loading issue... as the error log shows a much earlier time for the errors vs when I've attempted to play the quiz.

The quiz window still just... sits there... loading...

EDIT #3: I verified the 12 QUIZ files are in the mySQL database.   The questions are there... answers... what not... the proper graphics are where they are supposed to be... the quizzes all load up on the menu... graphics etc... I can choose a quiz... when I hit the PLAY triangle button it pops up the quiz window... which sits there...

No error is generated evidently.

Sorry but I cannot answer either of those questions as they are not errors I have personally seen.


Just for clarification...the database changes I have posted have worked on 3 different sites with different settings and names etc without errors.

I would suggest going back...removing everything to do with the quiz...including checking the files manually and starting again. Install the mod and try to create a quiz without making the changes to the database as I suggest and see if you then have the issues, save the whole database and then do database changes. If you have issues before the database changes then it must be in your templates somewhere.

Again I should point out that I'm not a coder and that everything I have done has worked for me and a few others. So I'm sorry I can't be of more help...I just help out wherever I can.
Title: Re: SMF Quiz
Post by: vindinacho on March 08, 2012, 03:13:55 AM
Hi Davejo,

I installed the mod from the modsite, not yours, the error shown is on this one.
But I am going to try yours on my test site as I have seen it on your site and quite impressed.
I will let you know how it goes.

Thanks
Vin
Title: Re: SMF Quiz
Post by: FrizzleFried on March 08, 2012, 03:23:50 AM
Can anyone suggest how I can capture what appears to be an error or something that pops on screen for a split second when I click the play button and the new window opens up ... it does it about 1/2 the time... I can see what appears to be an error but it then goes black... it's so fast I cant tell what's up.

Title: Re: SMF Quiz
Post by: FrizzleFried on March 08, 2012, 03:45:36 AM
I just un-installed and deleted the 12 MySQL entries...I then re-installed and made a test quiz.

Nope... it doesn't work.

:(

I got no errors when I install either.

:(

 
Title: Re: SMF Quiz
Post by: vindinacho on March 08, 2012, 04:08:55 AM
Hi Davejo,

I installed the quiz without problem after a quick learning curve on file types (rar, zio etc)
But it's there so thanks.

I tried downloading the quizzes but for some reason I cannot get them from the RS site ?
Is there any other way I can get them - email perhaps ?

Thanks
Vin
Title: Re: SMF Quiz
Post by: vindinacho on March 08, 2012, 04:16:17 AM
See attached

Thanks Vin
Title: Re: SMF Quiz
Post by: davejo on March 08, 2012, 04:31:04 AM
See attached

Thanks Vin

I have just tested the one I've posted and it works for me and I have just been to the host and it's definately there so I'm sending you the link via PM. If it still doesnt work I'll host it on my test site for download...but not till I get home this evening.
Title: Re: SMF Quiz
Post by: ethankcvds on March 08, 2012, 08:41:17 AM
See attached

Thanks Vin


If you're using services like rapidshare to download you have to download to your computer or else it is not going to do anything accept return an error.
Title: Re: SMF Quiz
Post by: vindinacho on March 08, 2012, 08:55:44 AM
Yep tried that, hit download to pc loads of times. I'm on Mac but guessing thats not the problem
Title: Re: SMF Quiz
Post by: FrizzleFried on March 08, 2012, 11:37:32 AM
Welp... I am not officially bummed out.   I ran a test install of SMF 2.0.2 and installed just quiz.  Of course it works.  I have a ******-ton of work in to my current installation so re-installing isn't going to happen.  I have to determine WHY it's not working on my current installation somehow.  Hard to do when you don't know WTF you're doing, eh?

:(

EDIT: Now I am even more bummed... I just directly the test site to my current database and... it worked. 

The problem is somewhere in the code/theme...


EDIT #2:  Well... that "error" message I thought might be isn't..  On the working test site it pops up for a split second too... followed by the quiz.

:(



Title: Re: SMF Quiz
Post by: FrizzleFried on March 08, 2012, 02:50:31 PM
Here is a possible round-about-way of getting this done... just want opinions from those in the know.

Could I set up QUIZ on my test forum... point it to my current forums database... then alter the link in my current forum to look for SMFQUIZ in the directory of the test forum?   Would that work?  If so,  any suggestions on how to alter the forwarding link?

Title: Re: SMF Quiz
Post by: vindinacho on March 08, 2012, 04:10:53 PM
Hi everyone,
Just want to say thanks for the great support on this forum, in two days I have managed to put the quiz site on my test forum all up and running.
So far it seems to be working ok.

I have just one question for Davejo, I imported all the quizzes thanks, it doesn't look like I can disable and enable individual quizes, by toggling the white/yellow lock, or actually even within the individual quiz setup. - They still work even after disabling.

Just wondered if you had come across this and found anyway around it. Effectively I just want to run one quiz, and then run another on another day and so on, but not have 500 for users to pick from if that makes sense.

Hope you or anyone can help.

Thanks
Vin
Title: Re: SMF Quiz
Post by: davejo on March 09, 2012, 03:09:00 AM
Hi Vin,

Glad you got it working OK...at least my directions did work for you.

As far as disabling quizzes, I managed to do it the following way:

Admin/Configuration/Quiz/Quizzes and then disable each quiz individually by clicking on the padlock under the 'Functions' column, there doesn't seem to be an option for mass disabling...I have just tested this on my test site and once the quiz is disabled and the padlock icon next to it goes gold then it's disabled and can't be seen on the forum quiz page.

See attachment below
Title: Re: SMF Quiz
Post by: vindinacho on March 09, 2012, 04:37:55 AM
Hi, thanks

Yes I did that, I tried again disabling all quizes except two.
The two I left enabled now only show up in "New Quizes" and "Popular Quizes" but unfortunately all the quizes show up still in "Random unplayed Quizes"

See the screenshot - It appears disabling does not restrict them from showing under the Random heading, do you know of any way to either remove the Random from the theme, or disabling - I don't really want the Random part there anyway ?

Thanks
Vin

Title: Re: SMF Quiz
Post by: davejo on March 09, 2012, 08:57:57 AM
See the screenshot - It appears disabling does not restrict them from showing under the Random heading, do you know of any way to either remove the Random from the theme, or disabling - I don't really want the Random part there anyway ?

Thanks
Vin

It'll probably be in one of the templates somewhere Vin,

I'll take a look and do some testing on my test site and if I get I get it removed without errors I'll let you know.
Title: Re: SMF Quiz
Post by: vindinacho on March 09, 2012, 09:06:13 AM
Ok I'm already doing the same now.

Thanks
Title: Re: SMF Quiz
Post by: davejo on March 09, 2012, 12:39:04 PM
Ok I have found the section of code in

/Themes/default/SMFQuiz.template.php.

I have removed the section of code that relates to the 'Random Unplayed Quizzes' and the 'Quiz Search', as if your only having one quiz there is nothing to search for, and all seems to be ok with no errors being reported whilst trying to play or administrate the quiz mod.

I have attached the modified template below, just rename the existing version in your default themes folder and upload the one below.

Hope that helps
Title: Re: SMF Quiz
Post by: netpaydays on March 10, 2012, 03:35:23 AM
I un-installed this fab mod when I upgraded to the new smf 20 rc2 from the rc1 version, will it work on 2.0 or would it be best to wait.
Title: Re: SMF Quiz
Post by: davejo on March 10, 2012, 03:43:15 AM
I un-installed this fab mod when I upgraded to the new smf 20 rc2 from the rc1 version, will it work on 2.0 or would it be best to wait.

If you go back a few pages you'll see your answer.
Title: Re: SMF Quiz
Post by: vindinacho on March 10, 2012, 04:16:19 AM
Does it work - Absolutely thanks to Davejo ....

Davejo
I stripped out some code and managed to lose Search and Random as well.
I will compare to yours though as mine was a bit of hit and miss.

Thanks again
Vin
Title: Re: SMF Quiz
Post by: davejo on March 10, 2012, 04:40:21 AM
Does it work - Absolutely thanks to Davejo ....

Davejo
I stripped out some code and managed to lose Search and Random as well.
I will compare to yours though as mine was a bit of hit and miss.

Thanks again
Vin

No problem glad I could help.
Title: Re: SMF Quiz
Post by: GlitchPC on March 10, 2012, 04:59:17 AM
Although I only have a couple of quizzes added to this mod...it will be expanded...as soon as my board starts to gain in popularity...(hint-hint)... ;)

In the interim...is there any way I can get rid of those annoying .gif "new" images?  Although it may be nice to know a new quiz has been added...it's not really imperative that a user be notified with those annoying "flashing" images...since, if they visit the quiz page, they'll see what quizzes have been added anyway.  Just sayin'...

Would love to lose those images if anyone can enlighten me...

Thanks, in advance...
Title: Re: SMF Quiz
Post by: XHIBIT911 on March 10, 2012, 09:58:30 AM
Ok after reading the first 7 of 23 pages I realized I dont have the entire day to go thru each and every post.

So I have some questions to speed this up.

1) Does this work or not work with v 2.0.2 ?
2) Ive seen so many error replies about it, has this been sorted out to where it ready to load and play ?
I dont want to have to hassle with adding snippets of coding and fiddling around in my MYSQL just to get this mod to work.

3)Can someone post a CURRENT link that I can check this out myself ?
and finally....

4) Can I download and install via package manager and start writing my own quizzes ?
I dont want to feel like I'm beta testing someone elses coding
Title: Re: SMF Quiz
Post by: Kindred on March 10, 2012, 11:11:38 AM
wow...    so we should cater to you because you don't feel like reading or using search?

sheesh.   All of your questions were actually answered in the last 2 pages of this thread.

in no particular order - I leave it to you to figure out which is the answer to which.
yes
yes
no issues
look at the download page or look at davejo's attachment
Title: Re: SMF Quiz
Post by: XHIBIT911 on March 10, 2012, 11:39:12 AM
Wow this place has really gone downhill from years back.
At NO POINT did I say anything about catering to ME or anyone else. and any person with common sense would realize that 23 pages of posts with the majority of them being problems or errors is time consuming to dig thru, and maybe everyone doesnt have the time to read each, individual post.

It was more a waste of time just trying to figure out if it was current and patched.
And FYI..I DID read several of the last few pages and still I saw conflicting error reports until I gave up and simply asked if this mod was ready for 2.0.2, which by the way DOES NOT show its been upgraded to 2.0.2 and is working on the mod link.

SHEEESH
Title: Re: SMF Quiz
Post by: davejo on March 10, 2012, 11:47:54 AM
Glitch,

I have managed to get rid of the 'New' gif for the 'New Quizzes' & 'Popular Quizzes' but I keep getting errors whenever I enter the 'Quiz Admin' section.

The error is:
Quote
http://www.*****************/index.php?action=admin;area=quiz;f47dcd943a=43ddbbd3db35e8e14dfea553e669b3f8
8: Trying to get property of non-object
 File: /home/********/public_html/Sources/SMFQuizAdmin.php
 Line: 2398

I do not get any errors at all when using the quiz or when going to any other area of the quiz headings i.e " Home, Categories, Quiz Leagues, Statistics, User Details, User Quizes"

I have attached the template to this post but as I say it will show errors in the error log..even though it works. It's up to you if you want to use it.



Title: Re: SMF Quiz
Post by: XHIBIT911 on March 10, 2012, 11:57:39 AM
Exactly !

Fatal error: Cannot redeclare parseleaguemessage() (previously declared in /home/loadedpa/public_html/PSHomeSource.com/home/Sources/ScheduledTasks.php:733) in /home/loadedpa/public_html/PSHomeSource.com/home/Sources/SMFQuizAdmin.php on line 348

And this was my entire point in asking only to have some moderator try to belittle my genuine question.
Furthermore the support links that the installed mod have listed no longer exist.
SMH..Yeah I guess my question HAS been answered after all
Title: Re: SMF Quiz
Post by: GlitchPC on March 10, 2012, 12:15:40 PM
Glitch,

I have managed to get rid of the 'New' gif for the 'New Quizzes' & 'Popular Quizzes' but I keep getting errors whenever I enter the 'Quiz Admin' section.

The error is:
Quote
http://www.*****************/index.php?action=admin;area=quiz;f47dcd943a=43ddbbd3db35e8e14dfea553e669b3f8
8: Trying to get property of non-object
 File: /home/********/public_html/Sources/SMFQuizAdmin.php
 Line: 2398

I do not get any errors at all when using the quiz or when going to any other area of the quiz headings i.e " Home, Categories, Quiz Leagues, Statistics, User Details, User Quizes"

I have attached the template to this post but as I say it will show errors in the error log..even though it works. It's up to you if you want to use it.





Thanks for taking the time to look into that for me, davejo...

If it's going to return more errors than I have already...I don't think so.  I just thought it'd be an easy fix.  Goes to show how much I know about coding, huh?  Anyway...I really do appreciate you taking he time to give it a shot for me.


All my best!
Title: Re: SMF Quiz
Post by: GlitchPC on March 10, 2012, 12:22:03 PM
wow...    so we should cater to you because you don't feel like reading or using search?

sheesh.   All of your questions were actually answered in the last 2 pages of this thread.

in no particular order - I leave it to you to figure out which is the answer to which.
yes
yes
no issues
look at the download page or look at davejo's attachment


Actually...I kind of like this answer.

I sometimes have to look through more than 100+ pages before I can find an answer to my question.  Sometimes someone will have pity on me...and because they have nothing to do...will volunteer their help.  I also try to use the Search box at the top of the site.  Most of the time...the answers I seek are silly mistakes I have made...and/or mod conflicts.  If you show initiative when it comes to finding the answer yourself...the god's will shine upon you.  If not...at least make an effort.  We're talking 23 pages here...and you don't have to read them verbatim...you can skim them to find the answer you need...

Just sayin'...  It's your choice...you can use the mod or not.  If not...move on...
Title: Re: SMF Quiz
Post by: vindinacho on March 10, 2012, 12:37:53 PM
Hi all you super support guys,

Just wanted to repeat what great support you have given me over the past few days, getting everything slick and running on the Quiz.
It runs like a dream on 2.0.2 and all my members love it.

For someone who knew nothing about Coding, Forums, Quiz Mod or even file types this thread and you guys answered everything I needed, and with a little "hard work" and "perseverance" from my end I got there - Thanks again

I have one question - a few of my members cannot get the quiz to run (I think they mean the quiz screen to popup, has anyone came across this problem and know the fix for it ? Could it be popups ? or anything to do with Java, I know one of them is using Explorer but thats all I know.

Any help greatly appreciated as per normal

Vin
Title: Re: SMF Quiz
Post by: Kindred on March 10, 2012, 04:50:22 PM
Exactly !

Fatal error: Cannot redeclare parseleaguemessage() (previously declared in /home/loadedpa/public_html/PSHomeSource.com/home/Sources/ScheduledTasks.php:733) in /home/loadedpa/public_html/PSHomeSource.com/home/Sources/SMFQuizAdmin.php on line 348

And this was my entire point in asking only to have some moderator try to belittle my genuine question.
Furthermore the support links that the installed mod have listed no longer exist.
SMH..Yeah I guess my question HAS been answered after all

Well, that error is not because of the mod itself... That error is because YOU double installed the mod.
The mod installed with no errors in 2.0.2, although you have to emulate a previous version to do it. As was said 1 page of posts ago.
Davejo has created an separate version with he made some tweaks in...   Also stated 2 and 1 page ago.

And I did not belittle your question, I merely snarked at your attitude of "there's a lot of posts, so I'll ask the question instead of looking for the answer"
Title: Re: SMF Quiz
Post by: XHIBIT911 on March 11, 2012, 04:48:30 AM
My point is that the last few years many of the mods feel so obligated to downtalk and assume that people have the time to go thru post after post after post, or they havent spent up to half an hour searching on their own.

You catch more flies with honey than vinegar and while there are many fantastic mods here now, there are some that are plain arrogant and nasty.

Its 50/50 and depends on whom replies...my other questions today were answered timely and politely and without assumptions. And for that professionalism I took time out and thanked the mods that displayed excellent support skills.

Regardless of what anyone thinks the truth of the matter is it would have been much easier to try checking into these pages, answering the question, or not answering at all. But as oppossed to trying to scold a grown man simply because he didnt have the time (after spending 45 minutes in the same thread and searching on his own) to find error after error report, then something is wrong with the machine and not the people who come here for support.

I dont see why its so hard to realize after reading a tidal wave of thread posts how some bits of info can become a blur.
But for the most part if you misread the demeanor of my original post, then I apologize for that.
My point was not everyone has tape on the bridge of their glasses and a pocket protector with 47 ink pens in it wearing an extra extra medium plaid shirt and can sit and scour every single post ALLLL DAY.
But it shouldnt be assumed that the search feature wasnt used either.

Thanks for your reply

In any event I'm done with the entire topic.
Title: Re: SMF Quiz
Post by: davejo on March 11, 2012, 05:20:08 AM
Hi all you super support guys,

Just wanted to repeat what great support you have given me over the past few days, getting everything slick and running on the Quiz.
It runs like a dream on 2.0.2 and all my members love it.

For someone who knew nothing about Coding, Forums, Quiz Mod or even file types this thread and you guys answered everything I needed, and with a little "hard work" and "perseverance" from my end I got there - Thanks again

I have one question - a few of my members cannot get the quiz to run (I think they mean the quiz screen to popup, has anyone came across this problem and know the fix for it ? Could it be popups ? or anything to do with Java, I know one of them is using Explorer but thats all I know.

Any help greatly appreciated as per normal

Vin


I think the first question to ask yourself Vin is; Is everyone having the same problem?...if the answer is no then it has to be a user orientated problem and nothing to do with the mod itself. Ask them to try using the 'Compatability Mode' in IE (that's if it's in their version)...or switching it off if it's on.

Also, as you say, get them to check the pop-up blocker...if they have the Google Toolbar then they probably have the popup blocker working twice, as it has one and so do most browsers.

Title: Re: SMF Quiz
Post by: vindinacho on March 11, 2012, 02:47:52 PM
Hi - They seem to have resolved it themselves  ::)

I do have another problem though, but I need to research this thread before crying wolf !

Thanks again
Title: Re: SMF Quiz
Post by: FrizzleFried on March 15, 2012, 09:53:20 AM
I keep getting this error...

http://www.xxxxxxxxxx.com/index.php?action=SMFQuiz;sa=categories;id_quiz=483
8: Undefined index:
File: /home/ahaforum/public_html/testingsite/Sources/Subs.php
Line: 3949

Any ideas?

Title: Re: SMF Quiz
Post by: Kindred on March 15, 2012, 10:13:12 AM
ummm.... undefined index WHAT?

What is line 3949 of your subs.php?
Title: Re: SMF Quiz
Post by: FrizzleFried on March 15, 2012, 11:48:27 AM
It's the LOGOUT button that I removed... i simply changed it to a blank space... putting LOGOUT back in now produces the same error but with LOGOUT included...

8:undefined index: logout

Title: Re: SMF Quiz
Post by: Kindred on March 15, 2012, 12:42:41 PM
well, that is hardly the fault of this mod...   that problem is because you changed something basic to the core SMF. I'm surprised that you only get the error in the quiz...  it should be appearing with every page load.
Title: Re: SMF Quiz
Post by: FrizzleFried on March 15, 2012, 12:52:35 PM
...all I did was install Quiz to a stock SMF 2.0.2... ?  Not sure whats up.  Everything appears to be working OK BTW.

Title: Re: SMF Quiz
Post by: Kindred on March 15, 2012, 08:13:29 PM
well, you said that you had changed the logout array....  this mod doesn't change that
Title: Re: SMF Quiz
Post by: FrizzleFried on March 16, 2012, 11:43:58 AM
Any suggestions on what to do / where to look to rectify the problem regardless of whether the mod caused the problem or not... by chance?
Title: Re: SMF Quiz
Post by: GlitchPC on March 21, 2012, 10:03:02 PM
Just noticed today...

I got an error today with the Quiz after viewing the Statistics but, the error referred to a template from a different mod.  So, I removed the error from the Admin log...disabled template evaluations and viewed Statistics, again.

I received the following error:

http://glitchpc.net/index.php?action=SMFQuiz;sa=statistics
2: Division by zeroFile: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Themes/default/SMFQuiz.template.php
Line: 1129


Any help with this error?

Thanks, in advance...
Title: Re: SMF Quiz
Post by: Kindred on March 21, 2012, 11:16:13 PM
What is that line of code?
Title: Re: SMF Quiz
Post by: GlitchPC on March 22, 2012, 08:35:00 AM
Kindred,

Here's the line of code you requested:

Code: [Select]
$percentage = ($hardestQuizesRow['percentage_incorrect'] / $max) * 100;
Title: Re: SMF Quiz
Post by: davejo on March 22, 2012, 09:10:51 AM
Just noticed today...

I got an error today with the Quiz after viewing the Statistics but, the error referred to a template from a different mod.  So, I removed the error from the Admin log...disabled template evaluations and viewed Statistics, again.

I received the following error:

http://glitchpc.net/index.php?action=SMFQuiz;sa=statistics
2: Division by zeroFile: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Themes/default/SMFQuiz.template.php
Line: 1129


Any help with this error?

Thanks, in advance...

I can't replicate that no matter what I do I get no errors at all.

So a suggestion.

1. Try un-installing the mod that the error referred to in the first place and see if it still happens when you access the stats. If it doesn't then the fault may be with the other mod.

2. The other thing is that the code is calling for the stats to be shown realting to the 'easiestQuizesRow'. Do you have Quizzes installed? They don't have to have been played. If yes then revert back to 1.
Title: Re: SMF Quiz
Post by: GlitchPC on March 22, 2012, 09:17:39 AM
davejo,

I have a total of 6 quizzes added.  I had, recently, made some file replacements...as you had suggested in a PM...remember?

Afterwards...I cleared the stats because I changed the time it should take to answer a question...and reset all the stats so that all who took the quizzes could take them, again, under the new settings.

So far...only one quiz has been taken...under the new time settings.  This person did not miss a question.  So, if the 'percentage_incorrect' is "0"...then, there will be an issue based on the code Kindred requested, correct?


Edit...

Now that someone else has taken the quiz...and when I click "Statistics"...that error no longer appears.
Title: Re: SMF Quiz
Post by: davejo on March 22, 2012, 10:06:24 AM
davejo,

I have a total of 6 quizzes added.  I had, recently, made some file replacements...as you had suggested in a PM...remember?

Afterwards...I cleared the stats because I changed the time it should take to answer a question...and reset all the stats so that all who took the quizzes could take them, again, under the new settings.

So far...only one quiz has been taken...under the new time settings.  This person did not miss a question.  So, if the 'percentage_incorrect' is "0"...then, there will be an issue based on the code Kindred requested, correct?


Edit...

Now that someone else has taken the quiz...and when I click "Statistics"...that error no longer appears.

very strange...I had all the quizzes installed on the test site but no one has played a quiz and there was no error.

Maybe it had something to do with the changes to the times...and that the cache had not fully cleared.

So I guess that the problem has now gone away?
Title: Re: SMF Quiz
Post by: Ozzie on March 22, 2012, 10:43:32 AM
or maybe its the division by zero error that only occurs when it is trying to insert a integer into a data file and there is nothing to input as there was no quizzes played ( or so i read whilst looking up the error) there is sommat you can add to the line of code like if no data dont print error or sommat like that i aint no coder so dont know.......
Title: Re: SMF Quiz
Post by: GlitchPC on March 22, 2012, 11:02:17 AM
davejo,

Yes...the error no longer appears.  I believe Ozzie may be onto something...
Title: Re: SMF Quiz
Post by: eric1234 on March 23, 2012, 06:44:56 AM
Argh, sorry i thought that thread was a support thread >.<

Is this talking to me >.<

Easiest way to solve it should be to open SMFQuizAdmin.php, then look for:
Code: [Select]
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league)
{
global $user_settings, $scripturl;

// @TODO single replace
$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}

and replace it with:
Code: [Select]
if (!function_exists('ParseLeagueMessage'))
{
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league)
{
global $user_settings, $scripturl;

// @TODO single replace
$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}
}

BTW, is probably better if you use the support topic (http://www.simplemachines.org/community/index.php?topic=293949.0) for that kind of questions. ;)
Title: Re: SMF Quiz
Post by: Kindred on March 23, 2012, 07:57:32 AM
if yuo are getting that error message (duplicate function) then either
a) you installed the quiz mod twice
or
b) you have another mod which created an identically named function.

In the case of a), you will have to manually remove the duplicate code
in the case of b), there are much larger issues... you would have to rename one of the functions and every reference to it for the mod.
Title: Re: SMF Quiz
Post by: GlitchPC on March 24, 2012, 10:39:58 PM
It's me, again, Margaret... :laugh:

Can anyone take a look at the attached image and please tell me what template...and where in that template I can find the code to edit the color/style/class for those column headers?  I really would appreciate it.

Thanks, in advance...
Title: Re: SMF Quiz
Post by: GlitchPC on March 26, 2012, 04:55:00 PM
Politely bumping...
Title: Re: SMF Quiz
Post by: davejo on March 27, 2012, 02:47:29 AM
It's me, again, Margaret... :laugh:

Can anyone take a look at the attached image and please tell me what template...and where in that template I can find the code to edit the color/style/class for those column headers?  I really would appreciate it.

Thanks, in advance...

I had a brief look and I could not find the edits for that...but I always thought it was got from the CSS for the mod itself...hopefully someone will answer as I would like to know also.
Title: Re: SMF Quiz
Post by: FrizzleFried on March 28, 2012, 01:00:49 PM
Well... I am still having the same problem.  Quiz installs without error.  Everything appears as it is supposed to.  Unfortunately when I go to play the quiz,  the quiz window pops up... then nothing.   

I HAVE installed this on a clean version of SMF and it worked fine.   There IS some sort of conflict going on with my DEFAULT,  but highly modified theme.... but if it's not throwing out an error I have NO idea how to go about fixing the problem.

ANY suggestions would be greatly appreciated.

SMF 2.0.2
DEFAULT theme (with many modifications)

Thanks!

Title: Re: SMF Quiz
Post by: Shades. on March 28, 2012, 09:02:17 PM
I'd really like to try this mod.
Does anyone have the quiz packs?

Want to see if i can get it working.


First thing you need to do is install the quiz even though you dont have any images or questions.

Then download the tables and images I have uploaded (13Mb) here  (http://www.rapidshare.com/files/511666311/Quiz_data___images.rar)

Once you have done that then go to your cPanel for your site, run 'phpMyadmin' and delete the 12 tables that start with the name smf_quiz.

Once you have done that, open the file 'create database tables for quiz.sql' in 'Notepad++' if you don't have it installed get it...it's free, and this will not add any formatting to the text either which is very important.

The copy the text, (CTRL+A).

Go to your database and click on 'SQL' at the top of the page and paste (CTRL+V)the text from the database file into the box. Once you have done that click on go....wait for a while until the text disappears then click on you database name to see if the tables have been installed. If yes then close 'cPanel'.

Now go to the location where your SMF site is installed go to
Quote
/public_html/Themes/default/images/quiz_images
using the folders provided by me overite the existing 2 folders 'Questions' & Quizes'

Once you have done that go to you site and clear out the cache and your quiz should be safe to run.

I have tested this method on my test site and it worked twice so there should be no reason that I can think of that it wont work on yours.

As I'm not sure if the link I have provided for the files is allowed PM me if the staff delete it and I'll send the link that way.

Worked like a charm! Thanks! ;)

Only problem I'm having is the search feature...searching for certain quizzes, even though they're there, the search feature produces a page with nothing found. Is there any fix for that or did I miss it somewhere. I've read this support thread back to page 19 but I might have overlooked it!??
Title: Re: SMF Quiz
Post by: davejo on March 29, 2012, 03:00:15 AM
Worked like a charm! Thanks! ;)

Only problem I'm having is the search feature...searching for certain quizzes, even though they're there, the search feature produces a page with nothing found. Is there any fix for that or did I miss it somewhere. I've read this support thread back to page 19 but I might have overlooked it!??

Glad it's working for you OK.

I have tried this on all three forums I have set up and it works on all of them, including my test sites one of which is a fresh install of SMF 2.0.2...see screen shot.

What should happen is when you type into the search box it should populate an area below it, as seen in the image, of all the possible matches to your entry. Then all you do is click on one of them and the quiz should open ready to play.

If thats not happeneing it's possible you need to run the 'Database' maintenance 'Optimize all tables' and maybe go through and clear the site cache etc too.

If that doesn't work then I have no idea why it wont. 
Title: Re: SMF Quiz
Post by: davejo on March 29, 2012, 03:00:15 AM
Worked like a charm! Thanks! ;)

Only problem I'm having is the search feature...searching for certain quizzes, even though they're there, the search feature produces a page with nothing found. Is there any fix for that or did I miss it somewhere. I've read this support thread back to page 19 but I might have overlooked it!??

Glad it's working for you OK.

I have tried this on all three forums I have set up and it works on all of them, including my test sites one of which is a fresh install of SMF 2.0.2...see screen shot.

What should happen is when you type into the search box it should populate an area below it, as seen in the image, of all the possible matches to your entry. Then all you do is click on one of them and the quiz should open ready to play.

If thats not happeneing it's possible you need to run the 'Database' maintenance 'Optimize all tables' and maybe go through and clear the site cache etc too.

If that doesn't work then I have no idea why it wont. 
Title: Re: SMF Quiz
Post by: GlitchPC on March 29, 2012, 01:05:22 PM
Question...

Anyone know the correct code to fix this issue?  (See attached image)

It appears the left title bar is chopped...while the right is rounded.  I'd like the left to appear rounded, as well.

Remember...I am NOT a coder.  Take my hand, gently, please...
Title: Re: SMF Quiz
Post by: TheListener on March 29, 2012, 01:20:53 PM
Question...

Anyone know the correct code to fix this issue?  (See attached image)

It appears the left title bar is chopped...while the right is rounded.  I'd like the left to appear rounded, as well.

Remember...I am NOT a coder.  Take my hand, gently, please...

Do you use Simple Portal? I see you do.

Try adding portal.css to your theme.
Title: Re: SMF Quiz
Post by: davejo on March 29, 2012, 01:21:12 PM
Question...

Anyone know the correct code to fix this issue?  (See attached image)

It appears the left title bar is chopped...while the right is rounded.  I'd like the left to appear rounded, as well.

Remember...I am NOT a coder.  Take my hand, gently, please...

Can you check and see if the 'quiz_css' folder is in the themes css directory!! It needs to be in each themes css directory not just the default one.

If it's not then transfer the whole folder in to the css directory.

If that doesn't work then I don't know, sorry Glitch
Title: Re: SMF Quiz
Post by: TheListener on March 29, 2012, 02:10:02 PM
Has anyone seen this error before?

Apply Filter: Only show the error messages of this URL
xxxxxxxxxxxxxindex.php?action=admin;area=quiz;sa=adminCenter
Apply Filter: Only show the errors with the same message
8: Trying to get property of non-object
Apply Filter: Only show the errors from this file
File: /xxxxxxxxxx/public_html/Sources/SMFQuizAdmin.php
Line: 2408
Title: Re: SMF Quiz
Post by: GlitchPC on March 29, 2012, 02:12:56 PM
I'm using SimplePortal 2.3.5.  There's no need for the portal.css to be uploaded.  The issue appears the same in both themes...so uploading the quiz css folder didn't work, either.

I appreciate the effort, though...I know it's a coding issue...just don't know where...
Title: Re: SMF Quiz
Post by: Shades. on March 29, 2012, 05:34:43 PM
Worked like a charm! Thanks! ;)

Only problem I'm having is the search feature...searching for certain quizzes, even though they're there, the search feature produces a page with nothing found. Is there any fix for that or did I miss it somewhere. I've read this support thread back to page 19 but I might have overlooked it!??

Glad it's working for you OK.

I have tried this on all three forums I have set up and it works on all of them, including my test sites one of which is a fresh install of SMF 2.0.2...see screen shot.

What should happen is when you type into the search box it should populate an area below it, as seen in the image, of all the possible matches to your entry. Then all you do is click on one of them and the quiz should open ready to play.

If thats not happeneing it's possible you need to run the 'Database' maintenance 'Optimize all tables' and maybe go through and clear the site cache etc too.

If that doesn't work then I have no idea why it wont.

The search partially works for me. (See attachments below)

The first attachement show when I type "Countries" in the search field the results are shown under the field as I type it...that's works fine. But in the second attachment, it show what appears after hitting enter.

Oh and by the way, I wasn't getting the search result under the search box (see 1rst attachment) until I followed your suggestion for doing the database maintenance so thank you for that! But why don't the appear after pressing enter or search?
Title: Re: SMF Quiz
Post by: Ozzie on March 29, 2012, 05:54:42 PM
Quote
The first attachment show when I type "Countries" in the search field the results are shown under the field as I type it...that's works fine. But in the second attachment, it show what appears after hitting enter.


yer that is correct it as always been that way the search only works correctly on the quiz home page
Title: Re: SMF Quiz
Post by: emanuele on March 29, 2012, 06:26:08 PM
Question...

Anyone know the correct code to fix this issue?  (See attached image)

It appears the left title bar is chopped...while the right is rounded.  I'd like the left to appear rounded, as well.

Remember...I am NOT a coder.  Take my hand, gently, please...

The generic idea is that each "h3" title should be surrounded by a <div class="title_bar"></div>...

For example in SMFQuiz.template.php, search for:
Code: [Select]
<h3 class="titlebg" style="min-height:30px; padding:0">
<span class="left"></span>
' , $txt['SMFQuiz_Common']['QuizHome'] , '
</h3>
it should be replaced by:
Code: [Select]
<div class="title_bar">
<h3 class="titlebg" style="min-height:30px; padding:0">
<span class="left"></span>
' , $txt['SMFQuiz_Common']['QuizHome'] , '
</h3>
</div>

Problem is that there are 8 to fix only in the main page...

Well, while I'm at it I can say I asked (few weeks ago) the permission to the original author to continue his work, he agreed and now I'm working on the mod.
First a big thank you to davejo for the copy he provided!! And for his support, I hope he will continue! :D

I started from his work to remove the errors, then I fixed (and I'm still fixing) few issues I knew, and few other I found (plus those that you found like the one reported by GlitchPC, of course if there are others feel free to bump them, I went very quickly through the topic...).
I'm now working on an import function (for a start from local files) for new quizzes. As soon as this will be read I'll update the mod on the mod site!
Title: Re: SMF Quiz
Post by: Shades. on March 29, 2012, 08:14:42 PM
Quote
The first attachment show when I type "Countries" in the search field the results are shown under the field as I type it...that's works fine. But in the second attachment, it show what appears after hitting enter.


yer that is correct it as always been that way the search only works correctly on the quiz home page
Ok, I understand that but how do we fix the actual results page? Shouldn't the result page display some search results instead of nothing after pressing enter or search? ???
Title: Re: SMF Quiz
Post by: Ozzie on March 29, 2012, 08:18:23 PM
thats never worked either you just click on 1 from the list below the search box  if you click enter you get what you got (nothing)....dont know why but it as never worked and i have used it for years now and it as always been the same.....sorry i cannot give you better news  :laugh:
Title: Re: SMF Quiz
Post by: Shades. on March 29, 2012, 08:26:26 PM
Ok thanks! Maybe someone can fix that later on! I appreciate the help! :)
Title: Re: SMF Quiz
Post by: davejo on March 30, 2012, 03:06:35 AM

Well, while I'm at it I can say I asked (few weeks ago) the permission to the original author to continue his work, he agreed and now I'm working on the mod.

I'm glad you told everyone as it was getting increasingly difficult for me to keep the secret ;)

With the errors that were being raised I just wanted to say to everyone...live with what you've got till Emanuele has fixed it.

Anyway folks as Emanuele has said he is working on the mod to update and improve things. He is also going to work on a similar function to the original quiz mod that you could share quizzes made by others.

So hopefully in the not too distant future this mod will rise again from the ashes and be as good if not better than the original.
Title: Re: SMF Quiz
Post by: FrizzleFried on March 30, 2012, 10:53:06 AM
This is,  indeed,  good news.  I'm quite frustrated as it stands... I have no idea why it would work in a stock installation but not in my custom installation... even though no errors are reported.

:(
Title: Re: SMF Quiz
Post by: emanuele on March 30, 2012, 12:42:13 PM
FrizzleFried what exactly is not working for you?

I found this post:
I keep getting this error...

http://www.xxxxxxxxxx.com/index.php?action=SMFQuiz;sa=categories;id_quiz=483
8: Undefined index:
File: /home/ahaforum/public_html/testingsite/Sources/Subs.php
Line: 3949
And the following where you explained you removed the logout button and getting an "undefined index" error.
Are you getting it only in the quiz page?
Title: Re: SMF Quiz
Post by: FrizzleFried on March 30, 2012, 02:43:26 PM
Long story... please ignore the LOGOUT unidentified index questions of past.  Basically,  I couldn't get it going on my modified theme... it would install correctly... no errors at all.  I could see the quizzes... but when I select a quiz... it would open the quiz window and... do nothing.

SO... i set up a test site and installed it on a bare version of 2.0.2.  It installed correctly and it WORKED.  So I figured  what the hell and bridged my forum to the test forum to run only the quiz.  THAT is where I was having the problems... basically all the mods I did to my main site weren't on the other site so when people did things OTHER than the quiz on the other site the errors flew... so I attempted to remove EVERYTHING other than the quiz from the other site... so the users couldn't click to go anywhere other than the quiz and HOME (which took you back to the main site).

Lets say I gave up.   I am back to only my main site and quiz installed... but it's doing the very same thing it did originally.  It works as intended other than when you click to play a quiz,  the quiz window opens and ... nothing.

But at least I don't have 2,500 errors per day filling up my logs.

:)

I'd love to get them going again as they were pretty popular here in the 3 weeks I had them going (albeit jury-rigged).

Title: Re: SMF Quiz
Post by: emanuele on March 30, 2012, 02:50:04 PM
So it seems a problem with a custom theme. And that's already something.

Did you modify Curve or did you use another theme?
Or did you create a new theme based on curve, or which other variation did you use? :)

In the meantime I'll test with non-default themes to see if there are problems.
Title: Re: SMF Quiz
Post by: FrizzleFried on March 30, 2012, 05:14:37 PM
So it seems a problem with a custom theme. And that's already something.

Did you modify Curve or did you use another theme?
Or did you create a new theme based on curve, or which other variation did you use? :)

In the meantime I'll test with non-default themes to see if there are problems.

It's the default curve theme... with a BUNCH of mods added...
Title: Re: SMF Quiz
Post by: emanuele on March 30, 2012, 05:36:02 PM
Then can you send me the data of an account? (don't need (and don't want) admin, just a user that can play a quiz)
Title: Re: SMF Quiz
Post by: FrizzleFried on March 30, 2012, 09:38:04 PM
As I reported to Emanuele directly... it seems I managed to 'fix" the Quiz SOMEHOW.  When I took it off line it was NOT working.  That was last week.  Since then I have added a couple mods and fixed a couple bugs... I also added the newer Hooks program.  Not sure what did it... but QUIZ works.

MOSTLY it seems.

I am getting these errors in my log:

Code: [Select]
Apply Filter: Only show the error messages of this URL
http://www.aha-forums.com/index.php?action=admin;area=quiz;b502cea71=0e200771b21ac0c4acdee824fdcee597
2: Invalid argument supplied for foreach()
File: /home/ahaforum/public_html/Themes/default/SMFQuizAdmin.template.php
Line: 1740
 
http://www.aha-forums.com/index.php?action=admin;area=quiz;b502cea71=0e200771b21ac0c4acdee824fdcee597
8: Trying to get property of non-object
File: /home/ahaforum/public_html/Sources/SMFQuizAdmin.php
Line: 2411

http://www.aha-forums.com/index.php?action=admin;area=quiz;b502cea71=0e200771b21ac0c4acdee824fdcee597
8: Trying to get property of non-object
File: /home/ahaforum/public_html/Sources/SMFQuizAdmin.php
Line: 2408

Ideas?
Title: Re: SMF Quiz
Post by: FrizzleFried on March 30, 2012, 10:16:00 PM
The two TRYING TO GET PROPERTY OF NON-OBJECT errors have to do with failing to get version info and news info from the now-defunct quiz site it appears.

I just commented them out.

Code: [Select]
// Get and set the latest version information
$context['SMFQuiz_currentVersion'] = $adminCenterXml->smfQuiz->latestVersion;

// Get and set the latest news information
$context['SMFQuiz_latestNews'] = $adminCenterXml->smfQuiz->newsEntries->newsEntry;

And low and behold... the INVALID ARGUMENT SUPPLIED FOR FOREACH() is also "news" related...

Code: [Select]
foreach($context['SMFQuiz_latestNews'] as $latestNews) {
echo ' <tr>
<td style="font-weight: bold; font-size: 0.8em;">' , $latestNews->date , '</td>
</tr>
<tr>
<td style="font-weight: bold; font-size: 0.8em; color: green">' , $latestNews->title , '</td>
</tr>
<tr>
<td style="font-size: 0.8em;">' , $latestNews->description , '</td>
</tr>
<tr>
<td><hr size="1"></td>
</tr>

EDIT: Unfortunately commenting out the two as I mentioned above causes more problems with undefined indexes... >argh<

I will let the guy(s) who know what they are doing figure this one out.  I'll patiently sit over here on the sideline.

:)

Thanks!
Title: Re: SMF Quiz
Post by: davejo on March 31, 2012, 02:29:38 AM
The two TRYING TO GET PROPERTY OF NON-OBJECT errors have to do with failing to get version info and news info from the now-defunct quiz site it appears.


FrizzleFried

Did you use my edit of the quiz?

http://www.simplemachines.org/community/index.php?topic=293949.msg3286942#msg3286942

Because I deleted all code relating to the old news and SMFModding site and there are no errors.

I know Emanuale is rebuilding this but as you trying so hard to get it going try this for the time being....hopefully it will work for you.

Title: Re: SMF Quiz
Post by: FrizzleFried on March 31, 2012, 03:02:06 AM
You wouldn't happen to have your notes as to what you pulled?  I ask because it will require a manual uninstall if I wanted to uninstall and re-install your version.

The fact it's up and running is enough for me not to go that route.

:)

Thanks though!
Title: Re: SMF Quiz
Post by: emanuele on March 31, 2012, 06:14:15 AM
You can just decompress the package and re-upload the files SMFQuizAdmin.template.php and SMFQuizAdmin.php (respectively in Themes/default and Sources). ;)

ETA I went through the topic, but I didn't find any, so just to not assume anything: is there any translation available? (I know the mod didn't work very well in non-English forums (personal experience ;)), but I think it's better to ask, because if the answer is no, then I'll the language files too.
Title: Re: SMF Quiz
Post by: davejo on March 31, 2012, 08:31:26 AM
You wouldn't happen to have your notes as to what you pulled?  I ask because it will require a manual uninstall if I wanted to uninstall and re-install your version.

The fact it's up and running is enough for me not to go that route.

:)

Thanks though!

I search the template files for anything that said 'SMFModding' and removed the code that used it.

What you could do is download my version and download your current operating quiz templates and using 'Notepad++' you can compare them them just make the necessary edits by deleting the code that you have in yours thats not in mine...if you know what I mean.
Remember to rename the original version on the site first or download a copy for backup.
Title: Re: SMF Quiz
Post by: Kindred on March 31, 2012, 08:33:43 AM
or this: :)

You can just decompress the package and re-upload the files SMFQuizAdmin.template.php and SMFQuizAdmin.php (respectively in Themes/default and Sources). ;)
Title: Re: SMF Quiz
Post by: davejo on March 31, 2012, 11:23:14 AM
or this: :)

You can just decompress the package and re-upload the files SMFQuizAdmin.template.php and SMFQuizAdmin.php (respectively in Themes/default and Sources). ;)

Do you know I've only just got what that means now.

What they're saying, in normal speak ;) , is just take my individual templates and upload those to your site, instead of uninstalling the whole mod etc.

As I said before though remember to create copies of your originals...I normally just rename them .old instead of .php and then upload the edited template, if things do go wrong then just rename the old one as php and you're back to normal.


is that right Kindred/Emanuele? or have I got it wrong again  :-\
Title: Re: SMF Quiz
Post by: FrizzleFried on March 31, 2012, 11:44:11 AM
Not sure what to say... I replaced the two files as instructed and I am getting the same errors:


http://www.aha-forums.com/index.php?action=admin;area=quiz;b502cea71=0e200771b21ac0c4acdee824fdcee597
2: Invalid argument supplied for foreach()
File: /home/ahaforum/public_html/Themes/default/SMFQuizAdmin.template.php
Line: 1740


http://www.aha-forums.com/index.php?action=admin;area=quiz;b502cea71=0e200771b21ac0c4acdee824fdcee597
8: Trying to get property of non-object
File: /home/ahaforum/public_html/Sources/SMFQuizAdmin.php
Line: 2411

http://www.aha-forums.com/index.php?action=admin;area=quiz;b502cea71=0e200771b21ac0c4acdee824fdcee597
8: Trying to get property of non-object
File: /home/ahaforum/public_html/Sources/SMFQuizAdmin.php
Line: 2408

I've swapped back and forth between the two files and nothing changes.   Same error... same line numbers... and they ARE different files (different size and dates).

Title: Re: SMF Quiz
Post by: FrizzleFried on March 31, 2012, 03:54:09 PM
I've just discovered/noticed a tiny other bug... the right side of the screen all have rounded corners while the left are all squared corners... that includes the split windows, etc...

I am not sure if it's been that way forever (and I just noticed) or if it's a new issue?
Title: Re: SMF Quiz
Post by: GlitchPC on March 31, 2012, 04:50:53 PM
I've just discovered/noticed a tiny other bug... the right side of the screen all have rounded corners while the left are all squared corners... that includes the split windows, etc...

I am not sure if it's been that way forever (and I just noticed) or if it's a new issue?


Already reported...

just one page back.  See this post:  http://www.simplemachines.org/community/index.php?topic=293949.msg3302822#msg3302822
Title: Re: SMF Quiz
Post by: emanuele on March 31, 2012, 05:51:29 PM
Already reported...

just one page back.  See this post:  http://www.simplemachines.org/community/index.php?topic=293949.msg3302822#msg3302822
And fixed in the repo here on my pc! :)

Yesterday I think I finished the (manual) upload, it need a bit of testing and I would also like to prepare few packages of quizzes before providing a download. ;)
Title: Re: SMF Quiz
Post by: FrizzleFried on March 31, 2012, 07:46:51 PM
Yeah... I found the solution (THANK YOU) and went through and added the DIV comments required.... lookin' good.  I'm just down to those ADMIN errors now... but since I don't hit admin much anyway,  they're not a big deal at all.
Title: Re: SMF Quiz
Post by: GlitchPC on April 01, 2012, 04:30:21 AM
I made all the <div> tag edits, as well.  Looks much better but, I found another issue...

From the Quiz home page, there are a couple of links from the New Quizzes block and the Popular Quizzes block for a user to click...they are labeled as "View All".

When a user clicks these links...they are redirected to another page and these pages have a title bar as pictured below in the attachment I'm providing.

1.  How to remove that white line...
2.  The alphabetical listing doesn't look right with my modified theme due to the color of the title bar.  Any way to change the link font color without it being a global change to links?  I'm referring to the "A B C D E F...." links.

emanuele...

Thanks for keeping us all updated with the progress and supplying the edits for us.  Much appreciated...
Title: Re: SMF Quiz
Post by: emanuele on April 01, 2012, 06:00:16 AM
That's a bit bigger change because it's a table.
So, in SMFQuiz.template.php, search for:
Code: (find) [Select]
echo '
<table class="bordercolor" border="0" cellpadding="4" cellspacing="1" width="100%">
<tbody>
<tr class="titlebg">
<td colspan="3">
';

// Title to show depends on the quiz listing type we are showing
switch ($type) {
case 'unplayed':
echo $txt['SMFQuiz_Common']['UnplayedQuizes'];
break;
case 'all':
echo $txt['SMFQuiz_Common']['AllQuizes'];
break;
case 'new':
echo $txt['SMFQuiz_Home_Page']['NewQuizes'];
break;
case 'popular':
echo $txt['SMFQuiz_Home_Page']['PopularQuizes'];
break;
case 'easiest':
echo $txt['SMFQuiz_Common']['EasiestQuizes'];
break;
case 'hardest':
echo $txt['SMFQuiz_Common']['HardestQuizes'];
break;
}
echo '</td>
<td colspan="6" align="right">', $context['letter_links'] . '</td>
</tr>
<tr class="', empty($settings['use_tabs']) ? 'titlebg' : 'catbg3', '">
';
and replace it with
Code: (replace with) [Select]
echo '
<div class="cat_bar">
<h4 class="catbg">
<span class="floatleft">
';

// Title to show depends on the quiz listing type we are showing
switch ($type)
{
case 'unplayed':
echo $txt['SMFQuiz_Common']['UnplayedQuizes'];
break;
case 'all':
echo $txt['SMFQuiz_Common']['AllQuizes'];
break;
case 'new':
echo $txt['SMFQuiz_Home_Page']['NewQuizes'];
break;
case 'popular':
echo $txt['SMFQuiz_Home_Page']['PopularQuizes'];
break;
case 'easiest':
echo $txt['SMFQuiz_Common']['EasiestQuizes'];
break;
case 'hardest':
echo $txt['SMFQuiz_Common']['HardestQuizes'];
break;
}
echo '</span>
<span class="floatright">', $context['letter_links'] . '</span>
</h4>
</div>

<table class="bordercolor" border="0" cellpadding="4" cellspacing="1" width="100%">
<tbody>
<tr class="', empty($settings['use_tabs']) ? 'titlebg' : 'catbg3', '">
';
Title: Re: SMF Quiz
Post by: GlitchPC on April 01, 2012, 07:27:42 AM
Oh, yeah!  Much better!  You rock, my friend!  No "ifs, ands, or buts"!!!  Two thumbs up!
Title: Re: SMF Quiz
Post by: CircleDock on April 02, 2012, 10:14:27 PM
I have installed this mod on one of my sites running SMF 2.0.2. Everything works apart from the Quiz Client keeps being fed the HTML for the site's Home Page when a quiz is run. Because the error reporting is pretty basic in the client, I modified the JS file to display the text of what was being returned to it - and, as you'll see from the attached screenshot, it's all HTML and not the XML for the start of the quiz.

I've read every message in this thread and this very problem seems to have occurred in the past but unfortunately the mod's original author did not see fit to answer it here, he simply put a link to a message on his own Forum which no longer exists (and the Wayback Machine doesn't hold any of his site's message pages).

Anyone have any idea what is going wrong - and how I can fix it so that I can offer my users this otherwise excellent feature?

Title: Re: SMF Quiz
Post by: davejo on April 03, 2012, 03:15:56 AM
I have installed this mod on one of my sites running SMF 2.0.2. Everything works apart from the Quiz Client keeps being fed the HTML for the site's Home Page when a quiz is run. Because the error reporting is pretty basic in the client, I modified the JS file to display the text of what was being returned to it - and, as you'll see from the attached screenshot, it's all HTML and not the XML for the start of the quiz.

I've read every message in this thread and this very problem seems to have occurred in the past but unfortunately the mod's original author did not see fit to answer it here, he simply put a link to a message on his own Forum which no longer exists (and the Wayback Machine doesn't hold any of his site's message pages).

Anyone have any idea what is going wrong - and how I can fix it so that I can offer my users this otherwise excellent feature?

Hi CircleDock,

Unless someone else can give you a quick fix I suggest leave things as they are as the quiz is in the procees of being bought up to date. So if you can live with what you have for the moment an updated version will be available in the not to distant future with additional functions to the existing one.



Title: Re: SMF Quiz
Post by: CircleDock on April 03, 2012, 04:30:18 AM
Hi CircleDock,

Unless someone else can give you a quick fix I suggest leave things as they are as the quiz is in the procees of being bought up to date. So if you can live with what you have for the moment an updated version will be available in the not to distant future with additional functions to the existing one.

Hi Davejo,

Thanks for your reply!

As a result of some further testing and experimenting, I've found two or three things that may be pertinent:

Title: Re: SMF Quiz
Post by: emanuele on April 03, 2012, 05:39:15 AM
I have the feeling I fixed this in the version I'm preparing (unintentionally, let's say it's a side effect of another series of changes I did).

I could have a workaround, but it could break something on the portal side (I'm not sure because I don't know anything about that portal...well I don't know anything about any portal! :P)...if you want to know it I can PM you, otherwise in (hopefully) few days I'll post the version I'm working on and that should (hopefully :P) fix your problem as well.
Title: Re: SMF Quiz
Post by: Eclipse16V on April 03, 2012, 05:52:36 AM
Hi,
I become this error:

"You have already played this quiz league over the maximum amount of times allowed for this round
Please return when the next round starts."

It´s a new quiz and a new league.
No user can play this quiz.

How can i fix it?
Title: Re: SMF Quiz
Post by: CircleDock on April 03, 2012, 06:23:01 AM
I have the feeling I fixed this in the version I'm preparing (unintentionally, let's say it's a side effect of another series of changes I did).

I could have a workaround, but it could break something on the portal side (I'm not sure because I don't know anything about that portal...well I don't know anything about any portal! :P)...if you want to know it I can PM you, otherwise in (hopefully) few days I'll post the version I'm working on and that should (hopefully :P) fix your problem as well.

Yes please - do PM me with the fix! I am pulling what's left of my hair out trying to get this working.
Title: Re: SMF Quiz
Post by: davejo on April 03, 2012, 06:44:08 AM
Hi,
I become this error:

"You have already played this quiz league over the maximum amount of times allowed for this round
Please return when the next round starts."

It´s a new quiz and a new league.
No user can play this quiz.

How can i fix it?

I don't know if this will work but....

Try going into 'Admin/Configuration/Quiz/Maintenance' and then remove the default '7' in 'Complete Quiz Sessions Over' then click on 'Run Task Now' and repeat the same for 'Clean Information Board Over' (do not put a 0 in the box just leave it blank)

This will clear out any quizzes that have been started but not completed...warn your members first as they may have deliberately not finished a quiz.

Once thats done try again...if it works OK then repeat the process so you can start the Quiz League from scratch.
Title: Re: SMF Quiz
Post by: XHIBIT911 on April 17, 2012, 01:07:19 AM
Any word on if the new version for this mod is ready or not ?...Its been awful quiet
Title: Re: SMF Quiz
Post by: davejo on April 17, 2012, 02:47:50 AM
Any word on if the new version for this mod is ready or not ?...Its been awful quiet

I have it for testing at the moment and I believe it will be submitted at the end of the week. Everything is looking good so far.
Title: Re: SMF Quiz
Post by: emanuele on April 17, 2012, 08:13:38 AM
/me realised he doesn't have notifications on for this topic...

Yep, almost ready.
BTW don't expect any revolution, just a bit of work here and there fixing few errors (and adding new! :P) and features.

At the moment this is what I have in the change log:
I did also few other things, but I wrote just the more relevant (for all the other there will be the commit history! :P).
Title: Re: SMF Quiz
Post by: davejo on April 18, 2012, 03:59:06 AM
Any word on if the new version for this mod is ready or not ?...Its been awful quiet

I have it for testing at the moment and I believe it will be submitted at the end of the week. Everything is looking good so far.

I really should have added that Emanuele has done all the work to this I am only testing it in different environments as I have two test sites.

My apologies to Emanuele and to anyone else who may have got the impression I was doing the edits.

I can confirm that, so far, I have found no errors with the install on a clean install of SMF2.0.2 and using it, I got 2 parse errors on a site with lots of mods (41) installed but this is to be expected as different mods write to some of the same lines of code in the templates etc and just means that these edits will have to be done manually.

The biggest addition to this is the fact that Emanuele has now given us the ability to swap new quizzes with one another through the export quiz in the admin section, this function also copies all the images required for the quiz when its exported, so no looking for those either.

I would also like to add a public thank you to Emanuele for taking this mod on and bring it up to date.
Title: Re: SMF Quiz
Post by: emanuele on April 18, 2012, 05:33:13 AM
I really should have added that Emanuele has done all the work to this I am only testing it in different environments as I have two test sites.

My apologies to Emanuele and to anyone else who may have got the impression I was doing the edits.
What are you apologizing for??
I didn't post to "mark the territory" (I did it just to create a bit of hype :P), without you and CircleDock the mod would still be full of bugs! (Yes, I write code, but I also write a lot of bugs! O:))

So, a big, big thank you to davejo and CircleDock for their support in development!! ;D
Title: Re: SMF Quiz
Post by: XHIBIT911 on April 20, 2012, 06:43:37 AM
Best news I've heard all week.
Eman...you rock thanks for all your hard work, its really appreciated and I cant wait for the release.
And Davejo, you're still my go to guy if I encounter any issues since I do have about 37 mods installed. I've resigned myself to the quiz being the final mod and the icing on the cake for my site.

Thanks again to everyone who has contributed in any form or fashion.
Title: Re: SMF Quiz
Post by: emanuele on April 21, 2012, 12:50:31 PM
The new package is uploaded...I hope I didn't break anything! :P
Title: Re: SMF Quiz
Post by: TheListener on April 21, 2012, 01:08:10 PM
OK so the mod installed with just one minor edit required on the test forum.

No where do I find the quizzes?

Can I make my own?
Title: Re: SMF Quiz
Post by: emanuele on April 21, 2012, 01:55:48 PM
OK so the mod installed with just one minor edit required on the test forum.
Clean SMF install?
If so, let me know and I'll check, maybe I packed something wrong!... in this period I'm prone to such errors... :P

No where do I find the quizzes?
davejo provided a big package with a db dump with a lot of quizzes. The next step would be to pack those quizzes in the new format and make them available for download.
It will take a while for me to do, but if you want to help... O:)

Can I make my own?
Yes of course! ;D
Title: Re: SMF Quiz
Post by: TheListener on April 21, 2012, 01:59:02 PM
OK so the mod installed with just one minor edit required on the test forum.
Clean SMF install?
If so, let me know and I'll check, maybe I packed something wrong!... in this period I'm prone to such errors... :P

The test forum has a few mods installed the edit was easy enough.

Was in Sources/Subs to do with adding ,'quiz'  to a line.

If ya need a guinea pig I'm here BUT you can fix the errors.  :P
Title: Re: SMF Quiz
Post by: novill on April 21, 2012, 02:10:25 PM
Thanks for this mod. :)
I installed without problems on my test site (no errors). I have made a quiz, when i start the quiz that happens nothing. Just loading, the quiz isn't starting. Any idea what's the problem?
Title: Re: SMF Quiz
Post by: TheListener on April 21, 2012, 02:12:19 PM
Thanks for this mod. :)
I installed without problems on my test site (no errors). I have made a quiz, when i start the quiz that happens nothing. Just loading, the quiz isn't starting. Any idea what's the problem?

Any questions installed?
Title: Re: SMF Quiz
Post by: novill on April 21, 2012, 02:20:18 PM
Of course :)

Quote from: quiz window
Quiz Details

You will be given 2 questions
You will have 20 seconds to answer each question
This quiz can be played 5 times
This quiz is configured to show correct answers after submitting answer
You currently have a session for this quiz open and therefore this previous session will be resumed

Title: Re: SMF Quiz
Post by: TheListener on April 21, 2012, 02:22:38 PM
I'd give Emanuelle some time as he has only recently taken over the mod.
Title: Re: SMF Quiz
Post by: FrizzleFried on April 21, 2012, 02:30:55 PM
I figured out the mod that was causing the QUIZ mod to not work.  Fancy Box... when installed,  the quiz hangs.  Remove it... it works fine.  Both mods install and uninstall fine.
Title: Re: SMF Quiz
Post by: emanuele on April 21, 2012, 02:33:42 PM
It could be a problem of clashing javascripts...

/me goes check how Fancy box works.
Title: Re: SMF Quiz
Post by: novill on April 21, 2012, 02:42:33 PM
On my test site (localhost) is just smf quiz installed.
Title: Re: SMF Quiz
Post by: emanuele on April 21, 2012, 03:19:21 PM
Just tested on a clean install (at least not the one where I did the development) and it works...
Do you click "start quiz" when the client opens? (maybe is not evident enough?)
Title: Re: SMF Quiz
Post by: davejo on April 21, 2012, 03:28:51 PM
Ok for those who are getting started below is a pack of 10 quizzes I have just exported.

Just go into the quiz admin and click on 'Quiz_Importer' and browse to the location of the downloaded '10 Pack.xml'

If you follow all the instructions it should be OK.

If you install these and they work OK, you should be able to create and play your own.

Just remember that if you are the admin it will not count your scores. What you might want to do is create a user named 'Quizmaster' or similar and use that ID for the quiz. You'll find that in 'Settings' 'Import Quizzes as User ID'.
Title: Re: SMF Quiz
Post by: emanuele on April 21, 2012, 03:41:50 PM
Thanks davejo!

I added a link to your post in the mod page! :)
Title: Re: SMF Quiz
Post by: novill on April 21, 2012, 03:46:12 PM
I have downloaded davejo quizzes, and his quizzes are working very well.
I will check what a mistake i have made.
Thanks everyone.
Title: Re: SMF Quiz
Post by: emanuele on April 21, 2012, 03:50:24 PM
Did you by chance used quotes or double quotes in the question or answers?

I have the feeling some of these chars could create problems...
Title: Re: SMF Quiz
Post by: novill on April 21, 2012, 04:18:25 PM
I have the feeling some of these chars could create problems...

Maybe is this the problem, i have used my own language characters (hungarian). Without hungarian characters works perfect.
Title: Re: SMF Quiz
Post by: emanuele on April 21, 2012, 04:23:57 PM
Here it is...and now I guess you are volunteering to help understand why is not working, right? :laugh:

I'm very interested in making it work in languages different than English, there is still something to do though. ;)
If you can do few tests I'd be very happy!
Title: Re: SMF Quiz
Post by: novill on April 21, 2012, 04:34:32 PM
What tests should I do? :D
Title: Re: SMF Quiz
Post by: TheListener on April 21, 2012, 04:44:30 PM
A stick of dynamite goes a long way.

 ;D
Title: Re: SMF Quiz
Post by: Ozzie on April 21, 2012, 05:08:02 PM
hey Emanuel things are looking good, and I appreciate how much time and effort you put into getting this mod to work, my question is, will you be adding a upgrade option for those of us like myself who currently have a working version with over 300 quizzes. it appears when you  install this version, which I have just tried on a test site does not upgrade the old one. It just installs this version and I don't really want to lose all my install quizzes. ? ?
Title: Re: SMF Quiz
Post by: TheListener on April 21, 2012, 05:24:41 PM
Hmm

Odd times are ahead. On my test forum the menu bar says Quiz. On the main forum SMF Quiz.

How do I get rid of the SMF?

Scratch that. It seemed to change from SMF Quiz to Quiz on its own.

 ???
Title: Re: SMF Quiz
Post by: emanuele on April 21, 2012, 05:40:19 PM
Quizzes are saved into the database and the mod doesn't delete any database data on uninstall (if you want you have to do it manually), so you should not lose anything (make you can always make a backup just in case ;)).
Additionally the install already takes care of updating the database if needed from version to version, so you should not have problems. ;)

BTW I uploaded another version of the package restoring the behaviour of not delete the quiz_images while uninstall (I removed it a while ago...honestly I don't know why... ::))

On my test forum the menu bar says Quiz. On the main forum SMF Quiz.
That's curious...I see Quiz when on the forum and SMF Quiz when in the admin area.
If this is the problem then you can change:
Code: [Select]
$txt['SMFQuiz'] = 'SMF Quiz';in SMFQuizAdmin.english.php.
Title: Re: SMF Quiz
Post by: TheListener on April 21, 2012, 05:41:34 PM
Quote
Scratch that. It seemed to change from SMF Quiz to Quiz on its own.
Title: Re: SMF Quiz
Post by: novill on April 21, 2012, 05:41:55 PM
@Old Fossil

SMFQuizAdmin.english.php

line 11 $txt['SMFQuiz'] = 'SMF Quiz';


@emanuele

I attached :)
Title: Re: SMF Quiz
Post by: TheListener on April 21, 2012, 05:43:32 PM
er read me last post boys.

 :-X
Title: Re: SMF Quiz
Post by: Saahilk2000 on April 22, 2012, 12:01:06 AM
Is there a way to make the quiz reslut available to everyone?
Title: Re: SMF Quiz
Post by: davejo on April 22, 2012, 01:39:46 AM
Is there a way to make the quiz reslut available to everyone?

This info is available in the 'Information Board' which is at the bottom of the 'Home' page for the quiz. It is set at 20 by default, if you want to change this the go to Admin/Forum/Quiz/Settings look for 'InfoBoard Items to Display' and change to whatever you want. There is also a setting for 'Show User Ratings' ensure this is ticked.

NOTE: Some or all of this info will be removed if you use the 'Maintenance' option to 'Clean Information Board Over'
Title: Re: SMF Quiz
Post by: FrizzleFried on April 22, 2012, 02:24:38 AM
A Quiz "Leaderboard" block for SimplePortal/TinyPortal would be quite kickass... (hint/hint)...

...and is anyone thinking of putting together a quiz depository? 
Title: Re: SMF Quiz
Post by: GlitchPC on April 22, 2012, 02:35:16 AM
I'm still using the older version of this mod...and not the new one...yet.

Question, though...regarding disputes.

If a user disputes an incorrect answer...and is, apparently, correct...how does one modify their quiz results to reflect the change?  In other words...a user got one wrong that should have been marked correct.  How do I fix their quiz results to reflect it?
Title: Re: SMF Quiz
Post by: davejo on April 22, 2012, 02:57:30 AM
A Quiz "Leaderboard" block for SimplePortal/TinyPortal would be quite kickass... (hint/hint)...

At present the only block I know of, which I'm using on my site, which is 'Newest Quizzes' is as attached. Create a custom php block and insert the text into it.

...and is anyone thinking of putting together a quiz depository?

This has been mentioned but as yet the final details have not been ironed out. Watch this space....
Title: Re: SMF Quiz
Post by: davejo on April 22, 2012, 03:28:54 AM
I'm still using the older version of this mod...and not the new one...yet.

Question, though...regarding disputes.

If a user disputes an incorrect answer...and is, apparently, correct...how does one modify their quiz results to reflect the change?  In other words...a user got one wrong that should have been marked correct.  How do I fix their quiz results to reflect it?

At the moment the only way I know to do this is by editing the database table 'smf_quiz_result'

Look at the image below.

You would need to look at the 'quiz id' number and the 'user id' and then find that info in the table. Once you have done that use the 'Inline Edit' option and change the numbers in the 'correct' and 'incorrect' columns and the click on 'save'. This will then give the correct results.

To find out the 'quiz id' hover the mouse over a quiz title and it will show you.

See below
Title: Re: SMF Quiz
Post by: GlitchPC on April 22, 2012, 03:44:17 AM
davejo...

Thanks...I'll look into that.  However, it would be a good idea to give Admins the ability to change a user's results within the mod...since there is a "Dispute" form...don't you think?  I mean...what good is a dispute...if one can't change the outcome?  Just sayin'...

Thanks for the quick reply...much appreciated.
Title: Re: SMF Quiz
Post by: davejo on April 22, 2012, 03:54:09 AM
davejo...

Thanks...I'll look into that.  However, it would be a good idea to give Admins the ability to change a user's results within the mod...since there is a "Dispute" form...don't you think?  I mean...what good is a dispute...if one can't change the outcome?  Just sayin'...

Thanks for the quick reply...much appreciated.

No problem Glitch and yes your right it would be a good idea.
Title: Re: SMF Quiz
Post by: GlitchPC on April 22, 2012, 04:58:24 AM
I was able to make the changes to the database...however, there were a few tables I had to modify...and not just the one you mentioned (smf_quiz_result).  I should have wrote them down.  My bad... :o

This much I know...

It would seem just making that one change does not update the Info Board table.  You cannot do an "inline edit" for that table.  However...it can be edited.
Title: Re: SMF Quiz
Post by: davejo on April 22, 2012, 05:15:01 AM
I was able to make the changes to the database...however, there were a few tables I had to modify...and not just the one you mentioned (smf_quiz_result).  I should have wrote them down.  My bad... :o

This much I know...

It would seem just making that one change does not update the Info Board table.  You cannot do an "inline edit" for that table.  However...it can be edited.

Ok thanks for the update.
Title: Re: SMF Quiz
Post by: emanuele on April 22, 2012, 05:18:21 AM
FYI: I'm setting up a repository (https://bitbucket.org/emanuele_smf_projects/smf-quiz/) at bitbucket with a wiki and an issue tracker (if you want feel free to report issues and requests for enhancements (also) there so that are easily accessible).
Title: Re: SMF Quiz
Post by: Realinfo on April 22, 2012, 10:49:36 AM
/Sources/Admin.php    Test failed

2.0.2 Default Theme.......... I tried manually........... but don't work............ please see...........
Title: Re: SMF Quiz
Post by: TheListener on April 22, 2012, 10:53:59 AM
/Sources/Admin.php    Test failed

2.0.2 Default Theme.......... I tried manually........... but don't work............ please see...........

Why didn't it work? Did you use the parser to do the edit?
Title: Re: SMF Quiz
Post by: davejo on April 22, 2012, 12:00:02 PM
/Sources/Admin.php    Test failed

2.0.2 Default Theme.......... I tried manually........... but don't work............ please see...........


Try the attached one.

Title: Re: SMF Quiz
Post by: Saahilk2000 on April 22, 2012, 01:21:34 PM
It installed correctly, and everything works fine except for the edit option. When i try to edit a quiz, it gives me the following error message.

Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Help pls.
Title: Re: SMF Quiz
Post by: emanuele on April 22, 2012, 03:26:58 PM
Hello Saahilk2000,

mmm...digging the internet this seems to be a problem with mod_security (http://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security)...
Title: Re: SMF Quiz
Post by: Saahilk2000 on April 22, 2012, 03:50:41 PM
Hello Saahilk2000,

mmm...digging the internet this seems to be a problem with mod_security (http://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security)...


The thing is that i was able to edit it before but then i installed forum firewall and bad behaviour mod and since then, everything is screwed.

Title: Re: SMF Quiz
Post by: emanuele on April 22, 2012, 03:59:29 PM
ahhhh....even less idea than before then!
Title: Re: SMF Quiz
Post by: Saahilk2000 on April 22, 2012, 04:01:12 PM
ahhhh....even less idea than before then!

and big pain in the neck is that i cant even get rid of these 2 mods ... its like i am stuck with it forever .... everytime i uninstall, it disables one function or another and i have to install it again ......

I am even having problem with even people registering on my forum coz of these 2 mods .....


Title: Re: SMF Quiz
Post by: TheListener on April 22, 2012, 05:59:17 PM
Make sure bad behaviour is disabled before uninstalling.

I also use BB and have no trouble with it or the smf quiz.
Title: Re: SMF Quiz
Post by: Kindred on April 22, 2012, 06:48:50 PM
I would assume that there is probably a problem with your firewall configuration.  That is an excellent mod, but is very difficult to set up correctly and very easy to screw up your system if you set it incorrectly.
Title: Re: SMF Quiz
Post by: Realinfo on April 23, 2012, 04:23:19 AM
/Sources/Admin.php    Test failed

2.0.2 Default Theme.......... I tried manually........... but don't work............ please see...........


Try the attached one.

thanks.......... It seems ok now............ But from where we can get more and more quiz.xml ................
Title: Re: SMF Quiz
Post by: novill on April 23, 2012, 04:32:57 AM
Write for yourself, this will be a unique quiz. :)
Title: Re: SMF Quiz
Post by: davejo on April 23, 2012, 05:39:17 AM
But from where we can get more and more quiz.xml ................

I have created 28 seperate category packages for a total of 530+ quizzes which I have installed on my site. I have sent Emanuele a link to them so he can post them as either as one package or as individual packages.

As this is his mod now he is the one to decide how and when they are distributed.
Title: Re: SMF Quiz
Post by: GlitchPC on April 23, 2012, 07:29:50 AM
Hello...it's me, again, Margaret.   :laugh:

Just noticed something about deleting "Disputes" on the older version...1.0.8 b4 version of this mod.

The only way to remove a dispute is to reply to the dispute and click the Send/Remove button.  If you see a list of disputes...and tick the box next to them...then click the Delete button...nothing happens.

I haven't upgraded to the latest version by emanuelle...waiting for any bugs to be ironed out.

In the meantime...how do I fix the above issue?  Thanks for any help on this.
Title: Re: SMF Quiz
Post by: davejo on April 23, 2012, 07:48:44 AM
Hello...it's me, again, Margaret.   :laugh:

Just noticed something about deleting "Disputes" on the older version...1.0.8 b4 version of this mod.

The only way to remove a dispute is to reply to the dispute and click the Send/Remove button.  If you see a list of disputes...and tick the box next to them...then click the Delete button...nothing happens.

I haven't upgraded to the latest version by emanuelle...waiting for any bugs to be ironed out.

In the meantime...how do I fix the above issue?  Thanks for any help on this.

Yep I concur with that as i too have a site which has the old version on it and it does the same there.

Dont know the answer but I think you'd just be better of taking the plunge Glitch and get the new version.

We have tested it till it screamed at us to stop and we didn't get any errors. That's not to say that a conflict may happen with another mod...but I tested it on my test site with 40 different mods installed without a hitch.

If you do take the plunge make sure you save the 'quiz_images' folder in the themes default folder before you unintsall it as it will wipe them out. It will not affect the database tables you have...although I would back everything up as a matter of course just to be on the safe side.

Sorry I can't be of any more help.
Title: Re: SMF Quiz
Post by: FrizzleFried on April 23, 2012, 09:56:43 AM
But from where we can get more and more quiz.xml ................

I have created 28 seperate category packages for a total of 530+ quizzes which I have installed on my site. I have sent Emanuele a link to them so he can post them as either as one package or as individual packages.

As this is his mod now he is the one to decide how and when they are distributed.

I assume it's the same package as the one you offered before but with categories now?   I ask only because I have 3 players who are actually coming up to having taken 300 quizes and when they're done... they're done... it would be nice to see new quizzes created again.   I suppose I could buy a book of trivia and go at it...
Title: Re: SMF Quiz
Post by: GlitchPC on April 23, 2012, 11:33:44 AM
Okay...I updated to the latest version.  Just had to make one simple edit to Subs.php.  Just a heads-up...I had no issues with the quiz_images folder.  I just made sure it was there for my custom and smf curve theme.

Some aesthetic issues, though...and I will post them as I come to them.

If you are like me and use the left navigation menu in the Admin Control Panel of SMF...then you're going to run across this issue...(see attached image of the Quiz Admin Center).  Just a note...if the left navigation menu is collapsed...then you won't see the overwritten text as I have as shown in the attached image.

Is there a fix?  Thanks, in advance...

Edit...

Another issue...(see attached image of the Quiz Maters block).

Edit...

Another issue...(see attached image of Information Board)
The date is displayed with the time included.  Why does the time need to be there?  The date is sufficient...don't you think? The date column isn't wide enough, either for the displayed date format.  Also...using alternating colors for separate entries is not really aesthetically pleasing...as I'm sure you can see from the attached image.  While the first entry separates the date and information...the following entry does not...due to the secondary colors.

Edit...

Quiz Admin Categories column titles need to be white text, please.  (See attached image)
Quiz Admin Questions column titles need to be white text, as well.

That's about it...for now.  Not that I'm being picky...or, anything like that.  However...I can be a pain in the butt.   ;)
Title: Re: SMF Quiz
Post by: emanuele on April 23, 2012, 03:00:34 PM
Okay...I updated to the latest version.  Just had to make one simple edit to Subs.php.  Just a heads-up...I had no issues with the quiz_images folder.  I just made sure it was there for my custom and smf curve theme.
Good to know! :)

If you are like me and use the left navigation menu in the Admin Control Panel of SMF...then you're going to run across this issue...(see attached image of the Quiz Admin Center).  Just a note...if the left navigation menu is collapsed...then you won't see the overwritten text as I have as shown in the attached image.

Is there a fix?  Thanks, in advance...
Not that I know...sorry...

Another issue...(see attached image of the Quiz Maters block).
In what page are you exactly?
And what browser are you using?
And at what resolution?

The date is displayed with the time included.  Why does the time need to be there?  The date is sufficient...don't you think? The date column isn't wide enough, either for the displayed date format.  Also...using alternating colors for separate entries is not really aesthetically pleasing...as I'm sure you can see from the attached image.  While the first entry separates the date and information...the following entry does not...due to the secondary colors.
Regarding the alternation: I'll continue change the look of the mod in the next releases to be in line with SMF, so...later.
Regarding the time...not important not useless...from the time being I'll keep it.
Regarding the width...what's the resolution you are using?

Quiz Admin Categories column titles need to be white text, please.  (See attached image)
Quiz Admin Questions column titles need to be white text, as well.
...mmm...
Easiest solution is: open SMFQuizAdmin.template.php, search for:
Code: (find) [Select]
<table class="bordercolor" border="0" cellpadding="4" cellspacing="1" width="100%">
<tbody>
<tr class="titlebg" valign="top">

and then remove the class="titlebg" from the <tr> tag.
The same applies to few other similar headers like in questions.

HTH.
Title: Re: SMF Quiz
Post by: emanuele on April 23, 2012, 03:04:00 PM
Thanks...I'll look into that.  However, it would be a good idea to give Admins the ability to change a user's results within the mod...since there is a "Dispute" form...don't you think?  I mean...what good is a dispute...if one can't change the outcome?  Just sayin'...
At the moment the only thing I can do is track it: https://bitbucket.org/emanuele_smf_projects/smf-quiz/issue/22/change-previous-quiz-results-after
Title: Re: SMF Quiz
Post by: GlitchPC on April 23, 2012, 05:37:20 PM
Emanuele...

I'm using the latest version of Firefox at a resolution of 1024x768.  The Quiz Masters block is on the main page of the Quiz.
Title: Re: SMF Quiz
Post by: XHIBIT911 on April 24, 2012, 10:08:23 AM
It could be a problem of clashing javascripts...

/me goes check how Fancy box works.

You're absolutely correct. I have 55 mods running and after installing the new quiz it installed seamlessly but...when taking a test quiz it hung. Good thing i checked the post here and had an idea of what might be causing the issue.
I simply uninstalled fancybox and PRESTO...game on. Good catch !
Now its just a matter of me getting familiar with creating my own custom quizzes and uploading images.

Thanks once again for everyone who contributed to this helluva mod
Title: Re: SMF Quiz
Post by: davejo on April 24, 2012, 10:51:49 AM
It could be a problem of clashing javascripts...

/me goes check how Fancy box works.

You're absolutely correct. I have 55 mods running and after installing the new quiz it installed seamlessly but...when taking a test quiz it hung. Good thing i checked the post here and had an idea of what might be causing the issue.
I simply uninstalled fancybox and PRESTO...game on. Good catch !
Now its just a matter of me getting familiar with creating my own custom quizzes and uploading images.

Thanks once again for everyone who contributed to this helluva mod

Glad it's worked out Ok for you  ;)
Title: Re: SMF Quiz
Post by: Dylert on April 24, 2012, 06:10:51 PM
Great mod! The installation went well, and I'm ready to try it. But where do I find quizes? I have found the pack of 10 quizes om the mod-site, but it would have been nice with some more.

Thanks a lot!  :)
Title: Re: SMF Quiz
Post by: TheListener on April 24, 2012, 06:12:35 PM
I'm in the same boat as you Dylert

However you can make ya own quizzes.
Title: Re: SMF Quiz
Post by: Dylert on April 24, 2012, 06:15:28 PM
Yes, I'm going to make some, but it would have been nice to have some quizzes to start with...
Title: Re: SMF Quiz
Post by: TheListener on April 24, 2012, 06:17:02 PM
Emanuelle has not long taken over the mod so some patience will be necessary.
Title: Re: SMF Quiz
Post by: davejo on April 25, 2012, 12:38:01 AM
Yes, I'm going to make some, but it would have been nice to have some quizzes to start with...

If you have access to your database and are able to drop tables etc then read my post here

http://www.simplemachines.org/community/index.php?topic=293949.msg3286796#msg3286796
Title: Re: SMF Quiz
Post by: emanuele on April 25, 2012, 06:10:38 AM
Sorry, I'm fighting with SMF these days.

@davejo: I know you sent me a PM, still have to answer...sorry... :(
Title: Re: SMF Quiz
Post by: davejo on April 25, 2012, 06:54:03 AM
Sorry, I'm fighting with SMF these days.

@davejo: I know you sent me a PM, still have to answer...sorry... :(

not a problem Emanuele  :)
Title: Re: SMF Quiz
Post by: Eclipse16V on April 27, 2012, 01:31:53 AM
Hi,
I become this error:

"You have already played this quiz league over the maximum amount of times allowed for this round
Please return when the next round starts."

It´s a new quiz and a new league.
No user can play this quiz.

How can i fix it?

I don't know if this will work but....

Try going into 'Admin/Configuration/Quiz/Maintenance' and then remove the default '7' in 'Complete Quiz Sessions Over' then click on 'Run Task Now' and repeat the same for 'Clean Information Board Over' (do not put a 0 in the box just leave it blank)

This will clear out any quizzes that have been started but not completed...warn your members first as they may have deliberately not finished a quiz.

Once thats done try again...if it works OK then repeat the process so you can start the Quiz League from scratch.
Thanks, but it doesn´t work.
I install now the new version of this Mod 1.1.0
Title: Re: SMF Quiz
Post by: emanuele on April 27, 2012, 04:31:15 PM
Most likely it won't change anything: I don't remember I touched anything related.

Unfortunately at the moment I have no idea of what could be the issue here...
Usually the quiz leagues are not correlated to the number of times a quiz has been played.

Did you try to create a new league?
Title: Re: SMF Quiz
Post by: CircleDock on April 29, 2012, 02:30:01 AM
I want to thank Emanuele for reviving this mod and releasing a version that works with SMF 2.0.2 - and for not breaking anything on my site where we tested his various revisions!!

I know he has great plans for the Quiz mod and I've given him a "shopping list" of changes and enhancements I'd like to see which includes the provision of BBC in question and answer texts.

From my members' perspective, there is only one weak area and that's Quiz League Results where only the current top scorer's results are displayed (as well as "your" position if you're participating). That's hardly a league table which should show all the participants, their results and movement since the last update  - something like this:
Code: [Select]
                           ------ Round 3 Results ------      --------- Cumulative Results -----------
Position  Member's Name    Right   Wrong  Time-Outs  Time     Right  Wrong  Time-Outs  Time   Movement
    1       John Doe        10       5        0       94       25      6        0       185   up 1
   =2       Jane Doe         9       6        0       95       24      7        0       186   no change
   =2       Fred Smith      10       5        0       98       24      7        0       187   down 1
    4       You             11       4        0       94       23      8        0       187   up 4

There remains a major issue. All the images and JS scripts used in the Quizzes are stored in the default theme's images and scripts trees respectively. That's fine if the only theme available is the default theme but for sites that allow for more than one theme, this will be an issue. I suggest that all images be stored in "$boardurl . 'SMFQuiz/Images/'" and scripts in "$boardurl . SMFQuiz/Scripts/'" where they will be readily accessible regardless of theme.
Title: Re: SMF Quiz
Post by: sharks on April 29, 2012, 03:33:59 AM
Thanks a lot for developing this fine mod, emanuele! :D Please keep up the great work!!

Maybe in the future, you might consider making this compatible with SMF 1.1.16?
Title: Re: SMF Quiz
Post by: emanuele on April 29, 2012, 08:30:09 AM
Maybe in the future, you might consider making this compatible with SMF 1.1.16?
I have around a version that *should* work (more or less) with SMF 1.1.x (that is the one I'm using on my own forum...yeah, too many things to do to even upgrade my own forum lol). I did few changes (don't even remember what I changed) and I should clean it up a bit...
Anyway it would be a completely unsupported version, at the moment I'm moving even further away from SMF 1.1 in the development of this mod, so it would be a dead version unless someone else would provide active support for it.

There remains a major issue. All the images and JS scripts used in the Quizzes are stored in the default theme's images and scripts trees respectively. That's fine if the only theme available is the default theme but for sites that allow for more than one theme, this will be an issue. I suggest that all images be stored in "$boardurl . 'SMFQuiz/Images/'" and scripts in "$boardurl . SMFQuiz/Scripts/'" where they will be readily accessible regardless of theme.
It's not an issue at all and is done on purpose: all the images and scripts are accessed through the default theme urls, so even if you are using a different theme they are loaded properly. Nothing to change here.
Title: Re: SMF Quiz
Post by: Chalky on April 29, 2012, 05:57:25 PM
I have just installed this on my heavily-modded test forum with no errors at all  :D  I did have to uninstall Fancy Box for the quiz to run (thanks for the heads-up), but, having just taken davejo's Cult Movies quiz, many of the questions are cutting off before the end.  I don't know of course if this is to do with the mod or the quiz pack.  I attach a screenshot:
Title: Re: SMF Quiz
Post by: Kindred on April 29, 2012, 10:46:08 PM
That has actually always been an issue, even with the original mod. I had to modify many questions to reduce the question length.
Title: Re: SMF Quiz
Post by: emanuele on April 30, 2012, 05:51:53 AM
The question_text field (in the db) is limited to 255 characters. That would most likely be the reason.
In fact there isn't any warning that the filed is limited.

Is it too short?
Title: Re: SMF Quiz
Post by: CircleDock on May 01, 2012, 02:04:17 AM
The question_text field (in the db) is limited to 255 characters. That would most likely be the reason.
In fact there isn't any warning that the filed is limited.

Is it too short?
I agree that it is too short
Title: Re: SMF Quiz
Post by: FrizzleFried on May 01, 2012, 07:14:22 AM
I too have come across many quizzes with cut off questions.  255 is too short.  512 probably should be the minimum.
Title: Re: SMF Quiz
Post by: novill on May 01, 2012, 07:41:31 AM
I think 512 - 1024 characters is a good choice for the questions length.
@ Emanuele with the display the special characters is any process?
Title: Re: SMF Quiz
Post by: emanuele on May 01, 2012, 04:55:10 PM
Ok, tracked (https://bitbucket.org/emanuele_smf_projects/smf-quiz/issue/24/increase-question-field-size) (at the moment I'm pretty busy with SMF and other mods, can't do more...).

@ Emanuele with the display the special characters is any process?
At the moment no, for this 1.1 I just fixed the most important (and easy :P) things.
This is in the to-do list for the next version along with few other localization-related issues.
Title: Re: SMF Quiz
Post by: emanuele on May 04, 2012, 04:40:39 PM
Okay, here we are.

davejo kindly provided a package with all the quizzes he already provided in the past (http://www.simplemachines.org/community/index.php?topic=293949.msg3286796#msg3286796) this time in the new xml format (so that you can easily import them in your forum) and subdivided in 28 packages.

Please note that neither me nor davejo wrote these quizzes, they where originally uploaded to the website smfmodding.
They can contain errors, if you find any feel free to post here the updated quiz or the correct answer.

Please find here the packages:
https://bitbucket.org/emanuele_smf_projects/smf-quiz/wiki/Home

The files are zipped, you have to decompress them, otherwise the mod wont be able to read the file! ;)

If you want to provide a pack of quizzes or even a single quiz, feel free to attach it to a post here or to a new issue (https://bitbucket.org/emanuele_smf_projects/smf-quiz/issues?status=new&status=open) at bitbucket, in both cases I'll take care of uploading it to the wiki.

Happy quizzing! :D
Title: Re: SMF Quiz
Post by: Eclipse16V on May 06, 2012, 04:02:50 AM
Sorry that I am only now back in touch.
So I'm just not on.

New version is installed and the old removed completely.
A league I've also been created. Still, I get just no indication at the quiz and the quiz will not start.

Down here on the first picture you can see how it looks when the popup opens.
In the second picture you can see how it looks when you click on Start Quiz.

I hope it can help someone.
Is it because I use the German rather than English as the default?
The Mod Quiz I only do not even translated.
Title: Re: SMF Quiz
Post by: Chalky on May 06, 2012, 04:10:11 AM
That's what mine did until I uninstalled Fancy Box.....
Title: Re: SMF Quiz
Post by: novill on May 06, 2012, 04:29:17 AM
I have the feeling some of these chars could create problems...

Maybe is this the problem, i have used my own language characters (hungarian). Without hungarian characters works perfect.

Have you special characters in your quiz? (I have the same problem, go back to the page 27)

Try to download (https://bitbucket.org/emanuele_smf_projects/smf-quiz/wiki/Home) a english language quiz.
Title: Re: SMF Quiz
Post by: emanuele on May 06, 2012, 08:48:19 AM
Sorry that I am only now back in touch.
So I'm just not on.
Would you send me the data of an account?
It doesn't need to be admin, in case if you want you can give it the permission to administrate quizzes.
Title: Re: SMF Quiz
Post by: mrselnombre on May 15, 2012, 04:59:39 PM
I upgraded to the new version, and now all quizzes hang and will not load.
I don't have fancybox installed, so what else could it be clashing with?
Title: Re: SMF Quiz
Post by: crustybum on May 17, 2012, 08:07:32 AM
Just uploaded, no errors until i was directed to what i thought would be the admin screen for it, instead i got a parser error, i then went back and it was installed....but no admin to install quizes etc...???

Anyone?
Title: Re: SMF Quiz
Post by: crustybum on May 17, 2012, 08:26:56 AM
Have now found the admin section..was looking in the wrong place...this is what i get when i click on it..

Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /home/content/c/r/u//html/theforum/Sources/SMFQuizAdmin.php on line 2138

I am running PHP5

Thanks.
Title: Re: SMF Quiz
Post by: crustybum on May 17, 2012, 03:38:20 PM
ok sorted that one by upgrading to 5,2, now i get the dreaded "you have already played this quiz......." although people on here have mentioned it...cant see a solution..
Title: Re: SMF Quiz
Post by: emanuele on May 17, 2012, 04:28:01 PM
Okay, quick fix: replace the SMFQuizStart.php with the one attached here.

Tested only quickly, it should fix the "You have already played this quiz over the maximum amount of times allowed" problem for quizzes.

[file removed: wrong one uploaded]
Title: Re: SMF Quiz
Post by: crustybum on May 17, 2012, 05:03:14 PM
Okay, quick fix: replace the SMFQuizStart.php with the one attached here.

Tested only quickly, it should fix the "You have already played this quiz over the maximum amount of times allowed" problem for quizzes.


Sorry....that didnt work either...even re installing....
Title: Re: SMF Quiz
Post by: emanuele on May 17, 2012, 05:29:03 PM
Are you sure you have set the quiz to be played more than once?
Title: Re: SMF Quiz
Post by: crustybum on May 17, 2012, 05:33:10 PM
dont quite follow, i havnt been able to play at all yet...nor as anyone else.. ;D
Title: Re: SMF Quiz
Post by: emanuele on May 17, 2012, 05:38:45 PM
That's not entirely true...you are the first that has reported he is not able to start any quiz.

Just look at the last page and you will find a screenshot from Sabrinova of a working installation.

So, what is your configuration?
Would you mind  sending me the details of an account?
Title: Re: SMF Quiz
Post by: FrizzleFried on May 17, 2012, 07:01:32 PM
That's not entirely true...you are the first that has reported he is not able to start any quiz.

Just look at the last page and you will find a screenshot from Sabrinova of a working installation.

So, what is your configuration?
Would you mind  sending me the details of an account?

I think he means on HIS forum.

;)

Title: Re: SMF Quiz
Post by: Eclipse16V on May 18, 2012, 01:14:50 AM
hi,
sorry but for me it's not even with the new file.
Have the same problem.
All quiz can be played at least 50 times with me.
Title: Re: SMF Quiz
Post by: crustybum on May 18, 2012, 05:19:48 AM
That's not entirely true...you are the first that has reported he is not able to start any quiz.

Just look at the last page and you will find a screenshot from Sabrinova of a working installation.

So, what is your configuration?
Would you mind  sending me the details of an account?

I think he means on HIS forum.

;)




I do...yes,,
Title: Re: SMF Quiz
Post by: crustybum on May 18, 2012, 07:55:38 AM
Its driving me nuts.. i get the same as eclipse..
 "You have already played this quiz league over the maximum amount of times allowed for this round
Please return when the next round starts." I dont have fancy box installed, i will send you an account with permissions if thats ok?

Title: Re: SMF Quiz
Post by: FrizzleFried on May 18, 2012, 10:12:26 AM
To clear things up.  Fancy Box does not produce the errors these folks are getting.  When Fancy Box is installed you can get in to the quiz screen (the popup) but nothing actually appears.  No error is thrown.

Title: Re: SMF Quiz
Post by: emanuele on May 18, 2012, 12:34:51 PM
I exchanged a bit of PMs with crustybum.

His problem is that the quiz data are not loaded to the template when accessing the quiz page, that leads to a broken quiz link (the one that opens the popup window) without the quiz ID. At the point, of course, the script that retrieves the data from the database doesn't know what quiz he is trying to play and it give the error message "already played".

Honestly I have no idea of what can lead to this result, I'd need to debug it...
Title: Re: SMF Quiz
Post by: lttung on June 08, 2012, 08:49:06 AM
My quiz can't play, pls help me to fix:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi83.photobucket.com%2Falbums%2Fj285%2Flttung%2FFullscreencapture68201274629PM.jpg&hash=8532cda4385e1eb8aa2c23c782cd5fba)

thanks
Title: Re: SMF Quiz
Post by: mageguild on June 08, 2012, 11:44:01 AM
Hi, Is there a way to change the URL from SMFQuiz?
Title: Re: SMF Quiz
Post by: Kindred on June 08, 2012, 11:56:23 AM
yup.... modify every instance in the code. :P
Title: Re: SMF Quiz
Post by: emanuele on June 08, 2012, 12:54:35 PM
My quiz can't play, pls help me to fix:

http://i83.photobucket.com/albums/j285/lttung/Fullscreencapture68201274629PM.jpg

thanks
Could you provide an account? (doesn't need to be admin)
Title: Re: SMF Quiz
Post by: lttung on June 08, 2012, 01:02:40 PM
My quiz can't play, pls help me to fix:

http://i83.photobucket.com/albums/j285/lttung/Fullscreencapture68201274629PM.jpg

thanks
Could you provide an account? (doesn't need to be admin)

Okey,
Title: Re: SMF Quiz
Post by: emanuele on June 08, 2012, 01:22:05 PM
Code: [Select]

                                         

                <script type="text/javascript"><!-- // --><![CDATA[

                        !window.jQuery && document.write(unescape('%3Cscript src="http://code.jquery.com/jquery.min.js"%3E%3C/script%3E'));

                        jQuery.noConflict();

                // ]]></script>

                <script type="text/javascript" src="http://dothixala.net/Themes/default/scripts/sisyphus.min.js"></script>

                <script type="text/javascript"><!-- // --><![CDATA[           

                        jQuery(document).ready(function() { 

                                jQuery("#postmodify").sisyphus();

                        }); 

                // ]]></script>[code]
That piece of code is added to the html after the closing HTML tag in the popup window of the quiz, that stops the quiz mod from working.
Find where and why this code is added and it will work.
Title: Re: SMF Quiz
Post by: lttung on June 08, 2012, 02:02:38 PM
Thanks for help
I remove Sisyphus Mod(Sisyfus mod will restore entered text in Quick Reply form and Reply form, after browser crash/closing ).Quiz work good

Title: Re: SMF Quiz
Post by: mageguild on June 09, 2012, 07:30:34 AM
I have installed this mod, created quizzes (all that are enabled) but no user can access them.  If they try to play the quiz, a popup appears saying "You have already played this quiz league over the maximum amount of times allowed for this round."  problem is no one has been able to play it.  What causes this error?
Title: Re: SMF Quiz
Post by: emanuele on June 09, 2012, 07:36:43 AM
If you can provide a test account would be much easier to debug the issue. ;)
Title: Re: SMF Quiz
Post by: mageguild on June 09, 2012, 07:42:00 AM
If you can provide a test account would be much easier to debug the issue. ;)

You mean a test user account or a test admin account?
Title: Re: SMF Quiz
Post by: emanuele on June 09, 2012, 07:44:43 AM
User should be enough.
Title: Re: SMF Quiz
Post by: mageguild on June 09, 2012, 08:48:16 AM
User should be enough.

You can use this account to test with:

Username:  michaelGrains
Password:  1Password

My website address is:  http://www.tennis-chat.com
I have removed the Quiz link from the menu.  You can access it at http://www.tennis-chat.com/SMFQuiz
Title: Re: SMF Quiz
Post by: crustybum on June 09, 2012, 09:30:58 AM
would love this...but has anyone sorted the "you have already played this......." scenario which seems quite a popular bug (glad i am not the only one.)
Title: Re: SMF Quiz
Post by: emanuele on June 09, 2012, 11:42:38 AM
@mageguild: I logged in but I can't see where the quizzes are...

@crustybum: as far as I can tell there are several variants of this bug, one should be addressed by the file I uploaded a while ago, but that I realized now I removed and I don't know where I put...
Title: Re: SMF Quiz
Post by: mageguild on June 10, 2012, 04:14:41 AM
@mageguild: I logged in but I can't see where the quizzes are...

@crustybum: as far as I can tell there are several variants of this bug, one should be addressed by the file I uploaded a while ago, but that I realized now I removed and I don't know where I put...

I removed the link from the menu as they are not working.  You can access them here:  http://www.tennis-chat.com/SMFQuiz
Title: Re: SMF Quiz
Post by: emanuele on June 10, 2012, 05:00:14 AM
It seems you are using prettyURL (or equivalent), that could be one of the problems, because I get:
Quote
The requested file was not found on the server. This could be because it was deleted or it never existed in the first place. Often caused by misspellings of URLs.

Page Not Found
Requested URL: http://www.tennis-chat.com/SMFQuiz&sa=quizleagues&id=1
IIRC you can disable prettyURL by action, I'd suggest you to disable it for SMF Quiz.

ETA: apart from that, I got the error (you have already played...) the first time I accessed the league, but after that I didn't get it any more... :(
Title: Re: SMF Quiz
Post by: mageguild on June 10, 2012, 05:37:48 AM
It seems you are using prettyURL (or equivalent), that could be one of the problems, because I get:
Quote
The requested file was not found on the server. This could be because it was deleted or it never existed in the first place. Often caused by misspellings of URLs.

Page Not Found
Requested URL: http://www.tennis-chat.com/SMFQuiz&sa=quizleagues&id=1
IIRC you can disable prettyURL by action, I'd suggest you to disable it for SMF Quiz.

ETA: apart from that, I got the error (you have already played...) the first time I accessed the league, but after that I didn't get it any more... :(

Thanks for looking into this.  I am using a premium MOD for the URL structure which might be what is causing the issues.  The URL that you posted, if you change the & to a / it works fine (http://www.tennis-chat.com/SMFQuiz/sa=quizleagues&id=1). 

I will raise this issue with the person who built the mod I am running. 

Thanks again. 
Title: Re: SMF Quiz
Post by: emanuele on June 10, 2012, 06:53:32 AM
Thanks for looking into this.  I am using a premium MOD for the URL structure which might be what is causing the issues.  The URL that you posted, if you change the & to a / it works fine (http://www.tennis-chat.com/SMFQuiz/sa=quizleagues&id=1).
Yep, I did that to go to the league, but then I got the error the first time I tried to play, but after that I was presented with the quiz screen, but empty.

To all those having the "already played" problem, please try the attached file and let me know if it works.
Title: Re: SMF Quiz
Post by: crustybum on June 10, 2012, 11:54:15 AM
Cheers Emanuele,  will give this a try tomorrow and let you know how i get on. ;)

Chris
Title: Re: SMF Quiz
Post by: mageguild on June 10, 2012, 12:36:34 PM
Thanks for looking into this.  I am using a premium MOD for the URL structure which might be what is causing the issues.  The URL that you posted, if you change the & to a / it works fine (http://www.tennis-chat.com/SMFQuiz/sa=quizleagues&id=1).
Yep, I did that to go to the league, but then I got the error the first time I tried to play, but after that I was presented with the quiz screen, but empty.

To all those having the "already played" problem, please try the attached file and let me know if it works.

I have spoken with the author of the MOD that I use for the Pretty URLs.  They say that the issue being used here is the way URL's are being generated by this MOD.  The problem being that the MOD uses ampersands and not the SMF standard, semicolon.
Title: Re: SMF Quiz
Post by: Arantor on June 10, 2012, 12:43:39 PM
Using &id= will cause a lot of other problems anyway with users who have mod_security installed. Ideally the mod should be reworked to not use id= in any fashion, but yes, it should be converted to using SMF's standard ; instead.
Title: Re: SMF Quiz
Post by: fiesty on June 10, 2012, 01:03:07 PM
having used the smf quiz in an previous forum i had, i downloaded the new version of the quiz, to our current forum,
but when it came to installing it, i got an "error in package installation" which gave this error ,

   1.    Execute Modification    ./Sources/Who.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test successful
*    3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
*    4.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
*    5.    Execute Modification    ./index.php    Test successful
*    6.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add After    ./Sources/Subs.php    Test failed

      2.    Add After    ./Sources/Subs.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
*    8.    Execute Modification    ./Sources/ScheduledTasks.php    Test successful
*    9.    Execute Modification    ./Themes/default/languages/ManageScheduledTasks.english.php    Test successful
*    10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
*    11.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
*    12.    Execute Modification    ./Themes/default/css/index.css    Test successful


as can be seen from the above, it is something related to  /sources/subs.php
is this an easy fix (bearing in mind that my knowledge of this sort of stuff is minimal, to say the least!) or will it consist of a lot af alteration etc ?


the forum is running smf2.0.2 with simple portal 2.3.4 and around 20 other mods installed (any of which coul be causing a conflict ?)

any help much appreciated with this,

thanks,
fiesty
Title: Re: SMF Quiz
Post by: davejo on June 10, 2012, 02:42:13 PM
having used the smf quiz in an previous forum i had, i downloaded the new version of the quiz, to our current forum,
but when it came to installing it, i got an "error in package installation" which gave this error ,

   1.    Execute Modification    ./Sources/Who.php    Test successful
*    2.    Execute Modification    ./Sources/Admin.php    Test successful
*    3.    Execute Modification    ./Themes/default/languages/Who.english.php    Test successful
*    4.    Execute Modification    ./Themes/default/languages/index.english.php    Test successful
*    5.    Execute Modification    ./index.php    Test successful
*    6.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Add After    ./Sources/Subs.php    Test failed

      2.    Add After    ./Sources/Subs.php    Test successful
*    7.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
*    8.    Execute Modification    ./Sources/ScheduledTasks.php    Test successful
*    9.    Execute Modification    ./Themes/default/languages/ManageScheduledTasks.english.php    Test successful
*    10.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
*    11.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
*    12.    Execute Modification    ./Themes/default/css/index.css    Test successful


as can be seen from the above, it is something related to  /sources/subs.php
is this an easy fix (bearing in mind that my knowledge of this sort of stuff is minimal, to say the least!) or will it consist of a lot af alteration etc ?


the forum is running smf2.0.2 with simple portal 2.3.4 and around 20 other mods installed (any of which coul be causing a conflict ?)

any help much appreciated with this,

thanks,
fiesty

Hi it's possible that one of the other mods you have installed has put code in the same place that this mod needs to.

You will need to edit those files manuallyto install this mod.
Title: Re: SMF Quiz
Post by: fiesty on June 10, 2012, 02:52:20 PM


Hi it's possible that one of the other mods you have installed has put code in the same place that this mod needs to.

You will need to edit those files manuallyto install this mod.
[/quote]

Thanks for the reply,
i thought that might be the case, which is where the difficulties begin for me,
after looking at the sources/subs.php file i cannot even begin to see how and what needs changing there ?
what should i be looking for in that file that needs changing, and to change it to what ?

as i said my knowledge in this area is not at all good ::)

Fiesty
Title: Re: SMF Quiz
Post by: emanuele on June 10, 2012, 04:19:02 PM
Using &id= will cause a lot of other problems anyway with users who have mod_security installed. Ideally the mod should be reworked to not use id= in any fashion, but yes, it should be converted to using SMF's standard ; instead.
It's in the todo list (or at least I think it is)...though it's a bit long... :P

after looking at the sources/subs.php file i cannot even begin to see how and what needs changing there ?
what should i be looking for in that file that needs changing, and to change it to what ?
If you click on the small icon on the right next to the line where it says "test failed", SMF will show you the modification that fails.
Most likely you will have to search a shorter piece of text and than apply the change/s.

Otherwise try attach the file to a post here and someone will do the edits for sure. ;)
Title: Re: SMF Quiz
Post by: lttung on June 10, 2012, 11:25:46 PM
I have so many question from Word file (.doc), how to convert to XLM an import toQuiz ?
Title: Re: SMF Quiz
Post by: crustybum on June 11, 2012, 05:50:45 AM
Cheers Emanuele,  will give this a try tomorrow and let you know how i get on. ;)

Chris

Still didnt work....
Title: Re: SMF Quiz
Post by: emanuele on June 11, 2012, 06:09:20 AM
Could you provide an account? (user is enough)

@lttung unfortunately as far as I know there is no easy way...just the long one of typing all the questions.
The alternative would be to try to import the questions directly into the db.
Title: Re: SMF Quiz
Post by: fiesty on June 11, 2012, 04:20:12 PM
quiz now up and running thanks to the help from davejo & emanuele
the tip from emanuele being very helpfull re the small icon providing the clue as to which bit to edit  :D

which after a couple of small bloopers on my part (adding the extra code after () characters instead of before :-[) did the trick,

so many thanks to both for taking the time to put me on the right track,
its much appreciated  :D

fiesty.
Title: Re: SMF Quiz
Post by: davejo on June 12, 2012, 05:54:14 AM
glad to hear you got it working ok   :)
Title: Re: SMF Quiz
Post by: GlitchPC on June 18, 2012, 05:13:16 PM
Anyone???


xxxx://xxxxxxxx.xxx/index.php?action=profile
8: Undefined index: SMFQuiz_Common
File: /xxx/xxx/xxxxx/xxxxxxxx/xxxxxxxx/Sources/Who.php
Line: 389

Here's that line of code...
Code: [Select]
$data[$k] = $txt['SMFQuiz_Common']['InThe'] . ' <a href="' . $scripturl . '?action=SMFQuiz;">' . $txt['SMFQuiz_Common']['Quiz'] . '</a>';
Title: Re: SMF Quiz
Post by: emanuele on June 18, 2012, 05:22:48 PM
Most likely nobody ever looked at the credits... :P

In Who.php you can find:
Code: [Select]
// SMFQuiz start
global $settings, $scripturl;
// SMFQuiz end

change it to:
Code: [Select]
// SMFQuiz start
global $settings, $scripturl;
loadLanguage('SMFQuizCommon');
// SMFQuiz end
Title: Re: SMF Quiz
Post by: GlitchPC on June 18, 2012, 05:43:02 PM
Thanks...
Title: Re: SMF Quiz
Post by: lifeguard81 on July 05, 2012, 05:39:27 AM
Somebody has the dutch language?
Title: Re: SMF Quiz
Post by: MrMike on July 24, 2012, 05:36:07 PM
Wrong value type sent to the database. Integer expected. (id_category) is a result of not having a quiz made before you try and add questions. Took me a few hours to figure this one out myself  ;D

Thank you for posting this.
Title: Re: SMF Quiz
Post by: emanuele on July 25, 2012, 05:06:21 AM
Somebody has the dutch language?
I have only the English that comes with the mod... :(
Title: Re: SMF Quiz
Post by: MrMike on July 31, 2012, 07:23:05 PM
I love this mod, but I wish there was one thing I could change: you have to add questions to an already-existing quiz, you can't add a bunch of questions and then pick from the questions to make a quiz. :(

I already have a bank of ~20,000 quiz questions and answers, but I'd like to re-use some of the questions in different quizzes. As far as I can tell there doesn't seem to be any way to do that with this mod without entering the question again and again.
Title: Re: SMF Quiz
Post by: emanuele on August 02, 2012, 08:30:07 AM
I think it does make sense! I tracked it so I should not forget... lol

Of course as usual at the moment I'm working on "other" things... :P
As soon as I've finished there, I'll come back to this too! ;D
Title: Re: SMF Quiz
Post by: A{b}r{a}xa{s} on August 03, 2012, 06:16:32 AM
Installed this MOD and it looks great !
But although the settings i entered are that people should be able to play a quiz 3 times, it only works just 1 time giving a message (already played the amount of times you can play this quiz) when somebody tries to play a quiz for the second time ?
I have enabled the 'show answers' option, maybe this is causing the problem ?
Title: Re: SMF Quiz
Post by: emanuele on August 03, 2012, 03:59:31 PM
Yeah, that's a known problem, I think I posted something that should fix it a while ago but it doesn't seem to always work...it worked for me while testing, but not for others...
I'll investigate the problem as soon as I'll find a bit of time.
Of course if anyone has any idea feel free to post it here! ;D
Title: Re: SMF Quiz
Post by: A{b}r{a}xa{s} on August 04, 2012, 01:03:42 AM
OK, thanks !
Normal Quizzes work fine apart from this, so we can use them. :)
I'm now trying to set up a league, seems to work fine for me but keeps 'loading' when others try to play it.
Title: Re: SMF Quiz
Post by: emanuele on August 04, 2012, 07:34:36 AM
mmm...things that hangs in "loading" are the worse... >:(

If you can provide me an account (regular user should be more than enough) I can try to have a look.
Title: Re: SMF Quiz
Post by: A{b}r{a}xa{s} on August 04, 2012, 12:37:48 PM
I'll send you a private message with info about the account
Title: Re: SMF Quiz
Post by: A{b}r{a}xa{s} on August 04, 2012, 01:31:26 PM
Just tried setting up a league again and strangely it works for me, and my testaccount (admin rights) and a co-adminaccount. (same IP for al 3)
Created a 'normal' account and this didn't work. (same IP again).
Other normal users can play the quizzes but the league keeps 'loading' like previously.
Title: Re: SMF Quiz
Post by: The Silver Monkey on August 11, 2012, 08:46:03 PM
make open answers non-case specific. i.e. netherlands should be the same as Netherlands, especially when typing in less than 20 seconds.

And in addition to this, make open questions be able to accept multiple answers.
Title: Re: SMF Quiz
Post by: Booboy on August 12, 2012, 02:34:24 PM
Well, Iv tried to read wholle conversation, but still have question about "loading" issue...
I've installed mod, 10 quizes pack not only on default but on fresh look theme tho but when I or other member tries, "loading quiz" standing there and that is all.... any idea?
Title: Re: SMF Quiz
Post by: emanuele on August 12, 2012, 03:53:21 PM
Hello Booboy and welcome to sm.org. :)

The cause of "loading" issue is almost always different: it can be malformed javascript, it can be ads popping out in the wrong place, it can be some other mod do something it should not do, etc. (and in some cases like for A{b}r{a}xa{s} I still haev to find the cause because it appears to be a rather strange problem...)

What I usually ask is to send me the data of an account (regular user that can play a quiz) and of course an url to the forum so that I can check and see if I can find the issue. :)
Title: Re: SMF Quiz
Post by: Booboy on August 12, 2012, 04:38:30 PM
Hello Booboy and welcome to sm.org. :)

Thanks Emanuel, I just sent u PM. Hope u ll find the way ;)
Title: Re: SMF Quiz
Post by: emanuele on August 12, 2012, 04:51:43 PM
Your is the issue with fancy box...
One day or another I've to fix that too... :(
Title: Re: SMF Quiz
Post by: Booboy on August 12, 2012, 05:01:25 PM
Your is the issue with fancy box...
One day or another I've to fix that too... :(

Yahooooo! Thanks m8, ur the best and quick ;)
Working like charm

Thanks again
Title: Re: SMF Quiz
Post by: XHIBIT911 on August 20, 2012, 02:00:19 PM
I'm having issues with the league settings. Its probably something I've set wrong..so can someone show me how to correctly set the league up for different rounds ?
Title: Re: SMF Quiz
Post by: emanuele on August 20, 2012, 03:31:14 PM
What kind of issues?
Title: Re: SMF Quiz
Post by: XHIBIT911 on August 21, 2012, 12:53:55 AM
I know its the settings...the quiz league leaders only show for round 1...I know its something simple in the settings I just cant figure it out
Title: Re: SMF Quiz
Post by: emanuele on August 21, 2012, 06:49:02 AM
If the league proceeds (i.e. round 2, etc.), but the leader is always the same could be a problem of a scheduled task not triggered or that doesn't work at all.

Try going to admin > maintenance > scheduled tasks, you should find a scheduled task related to the quiz, try to run it manually and see if the league is updated.
Title: Re: SMF Quiz
Post by: mrselnombre on August 21, 2012, 07:34:35 AM
I would like to be able to call some of the information from my quiz statistics page to elsewhere on my forum.
Like Top 10 Quiz Winners to a block on my simple portal. Any tips on how to go about doing it?
Title: Re: SMF Quiz
Post by: FrizzleFried on August 21, 2012, 09:53:25 AM
Yeah,   a top 10 for a PHP block would rock!
Title: Re: SMF Quiz
Post by: XHIBIT911 on August 23, 2012, 11:55:21 PM
Quote
If the league proceeds (i.e. round 2, etc.), but the leader is always the same could be a problem of a scheduled task not triggered or that doesn't work at all.

Try going to admin > maintenance > scheduled tasks, you should find a scheduled task related to the quiz, try to run it manually and see if the league is updated.

Sources/ScheduledTasks.php on line 633

Fatal error: Call to undefined function parseleaguemessage
Title: Re: SMF Quiz
Post by: emanuele on August 24, 2012, 09:07:57 AM
mmm...that's strange.

XHIBIT911 could you please attach here your ScheduledTasks.php (Sources directory).


Not so strange, please check in your SMFQuizAdmin.php, line 307, there should be something like:
Code: [Select]
if (function_exists('ParseLeagueMessage'))
{
change it to:
Code: [Select]
if (!function_exists('ParseLeagueMessage'))
{
Title: Re: SMF Quiz
Post by: XHIBIT911 on August 24, 2012, 02:15:40 PM
Wow !
Thanks so much, that one solitary exclamation point fixed it all !
Thank you so much again
Title: Re: SMF Quiz
Post by: emanuele on August 24, 2012, 03:25:15 PM
/me has to fix that...
Title: Re: SMF Quiz
Post by: emanuele on August 26, 2012, 09:20:52 AM
Okay, uploaded a new "beta" version, it includes this last fix and some other fixes (or bugs, who know! :P).
Title: Re: SMF Quiz
Post by: XHIBIT911 on August 26, 2012, 10:37:13 AM
Is there an available php code for portal blocks that would call the Quiz Masters most wins category ?
Title: Re: SMF Quiz
Post by: vkot on August 27, 2012, 02:48:50 PM
I want to make a music quiz, the members will hear a few seconds from a song and will say which one it is.
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

I tried to install it but the installation gives me errors at smf2/modification.xml and it doesn't tell me the line numbers so that I can go and see for myself. Now, I have to check ALL search strings in the xml to find the errors?  :-\
Title: Re: SMF Quiz
Post by: emanuele on August 27, 2012, 03:11:15 PM
Did you download the "beta"?

Seems to install fine here.
Exactly what error did you get?
Title: Re: SMF Quiz
Post by: davejo on August 27, 2012, 03:20:37 PM
I want to make a music quiz, the members will hear a few seconds from a song and will say which one it is.
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

I looked at trying to do this myself but then went on to something else. The problem as I saw it was that the program uses JS script to run the quiz, so it would mean a script re-write to accommodate it.

I tried to install it but the installation gives me errors at smf2/modification.xml and it doesn't tell me the line numbers so that I can go and see for myself. Now, I have to check ALL search strings in the xml to find the errors?  :-\

All this means is that you have mods installed that have overwritten the default code that the quiz is trying to write to. Go back to the install and look at the templates that need manual code install.
Title: Re: SMF Quiz
Post by: vkot on August 27, 2012, 04:02:23 PM
Yes, I guess it's because of my installed mods, but the installation doesn't show me where exactly are the errors (like in other mods), so I'll have to check all changes in the modification.xml, from the beginning.

I had a quick look at the code. I guess I could put the mp3 filename as the question, and try to replace somehow like this:
echo $row['question_text']
with:
<embed type="application/x-shockwave-flash" src="http://blahblah/player.swf?audioUrl='.$row['question_text'].'" /></embed>

Title: Re: SMF Quiz
Post by: Kindred on August 27, 2012, 04:58:01 PM
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

You guess that would be an easy modification?   No, I don't think it would be easy at all....   Changing a text display to a "play an mp3" is not that easy... especially not within a script that is already doing a dozen things to display on the screen.
Title: Re: SMF Quiz
Post by: novill on August 28, 2012, 01:18:33 PM
Okay, uploaded a new "beta" version, it includes this last fix and some other fixes (or bugs, who know! :P).

If i guess well, this new version update (smf_quiz-1.1.1) does not repair the following error.

https://bitbucket.org/emanuele_smf_projects/smf-quiz/issue/18/utf8-and-iso-charsets

I've tried this new version, but i have the same problem with the characters.
Installation was successful without error.
Title: Re: SMF Quiz
Post by: emanuele on August 30, 2012, 12:21:18 PM
Oh no, sorry, but for that one I need a bit more time to check everything.
You can expect to find something related to charsets when the version will be 1.2. ;)
Title: Re: SMF Quiz
Post by: CapadY on September 13, 2012, 11:02:29 AM
I'm new with this MOD and still have to figure out a lot.

I want my moderators to be able adding quizzes so I gave them the permissions to do so.

So I made an test account with just moderator permissions to test it.
But, when I open SMF-Quiz in the main menubar I can't find a possibility to add a new quiz.
When I go to the Admin part in the main menu I can't find an option to add a quiz either. As a matter of fact, the whole quiz item isn't shown within the Admin menu.

Is there somebody who can explain me how I can let my moderators add Quizzes ?
Title: Re: SMF Quiz
Post by: emanuele on September 13, 2012, 11:09:40 AM
quiz > user quizzes
On that page on the left side at the bottom there is a "add new quiz" button.
Instead, for the admin page:
Admin > forum > quiz > quizzes
at the end of the table (on the left) there is a buttong "new quiz".
Title: Re: SMF Quiz
Post by: CapadY on September 13, 2012, 11:13:21 AM
It's to simple :s

Thank you very much :D
Title: Re: SMF Quiz
Post by: vkot on September 24, 2012, 04:56:14 PM
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

You guess that would be an easy modification?   No, I don't think it would be easy at all....   Changing a text display to a "play an mp3" is not that easy... especially not within a script that is already doing a dozen things to display on the screen.

I just installed the mod. As I imagined (and hoped), I just needed to put the html code in the question text. For example, I put:
Code: [Select]
<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://www.labnol.org/assets/mp3/unofficial-yahoo-song.mp3" src="http://google.com/reader/ui/3523697345-audio-player.swf" ></embed>and it works!  ;)
I just need to make the the question text field character limit higher.

I'm happy now! And also I'll translate the mod to greek.
Title: Re: SMF Quiz
Post by: kenso on October 02, 2012, 04:21:45 AM
Hi looks great! We have installed this mod but for some reason it stalls on the loading bar, how can we fix it?
Title: Re: SMF Quiz
Post by: emanuele on October 02, 2012, 04:26:43 AM
If you read the last three/four pages you'll find at least three to four similar cases with two to four different solutions.

It may be another javascript interfering with this, some character in a question or in an answer, a bug (unless I posted the fixed package, don't remember).
But, most important: which version are you using of the two available?
Title: Re: SMF Quiz
Post by: kenso on October 02, 2012, 04:34:59 AM
If you read the last three/four pages you'll find at least three to four similar cases with two to four different solutions.

It may be another javascript interfering with this, some character in a question or in an answer, a bug (unless I posted the fixed package, don't remember).
But, most important: which version are you using of the two available?

Sorry Man, I should have looked closer... It was the Fancybox 4. Working well now Thanks for your hard work with this should be fun!
Title: Re: SMF Quiz
Post by: emanuele on October 02, 2012, 05:18:42 AM
No problem. ;)

BTW I thought I fixed that one...

/me is becoming old... :P
Title: Re: SMF Quiz
Post by: FrizzleFried on October 02, 2012, 11:40:45 AM
I think this has been asked before... but can someone help out us hacks who have no clue what were doing who would love to see a PHP block to display the stats, top 10, etc... can anyone help?
Title: Re: SMF Quiz
Post by: CapadY on October 02, 2012, 11:50:03 AM
I guess that this script can easily be modified to play an audio file. Instead of displaying a string with a question, it could embed an mp3 player with the audio file. Right? Has anyone done this yet?

You guess that would be an easy modification?   No, I don't think it would be easy at all....   Changing a text display to a "play an mp3" is not that easy... especially not within a script that is already doing a dozen things to display on the screen.

I just installed the mod. As I imagined (and hoped), I just needed to put the html code in the question text. For example, I put:
Code: [Select]
<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://www.labnol.org/assets/mp3/unofficial-yahoo-song.mp3" src="http://google.com/reader/ui/3523697345-audio-player.swf" ></embed>and it works!  ;)
I just need to make the the question text field character limit higher.

I'm happy now! And also I'll translate the mod to greek.

Is there a similar trick to view videoclips ?

If there is, can you post a code example of it ?
Title: Re: SMF Quiz
Post by: emanuele on October 03, 2012, 09:13:04 AM
I think this has been asked before... but can someone help out us hacks who have no clue what were doing who would love to see a PHP block to display the stats, top 10, etc... can anyone help?
Don't think there is any at the moment, if anyone wants to write it feel free.
I'm still here, but...heck always working on something else... lol
Title: Re: SMF Quiz
Post by: vkot on October 04, 2012, 04:19:21 AM
Is there a similar trick to view videoclips ?

If there is, can you post a code example of it ?

Sure! Try this:

Code: [Select]
<iframe width="280" height="157" src="http://www.youtube.com/embed/39AIK-WIWAs?rel=0&autoplay=1&showinfo=0&autohide=1&controls=0&disablekb=0&end=20" frameborder="0"></iframe>
I used youtube's embed code, with a few adjustments: Notice that I have made the dimensions smaller (half of what youtube gave me) so that the video will fit, and I added some useful parameters to the URL. (see https://developers.google.com/youtube/player_parameters)
Title: Re: SMF Quiz
Post by: vkot on October 21, 2012, 02:43:45 PM
Are there any plans to make the question_text field (in the database and in the template) bigger than 255 characters? (which is even less with UTF-8). I think can do it for myself, but I was just wondering if I should wait for it in the next version.
Title: Re: SMF Quiz
Post by: emanuele on October 21, 2012, 02:46:53 PM
Feel free, unfortunately I'm more busy than expected with other things and I can't touch this one for the time being... :(
Feel also free to post instructions on how to do the same, so if others want to increase the size will have a guide. ;)
Title: Re: SMF Quiz
Post by: vkot on October 21, 2012, 05:46:23 PM
OK I did it. Here are the steps to increase question_text field size:

1) In table quiz_question, change question_text field type from varchar(255) to varchar(2000) or whatever you want. Just click & edit with phpMyAdmin, or use the command: ALTER TABLE quiz_question MODIFY question_text VARCHAR(2000);

2) In SMFQuizAdmin.template.php change:
Code: [Select]
<td align="left"><input type="text" name="question_text" maxlength="400" size="90"/></td>to:
Code: [Select]
<td align="left"><textarea name="question_text" cols="70" rows="5"></textarea></td>and
Code: [Select]
<td align="left"><input type="text" name="question_text" maxlength="400" size="90" value="' , format_string($row['question_text']) , '"/></td>to:
Code: [Select]
<td align="left"><textarea name="question_text" cols="70" rows="5">' , format_string($row['question_text']) , '</textarea></td>
Title: Re: SMF Quiz
Post by: Jessica. on October 27, 2012, 03:15:52 PM
Everything is working except for when you start a quiz. They just don't start. A pop up comes up...and both boxes are pitch black. Nothing loads up

EDIT: Oops I guess I can try to find the solution in this topic. Never mind!

EDIT #2: I can't figure it out...:/
Title: Re: SMF Quiz
Post by: davejo on November 23, 2012, 07:24:54 AM
I would like to thank vkot for giving us the ability to add mp3 files to questions. As an update regarding the playing of music files in questions I have done the following.

The code I have added as the question is as follows:

Quote
<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://the route to your mp3 file&autoPlay=true" src="http://google.com/reader/ui/3523697345-audio-player.swf" ></embed>

Notice I have added the '&autoPlay=true' following the route to the mp3 file, this enables the track to auto play once the button is pressed to start the quiz.

You can create a packge of the quizzes and they will be imported to another site and play without error, but please note that the link created for the track goes back to the site where the quiz question was originally created and is not stored on your site, this means that if the original site goes down your questions will not work (this is for mp3 tracks only, all other imported packages will work fine). I would suggest that you create your own tracks and put them in a similar folder on the root of your domain.

Well that's it if anyone needs any help let me know and Ill answer as soon as I can.


PS> It's worth noting that you can use any type of music file you want to, although I've only tested mp3, but need to set the file with the lowest Kbs file setting as possible so as not to increase your storage too much, the antmusic.mp3 file thats being used is 40Kbs and has a size of only 89kb and it's 17.6 seconds long.


UPDATE 07.10.2013. The code from Google is no longer supported, see this http://www.simplemachines.org/community/index.php?topic=293949.msg3619389#msg3619389

Title: Re: SMF Quiz
Post by: vkot on November 26, 2012, 05:50:34 PM
Yes, &autoPlay=true is necessary!

Anyway, today I discovered a strange problem. Some of the question answers were missing, and I spent too much time searching, editing, wondering why they couldn't be saved. I copy-pasted the text again and again, saved, but then when I checked the question, the answer text had disappeared. Finally I isolated the problem, there's something going on when the answer text contains one or both of the greek letters Γ and Δ. I changed them to small letters (γ and δ) and all is OK. I cannot imagine why this happens. Now that it's working, I don't want to search it anymore...  :-\
Title: Re: SMF Quiz
Post by: davejo on November 27, 2012, 03:25:34 AM
Yes, &autoPlay=true is necessary!

Anyway, today I discovered a strange problem. Some of the question answers were missing, and I spent too much time searching, editing, wondering why they couldn't be saved. I copy-pasted the text again and again, saved, but then when I checked the question, the answer text had disappeared. Finally I isolated the problem, there's something going on when the answer text contains one or both of the greek letters Γ and Δ. I changed them to small letters (γ and δ) and all is OK. I cannot imagine why this happens. Now that it's working, I don't want to search it anymore...  :-\

Glad you got it working OK vkot   :)

I have now managed to do 3 different beat the intro music quizzes and as I have every UK top 40 single since 1952 there are lots more to come  :laugh:
Title: Re: SMF Quiz
Post by: vkot on November 27, 2012, 04:36:47 AM
wow, davejo, nice! Can I have your quizzes?
(If you have cut/resampled the mp3s it would be nice for me to have them as well. If not, don't worry, I'll find them)
Title: Re: SMF Quiz
Post by: vkot on November 27, 2012, 02:08:38 PM
This is my code, for playing mp3s with the google player:

Code: [Select]
<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://xxxxx.xxx.xxx/xxxx.mp3&autoPlay=true" src="http://google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best"></embed>
I have added width="400" height="27" so that the player will not be too tall (causing the quiz window to have vertical scroll bar), and quality="best"
Title: Re: SMF Quiz
Post by: davejo on November 28, 2012, 06:11:46 AM
This is my code, for playing mp3s with the google player:

Code: [Select]
<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://xxxxx.xxx.xxx/xxxx.mp3&autoPlay=true" src="http://google.com/reader/ui/3523697345-audio-player.swf" width="400" height="27" quality="best"></embed>
I have added width="400" height="27" so that the player will not be too tall (causing the quiz window to have vertical scroll bar), and quality="best"

Thanks to vkot I have now found out that there is a limit to how many charachters you can put into the question. If you don't want to mess about with changing code/script to allow more charactures then I suggest you keep the path and title of the mp3 to a minimum.
Title: Re: SMF Quiz
Post by: fredcarrie on November 29, 2012, 07:24:46 AM
Hi Guys,

Great quiz, our users love it!

I  have 2 issues

1. I can import most  quizzes from the packages, but those with  lots of quizzes - like "music" (50 quizzes)  look like they are loading then I get a bank screen. Nothing is imported.  Smaller packages import fine.

2. First round of leagues worked fine, now on round 2  to  the quizzes won't load. This only happens with leagues, although I have set all normal quizzes to 1 play max. per  user.

I am using SMF Quiz 1.1.1 beta1

thanks


Title: Re: SMF Quiz
Post by: davejo on November 29, 2012, 08:22:14 AM
Hi Guys,

Great quiz, our users love it!

I  have 2 issues

1. I can import most  quizzes from the packages, but those with  lots of quizzes - like "music" (50 quizzes)  look like they are loading then I get a bank screen. Nothing is imported.  Smaller packages import fine.

2. First round of leagues worked fine, now on round 2  to  the quizzes won't load. This only happens with leagues, although I have set all normal quizzes to 1 play max. per  user.

I am using SMF Quiz 1.1.1 beta1

thanks

Hi fredcarrie and welcome to SMF,

Firstly I noticed the same problem the other day and I have now made those category items in smaller packages, I will attached them to a new post later today when I get home.

Secondly, did you read any other previous posts here about the 'leagues' if you do a search from the top of this page for leagues then all the posts containing that should be found. I personally haven't used the leagues so I don't know what the answer is but I do know that others have had problems in the same area.
Title: Re: SMF Quiz
Post by: fredcarrie on November 29, 2012, 09:00:38 AM
Thanks davejo!

I'll download the smaller packages later. You guys are the greatest!   :)

re- leagues - I have had a few odd things happening and I noticed the "perpetual loading"  issue goes away when I select just one category of quizzes for any league.
Title: Re: SMF Quiz
Post by: davejo on November 29, 2012, 03:51:28 PM
Thanks davejo!

I'll download the smaller packages later. You guys are the greatest!   :)

re- leagues - I have had a few odd things happening and I noticed the "perpetual loading"  issue goes away when I select just one category of quizzes for any league.

I don't know what you have and have not got so here is the whole package of over 500 quizzes. This does not include the music ones I have just created with the mp3 tracks.

I hope you have hours of fun ;)

Click me for quizzes (http://www.gardenguru.co.uk/download/Quiz Packages Updated 29.11.12.rar)
Title: Re: SMF Quiz
Post by: fredcarrie on November 29, 2012, 03:54:35 PM
Thanks Dave!  :)
Title: Re: SMF Quiz
Post by: mortymoose on December 04, 2012, 08:58:06 AM
Just wanted to thank you for resuming work on this mod.... eventually upgraded my forum to 2.0.2 and was over the moon to find out that this mod had been upgraded with it... thanks to all that have contributed to keeping this mod alive, really appreciate it......
 :D
Title: Re: SMF Quiz
Post by: Mr E S Stranger on December 05, 2012, 01:50:27 PM
Hey, really cool mod. Enjoying it thus far.

Only question: Is there a place to adjust the time per question in the quiz admin panel?

Edit: Figured it out. Just edit an individual quiz to change the amount of time each question receives.
Title: Re: SMF Quiz
Post by: FrizzleFried on December 05, 2012, 04:20:08 PM
Can anyone give me an idea where to look re: getting a blank white screen anytime I attempt to go to the Quiz Admin area?
Title: Re: SMF Quiz
Post by: emanuele on December 06, 2012, 07:57:17 AM
Most likely some (file) permission issue or a php syntax error...
Check the file permissions first.
Title: Re: SMF Quiz
Post by: EdWong on December 08, 2012, 12:22:59 PM
I've just installed this mod and there is something I don't understand.

What is the Play Limit option you could set for a quizz ?

First I set it to 3, thinking it was the number of times you could play a quizz. But when I play a quizz for a first time, the second try I got a popup saying me I have already played this quizz over the maximum amount of times allowed. I tried playing a day after, the same message appeared.

Now, it's probably something else, so I ask. What is the play limit option ?
Title: Re: SMF Quiz
Post by: emanuele on December 08, 2012, 12:35:48 PM
The meaning is the one you understood, but probably it doesn't work... again. ::)
Title: Re: SMF Quiz
Post by: Mr E S Stranger on December 11, 2012, 01:40:32 PM
Okay, everything was working well with this mod. Was trying it out again & now the quizzes never load.

The pop up appears and it's constantly in a state of loading but never finishes.

Any ideas?
Title: Re: SMF Quiz
Post by: davejo on December 11, 2012, 02:07:19 PM
Okay, everything was working well with this mod. Was trying it out again & now the quizzes never load.

The pop up appears and it's constantly in a state of loading but never finishes.

Any ideas?

Have a look here http://www.simplemachines.org/community/index.php?topic=293949.msg3388942;topicseen#msg3388942 and see if that helps.

As it says there, the problems normally stem from another program/mod using java that's preventing it from working properly. Have you installed anything recently that uses java? If so try removing it and see if that solves the problem.
Title: Re: SMF Quiz
Post by: Mr E S Stranger on December 11, 2012, 02:42:56 PM
Okay, everything was working well with this mod. Was trying it out again & now the quizzes never load.

The pop up appears and it's constantly in a state of loading but never finishes.

Any ideas?

Have a look here http://www.simplemachines.org/community/index.php?topic=293949.msg3388942;topicseen#msg3388942 and see if that helps.

As it says there, the problems normally stem from another program/mod using java that's preventing it from working properly. Have you installed anything recently that uses java? If so try removing it and see if that solves the problem.

Yeah, I was able to figure out that it's the FancyBox 4 SMF mod.

How would I go about getting these two mods to play nicely together?
Title: Re: SMF Quiz
Post by: davejo on December 11, 2012, 03:56:43 PM

Yeah, I was able to figure out that it's the FancyBox 4 SMF mod.

How would I go about getting these two mods to play nicely together?

I'm not sure if Emanuele is working on it or not, I suppose at the moment you have to look at what is your biggest priority...'FancyBox' or 'Quiz' sorry can't help any more than that.
Title: Re: SMF Quiz
Post by: Mr E S Stranger on December 11, 2012, 04:17:35 PM

Yeah, I was able to figure out that it's the FancyBox 4 SMF mod.

How would I go about getting these two mods to play nicely together?

I'm not sure if Emanuele is working on it or not, I suppose at the moment you have to look at what is your biggest priority...'FancyBox' or 'Quiz' sorry can't help any more than that.

If it were up to me, I'd go with the Quiz, but I don't pay the bills, so it's not up to me.

I'll PM Emanuele and see what he thinks about it.
Title: Re: SMF Quiz
Post by: FrizzleFried on December 11, 2012, 04:23:39 PM
There are other options than "FANCYBOX"... there are no other options for "QUIZ".  I encountered the same situation and decided to remove FancyBox.... I went with Highslide 4 SMF.... http://custom.simplemachines.org/mods/index.php?mod=2518

It plays nicely with Quiz.

Title: Re: SMF Quiz
Post by: Shades. on December 24, 2012, 10:33:48 AM
Thanks davejo!

I'll download the smaller packages later. You guys are the greatest!   :)

re- leagues - I have had a few odd things happening and I noticed the "perpetual loading"  issue goes away when I select just one category of quizzes for any league.

I don't know what you have and have not got so here is the whole package of over 500 quizzes. This does not include the music ones I have just created with the mp3 tracks.

I hope you have hours of fun ;)

Click me for quizzes (http://www.gardenguru-uk.co.uk/download/Quiz Packages Updated 29.11.12.rar)

The link for download says "This Site Is Unavailable". Where else can I download the 500 quiz package?
Title: Re: SMF Quiz
Post by: davejo on December 31, 2012, 10:13:46 AM
The link for download says "This Site Is Unavailable". Where else can I download the 500 quiz package?

The link has now been updated, Happy New Year ;)
Title: Re: SMF Quiz
Post by: Shades. on December 31, 2012, 03:08:58 PM
Thanks for this amazing mod.  Only found one thing so far.  The quiz.jpg image that is supposed to show on the main page is missing from the /images/quiz_images/Quizes directory.  It's not in todays archive.  Could you please just post that image?  Thanks.

I had issues uploading the mod with all the quiz/category images on the SMF site - it seemed to be a timeout issue due to its size. Therefore I have created a separate add-on mod that will install a load of images for you, along with some default categories. Please visit the following for more information:

http://www.smfmodding.com/index.php?action=downloads;cat=1

Thanks

Thanks davejo!

Is there an updated link for the default categories mod?
Title: Re: SMF Quiz
Post by: emanuele on January 01, 2013, 08:30:46 AM
In the first message of the topic there is a link to download few packs of quizzes. ;)
Title: Re: SMF Quiz
Post by: Shades. on January 19, 2013, 06:25:55 PM
In the first message of the topic there is a link to download few packs of quizzes. ;)
Yes, I know that but I'm looking for the category mod that was posted a while back. The posted link is broken! :o
http://www.smfmodding.com/index.php?action=downloads;cat=1
Title: Re: SMF Quiz
Post by: Kindred on January 19, 2013, 07:46:10 PM
that site has been gone for a long time (several years?) now...

and no, I don't think that anyone ever did anything with the categories pack
Title: Re: SMF Quiz
Post by: davejo on January 20, 2013, 03:58:03 AM
If you are going to use the quizzes I have uploaded then just look at the titles of the individual files and create the categories that are in the file name of the imported file i.e. 'Pack 1 (14 Quizzes - Animals, Birds, Fish).xml' = 'Animals, Birds, Fish'

There is no automatic way this happens as far as the installation of the quiz is concerned.

If you want the images that I have used for the categories then click on the 'Arcade & Quiz Site' link below click on the 'Categories' (see screen shot 'screencats.png' below) button then copy the images to your PC, you should copy the images before creating the 'Categories' or you will have to go back and edit them after.

 
Title: Re: SMF Quiz
Post by: crustybum on January 24, 2013, 05:40:32 AM
I have a problem regarding "leagues" it seems that no matter how many leagues i start it just gets stuck on the first round, i can see others have had the same problem...but i cant see a solution...anybody?
Title: Re: SMF Quiz
Post by: emanuele on January 24, 2013, 08:28:54 AM
I thought that problem was gone...are you using the "beta"?
I just installed the mod on a test site and I've started a league, the round last for a day, so tomorrow I'll be able to see if I can reproduce the thing.
Title: Re: SMF Quiz
Post by: crustybum on January 24, 2013, 08:45:38 AM
Cheers, yes using the beta, tried another on tuesday and and set it for 1 day...still same.
Title: Re: SMF Quiz
Post by: crustybum on January 25, 2013, 07:03:27 AM
Any update on this before my members start throwing things at me?  :laugh:
Title: Re: SMF Quiz
Post by: emanuele on January 27, 2013, 05:42:52 AM
Sorry for the late reply, you posted one hour before the end of the round and by the time the round should have updated I forgot the topic... :-[

I think I found at least one of the issues, I'll fix it in few hours.
Title: Re: SMF Quiz
Post by: crustybum on January 28, 2013, 08:51:51 AM
cheers!
Title: Re: SMF Quiz
Post by: emanuele on January 28, 2013, 03:17:13 PM
Sorry, but SMF security comes first. ;)

Darn, it was a bug I thought I fixed a long time ago... ::)

In SMFQuizAdmin.php, find:
Code: [Select]
if (function_exists('ParseLeagueMessage'))
{
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league)
{
global $user_settings, $scripturl;

// @TODO single replace
$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}
}
and replace it with:
Code: [Select]
function ParseLeagueMessage($message, $quizLeagueName, $oldPosition, $newPosition, $positionMovement, $id_quiz_league)
{
global $user_settings, $scripturl;

// @TODO single replace
$message = str_replace("{quiz_league_name}", $quizLeagueName, $message);
$message = str_replace("{old_position}", $oldPosition, $message);
$message = str_replace("{new_position}", $newPosition, $message);
$message = str_replace("{position_movement}", $positionMovement, $message);
$message = str_replace("{quiz_league_link}", $scripturl . '?action=SMFQuiz;sa=quizleagues;id=' . $id_quiz_league, $message);
return $message;
}
Title: Re: SMF Quiz
Post by: crustybum on January 29, 2013, 06:38:16 AM
OK..done all that...no one can play the second round..or do i need to start a new league?
Title: Re: SMF Quiz
Post by: crustybum on January 29, 2013, 11:57:22 AM
For some reason people can only play the leagues as well....not the other quizes...they and me get the dreaded "You have already played this game......." :-\
Title: Re: SMF Quiz
Post by: emanuele on January 29, 2013, 12:52:41 PM
Did you run the scheduled task to start the new round?
Title: Re: SMF Quiz
Post by: crustybum on January 30, 2013, 05:00:41 AM
Yes, started fresh
Title: Re: SMF Quiz
Post by: emanuele on January 31, 2013, 04:22:29 AM
Are you receiving the notifications (PMs) that the league has been updated?
Try to manually run the scheduled task, do you get any error?
Title: Re: SMF Quiz
Post by: crustybum on January 31, 2013, 05:52:27 AM
Are you receiving the notifications (PMs) that the league has been updated?
Try to manually run the scheduled task, do you get any error?

No notifications, and no errors..
Title: Re: SMF Quiz
Post by: novill on January 31, 2013, 08:38:49 AM
Thank you emanuele for your awesome work with this mod. It seems the localization problems is solved.

I translated this mod to my languages. But it seems that there are parts of the mod that is not in the languages directory. And i haven't find it. Can you help where can i find the rest.

I attached the hungarian language translation and a new gif. Thank you emanuel for your awesome work with this mod. It seems the localization problems is solved.

I translated this mod to my languages. But it seems that there are parts of the mod that is not in the languages directory. And i haven't find it.

I attached the hungarian language translation and a new gif.
Title: Re: SMF Quiz
Post by: novill on February 01, 2013, 10:16:03 AM
I can't find the next section.

Free Text 
Multiple Choice
True/False

It seems the other part of the quiz translation have i managed. Can someone show me where can i find the mentioned text? :o
Title: Re: SMF Quiz
Post by: davejo on February 02, 2013, 06:56:07 AM
I can't find the next section.

Free Text 
Multiple Choice
True/False

It seems the other part of the quiz translation have i managed. Can someone show me where can i find the mentioned text? :o

This text is found in the 'Scripts/QuizClient.js' file
Title: Re: SMF Quiz
Post by: emanuele on February 02, 2013, 08:19:48 AM
Are you receiving the notifications (PMs) that the league has been updated?
Try to manually run the scheduled task, do you get any error?

No notifications, and no errors..
Weird...it's working fine for me on a test site after the change...
Would it be possible to have a test account on your forum? (if you want give it the "manage quiz" permission)
Title: Re: SMF Quiz
Post by: cieplutki on February 04, 2013, 04:33:01 AM
How to create your own questions in the quiz, using xml template?

Title: Re: SMF Quiz
Post by: emanuele on February 08, 2013, 11:49:17 AM
Create the quizzes in the admin area, then go to admin > forum > quiz > quizzes, select the quizzes you want to pack (tick the checkbox on the left), fill the form at the end of the page (package name, package description, etc.) and finally click "package quiz". The download of the xml will start. ;)
Title: Re: SMF Quiz
Post by: novill on February 12, 2013, 03:30:07 PM
Is it possible that the questions following each other in random order?
Title: Re: SMF Quiz
Post by: novill on February 17, 2013, 05:15:37 AM
Is there a possibility that the quiz shows always the best result the members. Now the first result is in the scoreboard. If i set the quiz repeat time higher than 1 and the member repeat the quiz get a better result the first worse result is in the scoreboard.
Title: Re: SMF Quiz
Post by: davejo on February 17, 2013, 05:54:19 AM
Hi Novill,

Where do you see this info? Please show screenshot.
Title: Re: SMF Quiz
Post by: novill on February 20, 2013, 02:57:35 PM
Thanks for your reply.

The attached pictures (teszt stat pic) shows that result, that i have made in the first time when i finished the quiz. I started again that quiz, finished it with a better result. I needed less time to finish this quiz, but the score table shows the old time. (I have made without error the quiz)

I think for this reason is that the main page of the quiz site aren't showing the new better result in the quiz master section. (teszt fo)
Title: Re: SMF Quiz
Post by: davejo on February 21, 2013, 08:14:11 AM
Thanks for your reply.

The attached pictures (teszt stat pic) shows that result, that i have made in the first time when i finished the quiz. I started again that quiz, finished it with a better result. I needed less time to finish this quiz, but the score table shows the old time. (I have made without error the quiz)

I think for this reason is that the main page of the quiz site aren't showing the new better result in the quiz master section. (teszt fo)

The images you show there are related to the overall scores of all quizzes.

The person with the most correct answers for ALL quizzes is on the top = Gold, 2nd from top = Silver, 3rd from top = bronze.

Even if you did the quiz again and beat your own score but did not beat the persons score/time in the 'Gold' position you would still not go any higher up the table.

I hope you understand what I mean.
Title: Re: SMF Quiz
Post by: emanuele on February 21, 2013, 09:27:35 AM
The attached pictures (teszt stat pic) shows that result, that i have made in the first time when i finished the quiz. I started again that quiz, finished it with a better result. I needed less time to finish this quiz, but the score table shows the old time. (I have made without error the quiz)
The scores are based on the first time you play a quiz.
I think it's legit, because, obviously, the second time you should/could already know the answers to all the questions and it would be just a matter of being "faster".

BTW: did anyone try the new beta? Did you still have issues with the leagues? In my test site I got all the rounds properly one after the other, though it may just be I've been lucky...
Title: Re: SMF Quiz
Post by: novill on February 21, 2013, 03:06:51 PM
The scores are based on the first time you play a quiz.

That's the point, the user in my forum are very pride (electrical people :) ), they think that a worse result is bad for them. And for that reason they don't play with the quizes.

BTW: did anyone try the new beta? Did you still have issues with the leagues? In my test site I got all the rounds properly one after the other, though it may just be I've been lucky...

Thanks for the hint i used the 1.1.1 beta1, i will test the new beta it in my test site.
Title: Re: SMF Quiz
Post by: davejo on February 21, 2013, 03:27:15 PM
The scores are based on the first time you play a quiz.

davejo has learnt something new today...always learning ;)
Title: Re: SMF Quiz
Post by: emanuele on February 21, 2013, 04:19:52 PM
That's the point, the user in my forum are very pride (electrical people :) ), they think that a worse result is bad for them. And for that reason they don't play with the quizes.
Tracked.
https://bitbucket.org/emanuele_smf_projects/smf-quiz/issue/26/option-for-update-best-scores
No idea when I'll be able to update it.
Title: Re: SMF Quiz
Post by: sangham.net on February 23, 2013, 01:39:23 AM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsangham.net%2FSmileys%2Fthumb_sangham.gif&hash=bb51f8437ca3e6cb339bfe19d0bbd66d) Great mod, even useable for studies and scholar work. Thanks a lot for supplying this!

If there is an interest to have the menu and text also in German, please let me know. It would be a honor to pay this great work a little back in this way as well.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsangham.net%2FSmileys%2Fsadhu_sangham.gif&hash=0d556c6f3cb090a2e5fb1d5b0182cf1a)
Title: Re: SMF Quiz
Post by: cieplutki on April 03, 2013, 06:07:26 PM
Hi,

how to remove the disputed questions, I click when I select and delete - nothing happens.

help
Title: Re: SMF Quiz
Post by: emanuele on April 04, 2013, 08:59:46 AM
It may be a bug...is there any error in the log that can be related?
Title: Re: SMF Quiz
Post by: cieplutki on April 04, 2013, 04:44:25 PM
log clean, no reaction when i cklick on "Delete Quiz Dispute"
Title: Re: SMF Quiz
Post by: emanuele on April 05, 2013, 04:23:44 PM
mmm...strange, I just tried on my local test forum and it works...are you using the "beta" version or the previous?
Title: Re: SMF Quiz
Post by: cieplutki on April 06, 2013, 03:23:40 AM
beta version and mod Pretty URLs
Title: Re: SMF Quiz
Post by: LadyAngel on April 25, 2013, 05:13:51 PM
Wrong value type sent to the database. Integer expected. (id_category) is a result of not having a quiz made before you try and add questions. Took me a few hours to figure this one out myself  ;D

Thank you for posting this.
Thank you, too!  ;D
Title: Re: SMF Quiz
Post by: quiz_modder on May 13, 2013, 07:13:28 AM
Wow, nice to see this is still going and people have developed it further. Hats off to you.
Title: Re: SMF Quiz
Post by: sangham.net on May 13, 2013, 09:13:45 AM
quiz_modder

Like if you plant a small tree with good effort, love and all necessaries, you will ever enjoy to see it grow and you will enjoy to see the birds living on it and people sitting in its shade.

That is a fruit of generosity. A pleasure and joy righteous gained.

Much sympathetic joy and thank again for your work! As well thank to all others who keep this tree alive and nourish it.

Remember always you good deeds and keep the wish to do it again always in your mind.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsangham.net%2FSmileys%2Fsadhu_sangham_sw.gif&hash=2f20b7a1fba164e0e0a800429413d476)
Title: Re: SMF Quiz
Post by: colby2152 on May 13, 2013, 09:49:35 AM
I'm not sure who is keeping up with this mod, but I am hoping to get BBC support for the quiz screens.  PAID support request here: http://www.simplemachines.org/community/index.php?topic=503717.0
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 15, 2013, 04:39:38 AM
I know its probably been mentioned for but I had a quick scan and I couldn't see a solution, I get this error message when I try to play a quiz

An unexpected parser error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error.

Any help would be appreciated.

Thanks
Title: Re: SMF Quiz
Post by: emanuele on May 15, 2013, 08:05:17 AM
Wow, nice to see this is still going and people have developed it further. Hats off to you.
Hey quiz_modder!
Nice to see you around! :D

I'm way behind my original schedule for the mod, though it's not something new I can't keep up with my plans... :P

@colby2152: I am trying to maintain the mod, add bbc support shouldn't be too difficult (it should just be a matter of use preparsecode and parse_bbc where needed).

@DomesticCricketForum: mmm...do you have other mods installed?
Title: Re: SMF Quiz
Post by: colby2152 on May 15, 2013, 09:58:45 AM
@emanuele: Sounds good; I'll send a donation your way when it is ready.
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 15, 2013, 12:34:18 PM
Yes I have other mods installed, which ones interfere with it?
Title: Re: SMF Quiz
Post by: TheListener on May 15, 2013, 12:38:18 PM
Yes I have other mods installed, which ones interfere with it?

Do you really expect Emanuele to know the answer when he doesn't know which mods you have installed on your forum?

A list of the installed mods would be a big help here.
Title: Re: SMF Quiz
Post by: TheListener on May 15, 2013, 12:39:54 PM
Quote
though it's not something new I can't keep up with my plans... :P

Someone will have to stand behind you with a whip Manny  :D
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 15, 2013, 03:41:27 PM
Here is a list then

1.    Next Post Level    1.3.3    [ Uninstall ] [ List Files ] [ Delete ]
2.    Customize *Child Board*    2.7    [ Uninstall ] [ List Files ] [ Delete ]
3.    Add Facebook Like, Tweet, and Google +1    1.0.3a    [ Install Mod ] [ List Files ] [ Delete ]
4.    Move Topic Notification    1.2    [ Uninstall ] [ List Files ] [ Delete ]
5.    eNinja - Custom Pages    1.0.12    [ Uninstall ] [ List Files ] [ Delete ]
6.    Float BBCODE    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
7.    Advanced Login Form    1.2.2    [ Uninstall ] [ List Files ] [ Delete ]
8.    SMF Quiz    1.1.0    [ Uninstall ] [ List Files ] [ Delete ]
9.    Tapatalk SMF 2.0 RC5/Final Plugin    3.5.0    [ Uninstall ] [ List Files ] [ Delete ]
10.    Birthday On Register    1.0    [ Uninstall ] [ List Files ] [ Delete ]
11.    Member Color Link    3.1    [ Uninstall ] [ List Files ] [ Delete ]
12.    Menu Editor Lite    1.0.5    [ Uninstall ] [ List Files ] [ Delete ]
13.    View Voters at Polls    1.0    [ Uninstall ] [ List Files ] [ Delete ]
14.    Remove XHTML, RSS & WAP2 Links in Footer    v1.1    [ Uninstall ] [ List Files ] [ Delete ]
15.    SMFPacks Likes Pro Mod    1.3.8    [ Uninstall ] [ List Files ] [ Delete ]
16.    SMFPacks Alerts Pro    2.0.5    [ Uninstall ] [ List Files ] [ Delete ]
17.    Enhanced About Page    0.02    [ Uninstall ] [ List Files ] [ Delete ]
18.    PM to New Members    1.2    [ Uninstall ] [ List Files ] [ Delete ]
19.    Back To The Index    0.4    [ Uninstall ] [ List Files ] [ Delete ]
20.    SMFPacks Shoutbox    1.0.4    [ Uninstall ] [ List Files ] [ Delete ]
21.    Invitation Message In Your Face (IMIYF)    0.3.1    [ Uninstall ] [ List Files ] [ Delete ]
22.    Footer Menu v.1    v.1    [ Uninstall ] [ List Files ] [ Delete ]
23.    Permissions Info    1.6    [ Uninstall ] [ List Files ] [ Delete ]
24.    Add Social Media Icons To Profiles    1.0.8    [ Uninstall ] [ List Files ] [ Delete ]
25.    Peoplesign    1.6    [ Uninstall ] [ List Files ] [ Delete ]
26.    Aeva Media    1.4w    [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 19, 2013, 06:06:42 AM
I listed the mods as required has this been any help?
Title: Re: SMF Quiz
Post by: emanuele on May 19, 2013, 08:36:01 AM
Of the entire list the only one I know is AEVA.

Send me the details of an account that can play quizzes and I'll check.
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 19, 2013, 01:41:11 PM
Ive sent you a PM with the details of an account in. Thanks
Title: Re: SMF Quiz
Post by: emanuele on May 20, 2013, 07:40:28 AM
Code: [Select]
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-39758066-1', 'domesticcricketforum.com');
  ga('send', 'pageview');

</script>

You have put this somewhere you should not (e.g. index.php).
Put it properly in the template and it will work.
Title: Re: SMF Quiz
Post by: emanuele on May 20, 2013, 10:46:58 AM
how come something has been installed in the wrong place when I used the package installer?
Considering none of the above mods is related to google analytics I can only guess you added that code manually by yourself...
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 20, 2013, 11:45:32 AM
Didnt read your message properly... its been a long day! ::)
Title: Re: SMF Quiz
Post by: emanuele on May 20, 2013, 12:33:10 PM
No problem. ;)
From time to time I also don't express myself so clearly... (I have a quite good score of overly-complicated sentences that sound correct when I'm writing them and afterwards...well... :P)
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 20, 2013, 02:40:14 PM
It wasnt your fault, I just skim read, anyway thanks for your help I will let you know if it works

Edit: IT WORKS!!  ;D
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 22, 2013, 06:21:52 PM
Sorry for the double post but is there any way you can change the wording on the homepage of the quiz mod? Would it involve editing on the ftp?
Title: Re: SMF Quiz
Post by: emanuele on May 23, 2013, 05:40:17 AM
It's the SMFQuiz.template.php file I think, it's a while I don't touch the mod and I don't have it in front of me at the moment... :(
Title: Re: SMF Quiz
Post by: ViewFromTheBoundary on May 23, 2013, 06:29:17 AM
Ok thanks will have a look through it tonight and see what i can do
Title: Re: SMF Quiz
Post by: colby2152 on May 23, 2013, 11:22:59 AM
@colby2152: I am trying to maintain the mod, add bbc support shouldn't be too difficult (it should just be a matter of use preparsecode and parse_bbc where needed).

emanuele, when do you expect to have the mod updated to parse BBC?  Thanks!
Title: Re: SMF Quiz
Post by: emanuele on May 23, 2013, 12:44:29 PM
TBH no idea.
Title: Re: SMF Quiz
Post by: colby2152 on May 23, 2013, 01:22:36 PM
TBH no idea.

As previously mentioned, I would pay for this, so I would donate money to you if this was to be done.
Title: Re: SMF Quiz
Post by: colby2152 on June 12, 2013, 01:24:40 PM
TBH no idea.

As previously mentioned, I would pay for this, so I would donate money to you if this was to be done.

Bump...

Also, I have a few questions.

1) How does one edit the Question Type or Quiz Assignment of an already made question?
2) Can a Quiz be setup to take X random questions from multiple quizzes?
Title: Re: SMF Quiz
Post by: webewitch on June 24, 2013, 07:32:49 AM
2 things:

How does the Quiz Leagues work? - can someone explain this to me please?

I've made an audio quiz with 30 second clips - how do I go about making this available to this forum?

Oh and by the way - This is a great mod - thanks and congratulations to emanuele and the others that have tweaked and fine tuned it - great job !
Title: Re: SMF Quiz
Post by: emanuele on June 24, 2013, 08:59:56 AM
Hello webewitch,

...mmm...I don't know exactly.
At the moment the "importer" that I put together import/exports only the questions and the image of the quizzes, nothing else..

First of all, may I ask you what kind of audio files are they?
Title: Re: SMF Quiz
Post by: webewitch on June 24, 2013, 12:43:14 PM
mp3s

e.g. http://www.fuerteventura-forum.com/music/bsab5.mp3


Title: Re: SMF Quiz
Post by: Kindred on June 24, 2013, 12:44:36 PM
I think that you would need a special player to play MP3s on your site...

the only audio/video files that play, natively, in the browser (that I know about) are swf flash files...
Title: Re: SMF Quiz
Post by: webewitch on June 24, 2013, 12:54:43 PM
There isn't a problem with them playing.

I use the format suggested by someone else in this topic

eg the 'question' for that clip is:

<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://www.fuerteventura-forum.com/music/bsab5.mp3&autoPlay=true" src="http://google.com/reader/ui/3523697345-audio-player.swf" ></embed>

... and the answer is multiple choice listing 5 bands.
There are 14 similar questions in the quiz.

No-one has had a problem with it so far.
Title: Re: SMF Quiz
Post by: emanuele on June 24, 2013, 12:59:42 PM
Well, I was more thinking that if the audio files are pieces of songs protected by some kind of copyright I'm not sure if it is a good idea to share them here even if they are only 30 seconds samples. ;)
Title: Re: SMF Quiz
Post by: webewitch on June 24, 2013, 01:03:46 PM
You have a good point.

Although in reality I can't see anyone complaining loudly, legally they are all subject to copyright.

Maybe I should just leave it.

Quote
I use the format suggested by someone else in this topic
btw - this was the post that showed the code:
http://www.simplemachines.org/community/index.php?topic=293949.msg3442413;topicseen#msg3442413

Oh and while I have emanuele's interest ...
It took me several days after installing this mod to discover the wealth of quizzes in store at:
https://bitbucket.org/emanuele_smf_projects/smf-quiz/wiki/Home
----there are 41 pages of this topic to dig through to find that treasure trove!

May I humbly suggest you include a link to them in your first post? It would help newbies like me.
Title: Re: SMF Quiz
Post by: Manicred on June 25, 2013, 03:12:56 PM
Hi,

I've been getting the following error:

You have already played this quiz league over the maximum amount of times allowed for this round Please return when the next round starts.

I've searched the thread but not found a solution. Any ideas anyone?
Title: Re: SMF Quiz
Post by: emanuele on June 25, 2013, 05:11:16 PM
This is the message you (should) get when you have played a league round and you have to wait until the next starts (when the next starts depends on the time you set while configuring the league).

So, did you completed the league round once or are you getting this error at the first try?
Title: Re: SMF Quiz
Post by: Manicred on June 25, 2013, 05:47:00 PM
This is the message you (should) get when you have played a league round and you have to wait until the next starts (when the next starts depends on the time you set while configuring the league).

So, did you completed the league round once or are you getting this error at the first try?
I'm getting this error on the first attempt. have never played these quizzes and I get this. Its the pack that was uploaded here.
Title: Re: SMF Quiz
Post by: nsno on July 03, 2013, 01:40:16 PM
is there a way that questions can be asked for events that have not yet happened, and for an admin to input the answers once the event has happened?

I would like to use this as a "team selection" game where users predict what team will start a football match, and once the actual starting line-up is revealed they get a point for each correct player
Title: Re: SMF Quiz
Post by: TheListener on July 03, 2013, 01:41:28 PM
I believe that won't be possible with this mod.
Title: Re: SMF Quiz
Post by: nsno on July 03, 2013, 01:45:44 PM
that's a shame

anyone fancy a quick paid enhancement?
Title: Re: SMF Quiz
Post by: TheListener on July 03, 2013, 01:49:30 PM
that's a shame

anyone fancy a quick paid enhancement?

Only the mod author or whomever maintains the mod can do so.

I would suggest you make a mod request topic in the appropriate board.

 :)
Title: Re: SMF Quiz
Post by: Kindred on July 03, 2013, 02:17:17 PM
Actually, Fossil, ANYONE can make an enhancement... even a paid enhancement.
The only restrictrion would ever be on DISTRIBUTING it...
(and, I believe that the original author of this mod released the code into the public domain)


As your your request nsno...   what you are asking for is potentially a complete rewrite, since the existing mod does not have anything coded to even start to handle your request.
Title: Re: SMF Quiz
Post by: emanuele on July 03, 2013, 06:34:30 PM
I would like to use this as a "team selection" game where users predict what team will start a football match, and once the actual starting line-up is revealed they get a point for each correct player
Why not just use a poll?
In case there is a mod to allow multiple polls per topic.
Title: Re: SMF Quiz
Post by: nsno on July 06, 2013, 08:51:30 AM
I would like to use this as a "team selection" game where users predict what team will start a football match, and once the actual starting line-up is revealed they get a point for each correct player
Why not just use a poll?
In case there is a mod to allow multiple polls per topic.

that would work to see what the general opinion was, but wouldn't award points to individual "voters" if they got things right
Title: Re: SMF Quiz
Post by: lucy453 on August 01, 2013, 07:54:03 AM
Hello,

I'm French so sorry for my english  :-[

I have a soucy with this mod, how to know what does not work please?

PS: I don't have "fancybox", I read the previous posts

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fnsa33.casimages.com%2Fimg%2F2013%2F08%2F01%2F130801015729728655.png&hash=af37ef407ea404aee6be82c851fad614)
Title: Re: SMF Quiz
Post by: 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)
Title: Re: SMF Quiz
Post by: emanuele on August 29, 2013, 04:12:43 PM
I have a soucy with this mod, how to know what does not work please?

PS: I don't have "fancybox", I read the previous posts

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fnsa33.casimages.com%2Fimg%2F2013%2F08%2F01%2F130801015729728655.png&hash=af37ef407ea404aee6be82c851fad614)
I'm really sorry lucy453 I didn't see your message before! :-[ :-[
Can you create an account for me so that I can check it directly?

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. ;)
Title: Re: SMF Quiz
Post by: webewitch on September 05, 2013, 08:07:59 AM
Quote
Quote 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.
Unless I've misunderstood, I don't think a scheduled task should be necessary.
There are two factors :
Session Replay Time (minutes) - easily changed globally in Settings
Play Limit - has to be done individually - as far as I can see.

My play limits are all set to 1 - I'd like to change that to e.g. 12 - but globally
Title: Re: SMF Quiz
Post by: quiz_modder on September 11, 2013, 03:03:01 PM
(and, I believe that the original author of this mod released the code into the public domain)

Yes, I did
Title: Re: SMF Quiz
Post by: webewitch on September 16, 2013, 08:06:27 AM
Quote
Quote 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  :)
Title: Re: SMF Quiz
Post by: stelios2 on September 18, 2013, 01:09:11 PM
Hi, i have installed this mod successfully on an 2.0.5 forum ,, everything seems to work properly except when i try to play a quiz the pop up window keeps loading with no content inside ....(?)
Title: Re: SMF Quiz
Post by: webewitch on October 07, 2013, 06:14:45 AM
Quote
Quote 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  :)
Title: Re: SMF Quiz
Post by: davejo on October 07, 2013, 07:06:04 AM
Hi, i have installed this mod successfully on an 2.0.5 forum ,, everything seems to work properly except when i try to play a quiz the pop up window keeps loading with no content inside ....(?)

Do you have 'Fancy Box' installed as this is a know problem with the quiz mod?

Title: Re: SMF Quiz
Post by: davejo on October 07, 2013, 07:52:21 AM
Quote
Quote 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

Code: [Select]
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.

Title: Re: SMF Quiz
Post by: davejo on October 07, 2013, 10:48:40 AM
I would like to thank vkot for giving us the ability to add mp3 files to questions. As an update regarding the playing of music files in questions I have done the following.

The code I have added as the question is as follows:

Quote
<embed type="application/x-shockwave-flash" flashvars="audioUrl=http://the route to your mp3 file&autoPlay=true" src="http://google.com/reader/ui/3523697345-audio-player.swf" ></embed>

Notice I have added the '&autoPlay=true' following the route to the mp3 file, this enables the track to auto play once the button is pressed to start the quiz.

You can create a packge of the quizzes and they will be imported to another site and play without error, but please note that the link created for the track goes back to the site where the quiz question was originally created and is not stored on your site, this means that if the original site goes down your questions will not work (this is for mp3 tracks only, all other imported packages will work fine). I would suggest that you create your own tracks and put them in a similar folder on the root of your domain.


or use the 'Quiz Importer' and add the attached 'test music mp3.xml' below and import it as a new quiz. I have used the 'Multiple Choice' for the 'Question Type' I have also set it for 'Play Limit' 20 just so the question can be tested over and over again with tweaking where it's needed.


PS> It's worth noting that you can use any type of music file you want to, although I've only tested mp3, but need to set the file with the lowest Kbs file setting as possible so as not to increase your storage too much, the antmusic.mp3 file thats being used is 40Kbs and has a size of only 89kb and it's 17.6 seconds long.

Please note that the link
Code: [Select]
http://google.com/reader/ui/3523697345-audio-player.swf is no longer supported by Google.

If you want to still use the audio quizzes then you need to upload a player to a folder/root of your website and then edit the link to h**p://www.mysite/folder/miniplayer.swf

I am using the player attached below

right click 'save target as' (http://www.gamezfix.com/miniplayer.swf)

Title: Re: SMF Quiz
Post by: stelios2 on October 17, 2013, 04:31:46 AM
Hi, i have installed this mod successfully on an 2.0.5 forum ,, everything seems to work properly except when i try to play a quiz the pop up window keeps loading with no content inside ....(?)

Do you have 'Fancy Box' installed as this is a know problem with the quiz mod?

un installed fancy box and problem solved !
but still when adding a new quiz, titles, questions and answers dont show in my language
i use ISO-8859-7
Title: Re: SMF Quiz
Post by: davejo on October 17, 2013, 07:36:25 AM
Hi, i have installed this mod successfully on an 2.0.5 forum ,, everything seems to work properly except when i try to play a quiz the pop up window keeps loading with no content inside ....(?)

Do you have 'Fancy Box' installed as this is a know problem with the quiz mod?

un installed fancy box and problem solved !
but still when adding a new quiz, titles, questions and answers dont show in my language
i use ISO-8859-7

As far as I know the only language that's supported is English. Have a look in the SMFQuiz 'Language' folder to see if there is a 'SMFQuiz.yourlanguage.php' file if not then it's english only until someone creates a new language file for you.
Title: Re: SMF Quiz
Post by: stelios2 on October 18, 2013, 02:55:54 AM
I mean that when i am adding a new quiz using my default forum char encoding (iso-8859-7) greek, when i save it  , title, questions and everything is written in iso-8859-7 (gr) dont show .  :)
Title: Re: SMF Quiz
Post by: davejo on October 18, 2013, 07:56:24 AM
I mean that when i am adding a new quiz using my default forum char encoding (iso-8859-7) greek, when i save it  , title, questions and everything is written in iso-8859-7 (gr) dont show .  :)


Sorry Stelios I have no idea why it's doing that or even what that means.
Title: Re: SMF Quiz
Post by: stelios2 on October 18, 2013, 12:05:00 PM
I think it doesnt save data in db if its in character encoding 8859-7 Greek  :o
Title: Re: SMF Quiz
Post by: vkot on October 23, 2013, 04:27:34 AM
When you mix latin & greek characters in a question, the latin show up? The greek are blanks? or spaces? or other strange characters? Do you see the content in the database? (with phpMyAdmin) What is the encoding of the database and the tables?
Title: Re: SMF Quiz
Post by: stelios2 on October 23, 2013, 06:07:18 AM
When you mix latin & greek characters in a question, the latin show up? The greek are blanks? or spaces? or other strange characters? Do you see the content in the database? (with phpMyAdmin) What is the encoding of the database and the tables?

when i mix greek latin nothing shows up ...quiz saves as blank
i see greek quiz in database as blank as well
encoding of tables in db is latin1_sweedish_ci
Title: Re: SMF Quiz
Post by: stelios2 on October 29, 2013, 05:43:53 AM
When you mix latin & greek characters in a question, the latin show up? The greek are blanks? or spaces? or other strange characters? Do you see the content in the database? (with phpMyAdmin) What is the encoding of the database and the tables?

when i mix greek latin nothing shows up ...quiz saves as blank
i see greek quiz in database as blank as well
encoding of tables in db is latin1_sweedish_ci

i have solved the saving in greek questions, titles, answers -  error .. by replacing all the 'utf-8' to 'latin1_sweedish_ci' from SMFQuizDb.php file.

for example:
Code: [Select]
array(
'id_answer' => $id_answer,
'answer_text' => $smcFunc['db_escape_string'] (htmlspecialchars($answer_text, ENT_QUOTES, 'utf-8')),
'is_correct' => $is_correct,
'updated' => $updated
));

made to
Code: [Select]
array(
'id_answer' => $id_answer,
'answer_text' => $smcFunc['db_escape_string'] (htmlspecialchars($answer_text, ENT_QUOTES, 'latin1_swedish_ci')),
'is_correct' => $is_correct,
'updated' => $updated
));

But now when i try to play a "greek" quiz i have "An unexpected parser error has occured while retreiving data from the server"

any ideas ?  :-\
Title: Re: SMF Quiz
Post by: emanuele on October 29, 2013, 10:55:01 AM
Not a good idea.

Don't know about the questions already in the database, but try replacing all these db_escape_string with something like:
Code: [Select]
'answer_text' => $smcFunc['htmlspecialchars']($answer_text, ENT_QUOTES),
Title: Re: SMF Quiz
Post by: stelios2 on October 29, 2013, 01:07:07 PM
Not a good idea.

Don't know about the questions already in the database, but try replacing all these db_escape_string with something like:
Code: [Select]
'answer_text' => $smcFunc['htmlspecialchars']($answer_text, ENT_QUOTES),

i did that ... same thing ....  :(
Title: Re: SMF Quiz
Post by: emanuele on October 29, 2013, 01:10:09 PM
Is there in the error log something related?
Title: Re: SMF Quiz
Post by: stelios2 on October 29, 2013, 01:32:02 PM
Is there in the error log something related?

nop nothing ... why is there a parser error when retrieving data for quiz in greek ?
the tables are fine after the last fix .... it`s a mystery   ???
Title: Re: SMF Quiz
Post by: emanuele on October 30, 2013, 06:57:07 AM
It's probably because the strings are not properly formatted and the resulting xml is wrong.

I should have a look at the xml, if you can provide an account with ability to play quizzes and maybe to manage them too, would be the best option.
Title: Re: SMF Quiz
Post by: stelios2 on November 02, 2013, 03:41:41 AM
i ve send you login info
thanks a lot !!!!!  :)
Title: Re: SMF Quiz
Post by: emanuele on November 09, 2013, 06:16:13 PM
Unfortunately your issue fits into the encoding-chars mess that I planned to clean a long time ago, but never had time to...
I also have some doubts now on the "state" of the tables (i.e. if they are UTF/latin/something else), so I'm not sure what to do. :(
Title: Re: SMF Quiz
Post by: stelios2 on November 11, 2013, 02:38:40 PM
Thanks for looking out the issue, emanuele !

if you mean my db tables, are in sweedish_latin1_ci  ::)
Title: Re: SMF Quiz
Post by: sneijder23 on December 28, 2013, 10:19:18 AM
Anyone know where the file is to translate texts from english to spanish that I show in the attached image? thanks :)
Title: Re: SMF Quiz
Post by: emanuele on December 28, 2013, 12:53:37 PM
if you mean my db tables, are in sweedish_latin1_ci  ::)
Ooops missed that one... :-[
Then probably the mod won't work properly, sorry... :(

Anyone know where the file is to translate texts from english to spanish that I show in the attached image? thanks :)
If they are not in the language files, then you probably have to search in the javascript files... There are quite a bit of "hard-coded" strings in the mod.
Title: Re: SMF Quiz
Post by: Norvidge on December 29, 2013, 11:42:04 AM
Anyone know where the file is to translate texts from english to spanish that I show in the attached image? thanks :)

Tienes que ir a la carpeta themes/default/scripts/quiz_scripts/QuizClient.js y ahí se pueden modificar todos los textos de dentro del quiz. Yo lo hice hace tiempo para mi foro y si le echas una tarde modificando cosas (colores de fondo, de texto, tamaños de texto...) al final te puede quedar un resultado bastante chulo.

VERY rough translation by K@: Please, stick to English in the non-language-specific boards, Norvidge, if you'd be so kind.

You have to go to the themes/default/scripts/quiz_scripts/QuizClient.js folder and there can be all articles within the quiz. I did it long time for my forum and if you take an afternoon modifying things (colors for background, text, text sizes...) at the end a result can stay pretty cool.

Title: Re: SMF Quiz
Post by: sneijder23 on December 30, 2013, 03:18:37 AM
Anyone know where the file is to translate texts from english to spanish that I show in the attached image? thanks :)

Tienes que ir a la carpeta themes/default/scripts/quiz_scripts/QuizClient.js y ahí se pueden modificar todos los textos de dentro del quiz. Yo lo hice hace tiempo para mi foro y si le echas una tarde modificando cosas (colores de fondo, de texto, tamaños de texto...) al final te puede quedar un resultado bastante chulo.

VERY rough translation by K@: Please, stick to English in the non-language-specific boards, Norvidge, if you'd be so kind.

You have to go to the themes/default/scripts/quiz_scripts/QuizClient.js folder and there can be all articles within the quiz. I did it long time for my forum and if you take an afternoon modifying things (colors for background, text, text sizes...) at the end a result can stay pretty cool.



Solved, thanks  ;D
Title: Re: SMF Quiz
Post by: shadab on January 05, 2014, 12:12:29 PM
I installed this module works great.

I have a question, when we answer a free text question we can hit enter button to submit the answer, but hitting the enter button again does nothing. It would be gr8 if hitting enter again take us to next question.

Regards,
Shadab
Title: Re: SMF Quiz
Post by: davejo on January 20, 2014, 01:55:33 PM
I have just found a new issue.

It would seem that when your creating a quiz and add questions you cannot add images at the time of creation that would form a part of the question.

i.e. if you created a quiz based on photos of people and asked who they are you cannot add the photos of the people when you create the quiz.

The attachments 1 & 2 show the window when creating the questions. Attachment 3 shows the question once the quiz has been approved and then you return to the question to modify it.

Now I wonder why that happens like that (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamezfix.info%2FSmileys%2Fgame%2Fthink.gif&hash=517ba1ec767854426adc5384900a3a03)

Any ideas Emanuele?

Title: Re: SMF Quiz
Post by: Burt on February 06, 2014, 11:05:21 AM
I have just found a new issue.

It would seem that when your creating a quiz and add questions you cannot add images at the time of creation that would form a part of the question.

i.e. if you created a quiz based on photos of people and asked who they are you cannot add the photos of the people when you create the quiz.

The attachments 1 & 2 show the window when creating the questions. Attachment 3 shows the question once the quiz has been approved and then you return to the question to modify it.

Now I wonder why that happens like that (https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamezfix.info%2FSmileys%2Fgame%2Fthink.gif&hash=517ba1ec767854426adc5384900a3a03)

Any ideas Emanuele?

I'm using 2.0.6 and quiz 1.1.0 and I don't have this problem. I always get all the options. I notice few people having problems playing Leagues that stop after the first round. We did discovered in 2012 that by disabling the option of "Send PM on Quiz League Round Update" in settings, did eliminated the problem and the League did always worked fine after that.

Burt
Title: Re: SMF Quiz
Post by: emanuele on February 06, 2014, 01:03:25 PM
Any ideas Emanuele?
For some reason I lost this message...

What are you using as text of the question (with the image)?
Title: Re: SMF Quiz
Post by: davejo on February 06, 2014, 02:43:43 PM
Any ideas Emanuele?
For some reason I lost this message...

What are you using as text of the question (with the image)?

Let's say for arguments sake the question is 'Who is this person' and then the person playing the quiz has to look at a photo of a person. What's not happening Emanuele is the option to upload a picture if required and it should be automatically there and as you can see from the attachments it doesn't matter what type of quiz it is either.

What I have just notice though is the Quiz version.

Are we meant to be using the beta1 or the beta2 version as I have 'SMF Quiz 1.1.1 beta1' installed, although looking below the 'Quiz Home' it says I'm using version 'SMFQuiz 1.1.0 © 2009, SMFModding'? 
Title: Re: SMF Quiz
Post by: KungFuJoe on February 07, 2014, 10:23:06 AM
Anyone know where I can get additional quiz packs for this mod?
Title: Re: SMF Quiz
Post by: davejo on February 07, 2014, 01:07:42 PM
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.
Title: Re: SMF Quiz
Post by: emanuele on February 08, 2014, 06:55:10 PM
Let's say for arguments sake the question is 'Who is this person' and then the person playing the quiz has to look at a photo of a person. What's not happening Emanuele is the option to upload a picture if required and it should be automatically there and as you can see from the attachments it doesn't matter what type of quiz it is either.
ooohhh... sorry, I was probably more asleep than I'm now.
Normal users are not allowed to upload images I think, so if you create the quiz from the admin panel you can upload images as well, if you do it from your profile you are not presented with the upload box.

Are we meant to be using the beta1 or the beta2 version as I have 'SMF Quiz 1.1.1 beta1' installed, although looking below the 'Quiz Home' it says I'm using version 'SMFQuiz 1.1.0 © 2009, SMFModding'? 
/me didn't update the info in the footers
Title: Re: SMF Quiz
Post by: tazmaniac on February 09, 2014, 07:19:09 AM
hi emanuele, i guess you follow this topic. 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. 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?
Title: Re: SMF Quiz
Post by: davejo on February 09, 2014, 11:14:14 AM
Let's say for arguments sake the question is 'Who is this person' and then the person playing the quiz has to look at a photo of a person. What's not happening Emanuele is the option to upload a picture if required and it should be automatically there and as you can see from the attachments it doesn't matter what type of quiz it is either.
ooohhh... sorry, I was probably more asleep than I'm now.
Normal users are not allowed to upload images I think, so if you create the quiz from the admin panel you can upload images as well, if you do it from your profile you are not presented with the upload box.

Are we meant to be using the beta1 or the beta2 version as I have 'SMF Quiz 1.1.1 beta1' installed, although looking below the 'Quiz Home' it says I'm using version 'SMFQuiz 1.1.0 © 2009, SMFModding'? 
/me didn't update the info in the footers

Thanks for the info Emanuele
Title: Re: SMF Quiz
Post by: KungFuJoe on February 09, 2014, 09:19:13 PM
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.
Title: Re: SMF Quiz
Post by: Burt on February 09, 2014, 09:33:32 PM
Quote
Quote 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

Code: [Select]
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
Title: Re: SMF Quiz
Post by: davejo on February 10, 2014, 03:48:08 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
Title: Re: SMF Quiz
Post by: davejo on February 10, 2014, 04:15:05 AM
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.


(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamezfix.info%2Fimages%2Fquiz1.PNG&hash=6780091b95456c39dd246bb8951a2bc6)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamezfix.info%2Fimages%2Fquiz2.PNG&hash=05724efa94ae6f4090db663b16031052)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.gamezfix.info%2Fimages%2Fquiz3.PNG&hash=73b1e6dfc3ae6884180e6ec8f6ce0d27)
Title: Re: SMF Quiz
Post by: Burt on February 10, 2014, 07:22:30 AM
I'll try that...

Thank You  :)
Title: Re: SMF Quiz
Post by: KungFuJoe on February 10, 2014, 01:02:23 PM
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!
Title: Re: SMF Quiz
Post by: 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.

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
Title: Re: SMF Quiz
Post by: davejo on February 11, 2014, 06:50:46 AM
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

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
Quote
public_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.

Thank You

Burt

My pleasure and I hope you get sorted out OK
Title: Re: SMF Quiz
Post by: Burt on February 11, 2014, 10:14:02 PM
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
Title: Re: SMF Quiz
Post by: 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?
Title: Re: SMF Quiz
Post by: Burt on February 12, 2014, 02:30:32 AM
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
Title: Re: SMF Quiz
Post by: 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?

Burt
Title: Re: SMF Quiz
Post by: emanuele on February 22, 2014, 03:46:09 AM
hi emanuele, i guess you follow this topic.
Yep, from time to time... :(

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

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. :)
Title: Re: SMF Quiz
Post by: emanuele on February 22, 2014, 03:47:26 AM
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... :(
Title: Re: SMF Quiz
Post by: Burt on February 24, 2014, 05:36:20 AM
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... :)
Title: Re: SMF Quiz
Post by: sangham.net on February 26, 2014, 09:16:28 AM
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...:

Quote
Guest
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.
Title: Re: SMF Quiz
Post by: emanuele on March 05, 2014, 07:04:53 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.

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.
Title: Re: SMF Quiz
Post by: sangham.net on March 05, 2014, 07:31:05 PM
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".
Title: Re: SMF Quiz
Post by: sangham.net on March 13, 2014, 01:39:41 AM
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?
Title: Re: SMF Quiz
Post by: sangham.net on March 13, 2014, 06:34:23 AM
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.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fsangham.net%2FSmileys%2Fsangham%2Fsadhu_sangham_sw.gif&hash=f67cc00147c12cedb801d83bf9a54d0a)

Change file-name part "Deutsch" into "German"
Title: Re: SMF Quiz
Post by: sangham.net on March 13, 2014, 07:03:05 AM
I am not a programmer, so my current question: Would it require to change

Code: [Select]
// Load the language file
loadLanguage('SMFQuiz');

to something like

Code: [Select]
if(loadLanguage('SMFQuiz') == false)
loadLanguage('SMFQuiz', 'english');

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



Title: Re: SMF Quiz
Post by: suresh1983 on April 25, 2014, 02:59:09 PM
Hi,

I have installed this Mod successfully but would like to move the copy right and add it in the bottom/footer of the page.

Please guide how I can do the same.
Title: Re: SMF Quiz
Post by: emanuele on April 29, 2014, 04:16:22 PM
Sorry, for some reason I didn't receive the notifications about this topic (or I received it and I didn't see it... O:))

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

Code: [Select]
// Load the language file
loadLanguage('SMFQuiz');

to something like

Code: [Select]
if(loadLanguage('SMFQuiz') == false)
loadLanguage('SMFQuiz', 'english');

in SMFQuiz.php, to keep it changeable for the particular user in language regards of the forum ?
No, the code you posted is a practice use in SMF 1.x, SMF 2.0 takes care automatically to load the English before any other language.

Hi,

I have installed this Mod successfully but would like to move the copy right and add it in the bottom/footer of the page.

Please guide how I can do the same.
If it is enough to move it on the user-accessible pages and not the admin ones, you can open SMFQuiz.template.php, then find:
Code: (find) [Select]
echo '
<table width="100%"><tr><td align="center"><a href="http://custom.simplemachines.org/mods/index.php?mod=1650" title="Free SMF Mods" target="_blank" class="smalltext">SMFQuiz ' , isset($modSettings["SMFQuiz_version"]) ? $modSettings["SMFQuiz_version"] : '' , ' &copy; 2009, SMFModding</a></td></tr></table>
</form>'
and replace with:
Code: (replace with) [Select]
echo '
</form>'
Then in index.template.php find:
Code: (find) [Select]
<li class="copyright">', theme_copyright(), '</li>and replace it with:
Code: [Select]
<li class="copyright">', theme_copyright(), '</li>', !empty($context['SMFQuiz']) ? '
<li><span class="smalltext"><a href="http://custom.simplemachines.org/mods/index.php?mod=1650" title="Free SMF Mods" target="_blank" class="smalltext">SMFQuiz ' , isset($modSettings["SMFQuiz_version"]) ? $modSettings["SMFQuiz_version"] : '' , ' &copy; 2009, SMFModding</a></span></li>' : '', '

It should work.
Title: Re: SMF Quiz
Post by: Bret Bork on May 20, 2014, 07:33:55 PM
 Emanuele.... Are you still involved with this project? I am thinking about using it but it has some bugs.
Title: Re: SMF Quiz
Post by: Bret Bork on June 04, 2014, 08:19:20 PM
Is anyone here involved with this project? I have gone through the frontend and cleaned it up. I could use some assistance with some other bugs and issues that have cropped up. Thanks in advance.
Title: Re: SMF Quiz
Post by: ashter on July 19, 2014, 07:58:05 AM
Hi everyone,
i'm using smf 2.0.8

i have just installed the quiz mod,  which seems to be working fine,
with one exception, which is the categories section,

i downloaded the quiz question pack from davejo's site after following the link in an earlier post,
and can import the quizzes ok,
but cannot find any method of getting them into the categories i have created for them,
i get just a top level category, with all the quizzes lumped into that category,

what am i missing here? (assuming its not a problem with the quiz package itself?)

any pointers in solving this would be great, as i want to ensure all is working as it should before the site goes public,

thanks,
ashter.
Title: Re: SMF Quiz
Post by: davejo on July 19, 2014, 12:35:15 PM
If you have downloaded the quiz pack of mine then you can do one of 2 things:

1. Create the same categories as I have in our Quiz on the website in my signature. If you do this then uninstall all the quizzes, then create the categories then import the quizzes again and they will all go into the categories themselves.

2. Create your own categories and then assign those quizzes to your new categories. To assign a quiz to a new category you need to go into the 'Quiz Admin' and then chose 'Quizzes' then click on the little pencil icon at the far right of the quiz (see attachment below) then when the new window opens click on the drop box for 'Category' (see attachment below)and then choose the new category you want that quiz to be in. Once you have done that click 'Update Quiz' at the bottom of the page.
Title: Re: SMF Quiz
Post by: ashter on July 19, 2014, 02:11:10 PM
If you have downloaded the quiz pack of mine then you can do one of 2 things:

1. Create the same categories as I have in our Quiz on the website in my signature. If you do this then uninstall all the quizzes, then create the categories then import the quizzes again and they will all go into the categories themselves.

2. Create your own categories and then assign those quizzes to your new categories. To assign a quiz to a new category you need to go into the 'Quiz Admin' and then chose 'Quizzes' then click on the little pencil icon at the far right of the quiz (see attachment below) then when the new window opens click on the drop box for 'Category' (see attachment below)and then choose the new category you want that quiz to be in. Once you have done that click 'Update Quiz' at the bottom of the page.

Many thanks for that, i knew it would be something simple in the end :-[  :-[
but as always, this forum delivers the best support you could hope to find anywhere  8)

so thanks again for your help and also for a brilliant mod too  ;D

ashter.
Title: Re: SMF Quiz
Post by: detercan on September 06, 2014, 08:06:24 AM
I have a problem with Quiz League. I can't create a quiz league when i clicked create new league , nothing happens it returns same page that is letting me create a new league but nth happens :)
Title: Re: SMF Quiz
Post by: SaltedWeb on November 14, 2014, 04:52:23 PM
Ok never saw this Mod pretty amazing, the software XF is struggling to get such and add on that seems mastered here well done integrated fantastic.
Title: Re: SMF Quiz
Post by: Greygal on November 20, 2014, 08:36:24 AM
This is an amazing mod, just what I need for my forum!

It installed without any errors or issues.  All the admin functions work.  In fact, everything seems to work beautifully, except when I actually attempt to take a quiz, I get the blank quiz window and endless "loading." 

I've read every page of this thread.  The most common causes of this type of issue are the lightbox mod and the PrettyURLs mod.

I do not have the lightbox mod installed.  I do have PrettyURLs, but I added SMFQuiz to the list of actions that PrettyURL is to ignore.

I also tried deactivating DreamPortal and still had the same issue.

The forum I have installed this at is www dot affirmativealliance dot com - I have set it so "Guest" members can access the quiz module.
I am using SMF 2.9.  I installed the beta release of this mod.

I know this mod is old and it looks like it's not under current development, but if anyone has any suggestions or ideas that I could try to fix this, I sure would appreciate it!

Here is a list of the mods I do currently have installed:

1.   Eve Events Importer   0.4
2.   Characters remaining of post   1.0.4 
3.   Board Icons   1.0 
4.   Voter Visibility   2.0 
5.   Like Posts   1.3.1     
6.   Profile Statuses   3.1     
7.   Simple Youtube Video Embedder/BBC   1.1 
8.   Remove Reply Prefix   1.0   
9.   Event Registration Mod for SMF2   2.26     
10.   SMF Quiz   1.1.1 beta1     
11.   Fanfics System   1.3     
12.   Country Flags   2.1     
13.   Separate the sticky topics   1.0.0     
14.   Quick Spoiler   0.9.4     
15.   open mod reports   1.0 
16.   Curve_centered_menu   1.4     
17.   SMF 2.0.8 Update   1.0
18.   Additional Instant Messengers   1.0.1     
19.   RSS Feed Poster   4.1     
20.   Gamer IDs   1.4 
21.   Drafts   2.0.5     
22.   Custom Form Mod   1.7 
23.   New Layout for Last Post Info   1.5.1     
24.   FantasticSmileys   1.0 
25.   Best Answer Intergration   1.4 
26.   SMF 1.1.20 / 2.0.9 Update   1.0 
27.   Footer Menu   1.1.2     
28.   Dream Portal   1.1     
29.   EFTMod   0.2.0     
30.   AdditionalMembergroups   1.01     
31.   Temars EVE API   1.3.1 r5 
32.   Post Notifier   1.0     
33.   Tapatalk SMF 2.0 Plugin

Thanks in advance!

Greygal
Title: Re: SMF Quiz
Post by: davejo on November 20, 2014, 01:17:35 PM
This is an amazing mod, just what I need for my forum!

It installed without any errors or issues.  All the admin functions work.  In fact, everything seems to work beautifully, except when I actually attempt to take a quiz, I get the blank quiz window and endless "loading." 

I've read every page of this thread.  The most common causes of this type of issue are the lightbox mod and the PrettyURLs mod.

I do not have the lightbox mod installed.  I do have PrettyURLs, but I added SMFQuiz to the list of actions that PrettyURL is to ignore.

I also tried deactivating DreamPortal and still had the same issue.

The forum I have installed this at is www dot affirmativealliance dot com - I have set it so "Guest" members can access the quiz module.
I am using SMF 2.9.  I installed the beta release of this mod.

I know this mod is old and it looks like it's not under current development, but if anyone has any suggestions or ideas that I could try to fix this, I sure would appreciate it!

Here is a list of the mods I do currently have installed:

1.   Eve Events Importer   0.4
2.   Characters remaining of post   1.0.4 
3.   Board Icons   1.0 
4.   Voter Visibility   2.0 
5.   Like Posts   1.3.1     
6.   Profile Statuses   3.1     
7.   Simple Youtube Video Embedder/BBC   1.1 
8.   Remove Reply Prefix   1.0   
9.   Event Registration Mod for SMF2   2.26     
10.   SMF Quiz   1.1.1 beta1     
11.   Fanfics System   1.3     
12.   Country Flags   2.1     
13.   Separate the sticky topics   1.0.0     
14.   Quick Spoiler   0.9.4     
15.   open mod reports   1.0 
16.   Curve_centered_menu   1.4     
17.   SMF 2.0.8 Update   1.0
18.   Additional Instant Messengers   1.0.1     
19.   RSS Feed Poster   4.1     
20.   Gamer IDs   1.4 
21.   Drafts   2.0.5     
22.   Custom Form Mod   1.7 
23.   New Layout for Last Post Info   1.5.1     
24.   FantasticSmileys   1.0 
25.   Best Answer Intergration   1.4 
26.   SMF 1.1.20 / 2.0.9 Update   1.0 
27.   Footer Menu   1.1.2     
28.   Dream Portal   1.1     
29.   EFTMod   0.2.0     
30.   AdditionalMembergroups   1.01     
31.   Temars EVE API   1.3.1 r5 
32.   Post Notifier   1.0     
33.   Tapatalk SMF 2.0 Plugin

Thanks in advance!

Greygal

Did you install any quizzes yet?

I know you have signed up on the site where the questions are, but did you download and install them? I not sure if it makes any difference but the quizzes on myvsite are already in Categories, have you created Categories for them on your site?

If you have then the only other thing I would suggest is to uninstall your mods one at a time doing a database back up in between each one and see if anything changes.

Sorry I cant help any more than that

Dave
Title: Re: SMF Quiz
Post by: Greygal on November 20, 2014, 01:27:35 PM
Yes, I set up some categories, and installed some of your quizzes.  At first, I thought it may be some sort of weirdness with importing the quizzes, so I tried different ones, and I also tried just making one from scratch.

I'll go through uninstalling the mods one-by-one next :hassle: and hopefully will find the trouble-maker.

It's not generating any error messages, and other than some missing image 404 errors (issue with image directory, already fixed), I also don't see anything wrong using Chrome's "Inspect Element" and other debugging tools. 

Thanks for your help, and all your work on this mod and the quiz packs - it's fantastic! I really hope I can get it to work, it's so perfect for a project I've been too-long procrastinating on!

Greygal

P.S. Really like your website, think I'll be spending quite a bit of time on it come springtime!
Title: Re: SMF Quiz
Post by: davejo on November 20, 2014, 04:04:49 PM
Yes, I set up some categories, and installed some of your quizzes.  At first, I thought it may be some sort of weirdness with importing the quizzes, so I tried different ones, and I also tried just making one from scratch.

I'll go through uninstalling the mods one-by-one next :hassle: and hopefully will find the trouble-maker.

It's not generating any error messages, and other than some missing image 404 errors (issue with image directory, already fixed), I also don't see anything wrong using Chrome's "Inspect Element" and other debugging tools. 

Thanks for your help, and all your work on this mod and the quiz packs - it's fantastic! I really hope I can get it to work, it's so perfect for a project I've been too-long procrastinating on!

Greygal

P.S. Really like your website, think I'll be spending quite a bit of time on it come springtime!

Thanks for the kind words...most of the credit has to go to Emanuele as he is the one who did the coding... I know very little about php code

All the best and I hope you get it working OK.

Dave
Title: Re: SMF Quiz
Post by: Greygal on November 20, 2014, 10:26:04 PM
Well, I'm not entirely sure how I got it working, but it's working!

I uninstalled all mods, and it still didn't work.

I reinstalled all mods, and it still didn't work.

So since I was messing around anyways, I took the opportunity to update a few of them that I'd not updated in a year or more. 

I checked the quiz after each one, and it didn't work, until I had updated both "Like Posts" and "Quick Spoiler."   Updating one or the other, no joy.  Updating both, joy.  I've no idea why, to be honest!

But the quiz mod is working!  And it's beautiful ... I can't wait to start loading it up with quizzes for my guys!

Thanks all who keep this fabulous mod alive and kicking!

Greygal

Title: Re: SMF Quiz
Post by: Ron Austin on November 29, 2014, 03:32:27 PM
I have installed this mod on my smf 2.02 system and it seems to be working very well so far.  I do have a couple of questions.  First of all there does not seem to be a way for a person to edit a quiz they created unless I give them full admin privileges to the Quiz program.  This means that anyone who has these privileges can not only modify their quizzes, they can also modify everyone else's quizzes.  Am I missing something here?

Second, the Play, Home and Favorite buttons are small with no tool tips and some of my members can't start the quizzes.  Could someone please tell me which file I need to modify to change the buttons and to add tool tips to them.

Thanks in advance,

Ron
Title: Re: SMF Quiz
Post by: Kindred on November 29, 2014, 04:45:19 PM
you do need to upgrade your SMF installation ASAP. You are 7 revs behind...
Title: Re: SMF Quiz
Post by: Greygal on December 03, 2014, 07:11:53 PM
I have installed this mod on my smf 2.02 system and it seems to be working very well so far.  I do have a couple of questions.  First of all there does not seem to be a way for a person to edit a quiz they created unless I give them full admin privileges to the Quiz program.  This means that anyone who has these privileges can not only modify their quizzes, they can also modify everyone else's quizzes.  Am I missing something here?

Second, the Play, Home and Favorite buttons are small with no tool tips and some of my members can't start the quizzes.  Could someone please tell me which file I need to modify to change the buttons and to add tool tips to them.

Thanks in advance,

Ron

You can create new images and replace the buttons with those new images.  The images for those buttons are found at ..Themes/default/images/quiz_images - the "play" button, for example, is Play-24.png

Just look through that directory, find the image you want to change, create a new image, name it the same name as the old image, and replace the old file with the new file.  Pretty simple.

I'm fairly certain that the creator of a quiz can always edit their quiz up until the time it is approved by a quiz admin.  Once it's approved and "live," I don't believe it can be edited by anyone other than an admin (haven't played with it that much as a non-admin though, so I may be wrong).

As to Quiz Admin rights, yes, if someone has the rights to admin the quizzes, they have access to admin all quizzes.  Looking at the code, it'd be kind of a pain to make it so people could only admin certain categories of quizzes, for example. 

And finally, as posted above by Kindred, you seriously need to update your SMF installation ASAP.  Multiple security fixes, stability patches, bug fixes, and other changes have been made to SMF.  Update to 2.09 asap, don't leave your forum at risk.

Hope this helps!

GG
Title: Re: SMF Quiz
Post by: Ron Austin on December 03, 2014, 07:38:27 PM
I did find the spot in the SMFQuiz.template.php where I could change the size of the images.  There were no tool tips so people who didn't recognize the play button didn't realize that they had to hit it.  I ended up leaving the buttons the same but added title to make tool tips.

Some where I read that if you upgraded smf it would mess up all the mods so I have resisted updating my site.  I guess I will back everything up and give it a go.
Title: Re: SMF Quiz
Post by: Greygal on December 03, 2014, 07:44:56 PM
Depending upon the mods you have installed, many have been updated to work with SMF 2.09, and most of the ones that are updated to work with 2.02 will work smoothly with 2.09, but likely have already been updated.  Continuing to use 2.02 means not only your core forum is out of date, but many of your mods are likely out of date, too.

I recently updated from 2.07 to 2.09, and I did it in two update steps - first to 2.08 then to 2.09.  I had only one minor manual edit I had to make when I updated to 2.08, and none for 2.09. 

I then went and looked up each of the mods I had installed, and the overwhelming majority of them had been updated - some several times! - so I updated those mods.  Entire project took less than two hours for me, but my core installation wasn't as out of date as yours.  At least you're not still using the 1.x series!

You could just step-update it from 2.02 to 2.09, or you could do a fresh install then reinstall all your mods.  Whichever works easier for you.

Backup everything, twice :)  That's my motto!

BTW I also found those buttons non-intuitive, and replaced them with new buttons that were a lot more obvious and had text on them :)

Good luck!

GG
Title: Re: SMF Quiz
Post by: Ron Austin on December 03, 2014, 08:46:59 PM
Thanks for the reply and info.  I put text on the buttons but it was so tiny I couldn't read it so I went with the tool tips.  I have yet to see what Add to Favorites does.  I have not seen any place where favorites are indicated.  I am thinking about removing that button all together.
Title: Re: SMF Quiz
Post by: SaltedWeb on December 13, 2014, 01:57:44 AM
Question :
How do I use the same questions on two forums. I have one local and one regional site that will use the same questions and answers. So is there a way to transfer one quiz to another? I saw you created sample quizes is there a system to making these ??

Thank You.
Title: Re: SMF Quiz
Post by: Greygal on December 13, 2014, 02:05:07 AM
You can export the quiz's questions, edit the XML file if and as needed to fit the other site's quiz mod, then import them.

For example, I wanted to combine two quizes into one quiz.  I exported both, then copy/pasted just the questions from the one into the other, then reimported it.
Title: Re: SMF Quiz
Post by: SaltedWeb on December 13, 2014, 02:16:48 AM
Thank you I will give this a try :)
Title: Re: SMF Quiz
Post by: tranhiep_116 on December 13, 2014, 04:01:24 AM
this one is perfecit  ;D thanks
Title: Re: SMF Quiz
Post by: SaltedWeb on December 24, 2014, 02:15:45 PM
Question I want to change the menu name to say Training not quiz, and in the quiz are to say training not smfquiz in the large bold.

Thank You
Title: Re: SMF Quiz
Post by: Greygal on December 24, 2014, 03:05:45 PM
Believe you can change those in the /languages/SMFQuiz.english.php file.  Might have to dig around in some of the other files to find the text, but most of the text for this mod is in the languages file.  Hope this helps.
Title: Re: SMF Quiz
Post by: SaltedWeb on December 24, 2014, 03:51:07 PM
Hi there, thank you very much I will check that out for sure. 
Title: Re: SMF Quiz
Post by: SaltedWeb on December 31, 2014, 10:35:00 AM
Hi I installed on 2.0.9 no install issues, no error logs, game plays fine but wont save score or update plays.
Is there a setting wrong or, poked around and cant figure it seems to work well other then that, but cant seem to figure this out.

Thank You
Title: Re: SMF Quiz
Post by: Greygal on December 31, 2014, 11:00:31 AM
Is it not saving scores for just you, or for everyone?

Note it will NOT save scores for the "Admin" member(s) of your forum, because, well, admins have access to the answers, after all :)

Try it with a non-admin forum account and see if the problem continues.  :)

If it's still not saving scores, try clearing caches and double-checking settings/permissions. 

Hope this helps!

GG
Title: Re: SMF Quiz
Post by: SaltedWeb on December 31, 2014, 11:08:42 AM
Ok yes was on my admin ok great I will test it but sure that was it :)
Title: Re: SMF Quiz
Post by: davejo on December 31, 2014, 02:11:08 PM
If you installed the quizzes with your own admin account you cannot play them. What I did was create an account called 'Admin' then installed them using the ID number for that account., I'm pretty dure that somewhere in this thread there is a script you can use in the database to change it for all quizzes with your member ID number.

Hope that helps,

Happy new year to one and all
Title: Re: SMF Quiz
Post by: SaltedWeb on December 31, 2014, 08:37:31 PM
Believe you can change those in the /languages/SMFQuiz.english.php file.  Might have to dig around in some of the other files to find the text, but most of the text for this mod is in the languages file.  Hope this helps.
Poked around was not able to find the area to change it , any one with ideas where it is located ?
PS. Found the language file, but found no edits for the menu item QUIZ to be edited.
Title: Re: SMF Quiz
Post by: kat on January 02, 2015, 02:12:10 PM
Looking at the mod's parser, I see these:

/Sources/Who.php

Code: [Select]
//Begin SMFQuiz
'quiz' => array(
'label' => 'Quiz',

Could be that. But, I doubt it...
____________________________________________________________

/Themes/default/languages/index.english.php

Code: [Select]
//Begin SMFQuiz
$txt['SMFQuiz'] = 'Quiz';
//End SMFQuiz

Could well be that second line, methinks.
____________________________________________________________

/Themes/default/languages/Modifications.english.php

Code: [Select]
//Begin SMFQuiz
$txt['quiz'] = 'Quiz';

Could well be that one.

Suck 'em and see. :)
Title: Re: SMF Quiz
Post by: ahrasis on January 02, 2015, 02:43:31 PM
Should be just this one for menu: $txt['SMFQuiz']
Title: Re: SMF Quiz
Post by: SaltedWeb on January 02, 2015, 02:46:04 PM
 Your a Rock Star thank you for the time you put and found it was:

Code: [Select]

//Begin SMFQuiz
$txt['SMFQuiz'] = 'Quiz';
//End SMFQuiz

Thank is appreciate greatly  ;D ;D ;D
Title: Re: SMF Quiz
Post by: cieplutki on February 02, 2015, 04:46:28 PM
welcome
how to do that: there were several correct answers

Quote
Ustawa Prawo geodezyjne i kartograficzne reguluje sprawy dotyczące:
Code: [Select]
a) państwowego zasobu geodezyjnego i kartograficznego,
b) rozgraniczania nieruchomości,
v) numeracji porządkowej nieruchomości,
d) uprawnień do wykonywania prac geodezyjnych i kartograficznych.

all the answers correct, but in other one or two - possible to set the quiz?

Title: Re: SMF Quiz
Post by: Kindred on February 02, 2015, 05:21:34 PM
no. the quiz depends on one correct answer, as far as I know
Title: Re: SMF Quiz
Post by: cieplutki on February 03, 2015, 02:25:10 AM
there is a chance to quiz marked the few correct answers
Title: Re: SMF Quiz
Post by: Kindred on February 03, 2015, 07:08:59 AM
if you are asking a question....   then no.. the mod author has not made any revisions in a while - so it is unlikely that there will be any changes to how the mod works
Title: Re: SMF Quiz
Post by: cieplutki on February 03, 2015, 08:06:12 AM
sad, very few correct answers to me in handy
Title: Re: SMF Quiz
Post by: Kindred on February 03, 2015, 09:07:57 AM
you know...   actual, full sentences that express a complete thought and include punctuation would be helpful.
I understand that English might not be your first language... but one-liners with no capitalization, no punctuation and expressing only "stream of consciousness" type content are not actually useful for others attempting to understand what you are trying to say.
Title: Re: SMF Quiz
Post by: davejo on February 03, 2015, 02:08:13 PM
you know...   actual, full sentences that express a complete thought and include punctuation would be helpful.
I understand that English might not be your first language... but one-liners with no capitalization, no punctuation and expressing only "stream of consciousness" type content are not actually useful for others attempting to understand what you are trying to say.

That should be the end of that conversation... ;D
Title: Re: SMF Quiz
Post by: Kindred on February 03, 2015, 02:10:36 PM
It's the English teacher side of me coming out in occasional rants. :D
Title: Re: SMF Quiz
Post by: MrMike on February 27, 2015, 01:13:54 PM
you know...   actual, full sentences that express a complete thought and include punctuation would be helpful.
I understand that English might not be your first language... but one-liners with no capitalization, no punctuation and expressing only "stream of consciousness" type content are not actually useful for others attempting to understand what you are trying to say.

Yep...a little punctuation is the difference between  "I helped my Uncle, Jack, off a horse" and "I helped my Uncle Jack off a horse".
Title: Re: SMF Quiz
Post by: omicito on March 06, 2015, 04:42:05 PM
Hi!

There is black background in quiz when answering questions. Is there a way to change color to white?
Thanks
Title: Re: SMF Quiz
Post by: SaltedWeb on March 23, 2015, 12:40:28 AM
Never had issues with this quiz.
Did a fresh installed SMF and get error  unexpected error has occurred while retrieving data from the server. Please contact the server administrator and inform them of this error. when trying to play the quiz.

No errors at install or at anytime until playing and it created this below.


Apply Filter: Only show the error messages of this URL
http://******=SMFQuiz;sa=addquiz
Apply Filter: Only show the errors with the same message
Wrong value type sent to the database. Integer expected. (id_category)
Function: SaveQuiz
Apply Filter: Only show the errors from this file
File: /home/******/public_html/Sources/SMFQuizDb.php
Line: 1069
Title: Re: SMF Quiz
Post by: sangham.net on April 23, 2015, 02:07:02 AM
Hi!

There is black background in quiz when answering questions. Is there a way to change color to white?
Thanks

There are css files where you can do it, but its quite complicated to change the design, I had a try, really quite complicated as the structure and which css to use is not easy to see. Hope that was helpful and will be an indicator for additional help.
Title: Re: SMF Quiz
Post by: Burt on June 06, 2015, 05:51:01 AM
Hello everyone...


Couple of questions for anyone that may knows the answers.


First one is, what has it changed in the code from 1.1.0 to 1.1.1 beta 2. There is no mention of it in the Change Log... and Second, I sadly still have the problem of not been able to play the quizzes more than once. Does anybody else have this problem?


Regards


Burt
Title: Re: SMF Quiz
Post by: davejo on June 06, 2015, 06:33:48 AM
Hello everyone...


Couple of questions for anyone that may knows the answers.


First one is, what has it changed in the code from 1.1.0 to 1.1.1 beta 2. There is no mention of it in the Change Log...

If recall correctly that beta version was to eliminate a problem with the quiz leagues

and Second, I sadly still have the problem of not been able to play the quizzes more than once. Does anybody else have this problem?

I'm guessing that you still having problems as per the post you made below.

http://www.simplemachines.org/community/index.php?topic=293949.msg3667824;topicseen#msg3667824

I believe I mentioned about resetting the quiz results did you do that Burt? If not you might want to try it. There is also the 'Session Reply Time' (on the 'Settings' page) did you do that too?

Create a test quiz and then set the play limit to 4 and the 'Session Reply Time' to 1 minute and see if that works, if it does then you will need to 'Reset Quiz Results' in the maintenance area.

Other than that there is nothing else I can think of that would cause that

Regards

Dave
Title: Re: SMF Quiz
Post by: olhos-nos-olhos on June 15, 2015, 07:10:17 PM
Same problem here: SMFQuiz doesn't work with portuguese_pt :P

Strings with á, é, ó, ã, õ, etc.., are not saved in DB
Title: Re: SMF Quiz
Post by: sangham.net on June 18, 2015, 04:57:54 AM
Same problem here: SMFQuiz doesn't work with portuguese_pt :P

Strings with á, é, ó, ã, õ, etc.., are not saved in DB
Does you Data Base run on utf-8? There is a converting tool within the panel BUT it can be that you need to convert some Datas later on in the database, as old special characters are displayed as utf-8. Be careful and you might need a lot of patient, maybe that helps later: http://php.net/manual/pt_BR/function.utf8-encode.php
Title: Re: SMF Quiz
Post by: Burt on June 26, 2015, 08:56:52 PM
Hello everyone...


Couple of questions for anyone that may knows the answers.


First one is, what has it changed in the code from 1.1.0 to 1.1.1 beta 2. There is no mention of it in the Change Log...

If recall correctly that beta version was to eliminate a problem with the quiz leagues

and Second, I sadly still have the problem of not been able to play the quizzes more than once. Does anybody else have this problem?

I'm guessing that you still having problems as per the post you made below.

http://www.simplemachines.org/community/index.php?topic=293949.msg3667824;topicseen#msg3667824 (http://www.simplemachines.org/community/index.php?topic=293949.msg3667824;topicseen#msg3667824)

I believe I mentioned about resetting the quiz results did you do that Burt? If not you might want to try it. There is also the 'Session Reply Time' (on the 'Settings' page) did you do that too?

Create a test quiz and then set the play limit to 4 and the 'Session Reply Time' to 1 minute and see if that works, if it does then you will need to 'Reset Quiz Results' in the maintenance area.

Other than that there is nothing else I can think of that would cause that

Regards

Dave

Thanks for your reply Dave

Yes I did tried all your suggestions the last time, but no luck.. Sorry to ask but what would be the best way to go, from 1.1.0 to 1.1.1 beta 2 ? I mean, remove 1.1.0 and install 1.1.1 or just copy and paste over the existing files?

Burt

PS

Is this setting correct for the Quiz Maintenance? I mean is it supposed to be every hour or once every day?
Title: Re: SMF Quiz
Post by: davejo on June 27, 2015, 01:35:01 AM
Burt

You can uninstall the previous version then install the new version, the database files are not removed unless you tick the box to do so.

You can choose what you want for the frequency of the maintenance, I cant remember what the default and I cant check as I am currently on holiday away from home.
Title: Re: SMF Quiz
Post by: Burt on June 28, 2015, 01:58:34 AM
Burt

You can uninstall the previous version then install the new version, the database files are not removed unless you tick the box to do so.

You can choose what you want for the frequency of the maintenance, I cant remember what the default and I cant check as I am currently on holiday away from home.


Thanks mate, I did unistall the old and install the new, but it still say version "1.1.0 © 2009, SMFModding" ... I guess that's not a real problem  :laugh: . That frequency in the maintenance is the default, but I just though that it seem odd every hour, that's all....
Title: Re: SMF Quiz
Post by: webby1 on July 15, 2015, 08:28:11 PM
Good evening, how to change the translation of the French module please?
Title: Re: SMF Quiz
Post by: davejo on July 16, 2015, 04:40:31 AM
Good evening, how to change the translation of the French module please?

You will need someone who speaks/reads both French and English to translate the language files. Sorry I do not speak French.
Title: Re: SMF Quiz
Post by: Blue-Suit on September 10, 2015, 02:41:03 PM
I still have 20 or so zip files, around 500 quizzes and 7000 questions from RC1 and just uploaded them to my Smf quiz.

Title: Re: SMF Quiz
Post by: davejo on September 10, 2015, 02:57:06 PM
I still have 20 or so zip files, around 500 quizzes and 7000 questions from RC1 and just uploaded them to my Smf quiz.

Is there a problem? These are the files I have been sharing since the rebuild of the Mod.
Title: Re: SMF Quiz
Post by: Blue-Suit on September 10, 2015, 03:36:11 PM
lol nope
I didn't know you were sharing them and I have just found them on an old drive, so I thought i would mention it!
Title: Re: SMF Quiz
Post by: davejo on September 10, 2015, 05:00:04 PM
lol nope
I didn't know you were sharing them and I have just found them on an old drive, so I thought i would mention it!

Ok no problem
Title: Re: SMF Quiz
Post by: stefan357965 on September 13, 2015, 06:28:27 PM
Great stuff, this is a great deal!
Title: Re: SMF Quiz
Post by: CerebralJam on January 16, 2016, 01:15:53 PM
Hi guys, here comes trouble.  Kindred, please don't sigh :D

Have had this wonderful mod since 2009 and always loved it.  I have recently upgraded my old forum to the latest release as I decided to move webhosts recently.  I wasn't sure I'd be able to update this - was thrilled to see it installs on a fresh 2.0.11 - wonderful work peeps.

Before I moved - a long time ago, the menu part of the mod displayed funny in the CSS.  I lived with it, but thought now's the time to put it right.  Trouble is, I can't quite work out what to edit.  I noticed this line in the source page view right clicking: <td><div id="admin_menu"><ul class="dropmenu" id="dropdown_menu_1">

But where is the dropdown_menu_1?  I seem to have quite a few css files (and would have thought the quiz.css would have the info in?) Can someone point me in the right direction?  Yes, Davejo, this is another reason why I have been lurking on your site.  I can see your menu working.  On a fresh install I also got it to work.

I have reinstalled mods: Ultimate Profile, SMF Quiz and E-Arcade.  I did use to have SMF Quiz Categories but that won't install after the upgrade.  The database seems to have kept the categories for me as they all showed up.

I have attached a screenshot.  Thanks for any help with this one.

Title: Re: SMF Quiz
Post by: davejo on January 16, 2016, 02:12:06 PM
The folder 'quiz_css' should be inside '/public_html/Themes/default/css'

Look to see if it's there like the image below. If it's not then copy the whole folder to it.

If that doesn't do try plan B

I can't remember if uninstalling the mod removes the database files or not, if it doesn't then uninstall it and then re-install it and see if that works.
Title: Re: SMF Quiz
Post by: CerebralJam on January 16, 2016, 05:29:42 PM
Hi there, yes, my quiz_css folder is within the css folder under  '/public_html/Themes/default/css'

I went to see if I could uninstall it yesterday as the upgrade was in place and mod was only just recently reinstalled.  The database files were safe at that point, but uninstalling now, it doesn't sound the same as how the upgrader worked. Then am I telling the database to drop the files? I would be really sad to lose this.

Looking at uninstall gave me further problems as you will see from this screenshot.  If I could tell where the css instruction actually was I might be able alter it.  Safer than losing it.  Don't want to reset scores or members using it as most members have moved on and site is more of an archive of years gone by than active. 

Looking at the screenshot though, does that indicate something that could be edited and might sort the problem out - never used the 'replace' instructions before.  I don't know how the files they are talking about work.

Looking at the arcade files  - it also accesses both the files that are listed as failed for the uninstall.  I reinstalled the arcade straight after the quiz once I could see it was working.  In both cases I'm concerned that if I uninstall either mod now it will erase the original database files.  The arcade doesn't show any errors in the uninstall list. 

Think the css might be the easiest option but I can't work out where that instruction is?

Annoying.  And thank you.  :)

Sorry - suggestions made are as follows:
1. ManagePermissions.php
Code: (Find) [Select]
   $permissionList = array(
      'membergroup' => array(
      
         //Begin SMFQuiz         
         'quiz_view' => array(false, 'quiz', 'quiz'),
         'quiz_play' => array(false, 'quiz', 'quiz'),
         'quiz_submit' => array(false, 'quiz', 'quiz'),
         'quiz_admin' => array(false, 'quiz', 'quiz'),
         //End SMFQuiz
Code: (Replace) [Select]
   $permissionList = array(
      'membergroup' => array(
      

2. ManagePermissions.php

Code: (Find) [Select]
   $context['non_guest_permissions'] = array(
      //Begin SMFQuiz
      'quiz_play',
      'quiz_submit',
      'quiz_admin',
      //End SMFQuiz
Code: (Replace) [Select]
   $context['non_guest_permissions'] = array(

1. Modifications.english.php

//Begin SMFQuiz
$txt['quiz'] = 'Quiz';
 
// Permission names and help
$txt['permissiongroup_quiz'] = 'Quiz';
$txt['permissiongroup_simple_quiz'] = 'Quiz';
$txt['permissionname_quiz_view'] = 'View Quiz';
$txt['permissionhelp_quiz_view'] = 'May access Quiz';
$txt['permissionname_quiz_play'] = 'Play the Quiz';
$txt['permissionhelp_quiz_play'] = 'Allows member to play the quiz';
$txt['permissionname_quiz_submit'] = 'Create Quiz';
$txt['permissionhelp_quiz_submit'] = 'Allows users to create quizzes';
$txt['permissionname_quiz_admin'] = 'Administrate Quiz';
$txt['permissionhelp_quiz_admin'] = 'Quiz Administarator can Install/Edit/Delete quizzes from the admin screen';

// Errors if they can't do something
$txt['cannot_quiz_view'] = 'You are not allowed to access the Quiz.';
$txt['cannot_quiz_play'] = 'You are not allowed to play the Quiz';
$txt['cannot_quiz_submit'] = 'You are not allowed to create Quizzes';
 
//End SMFQuiz
?>

Code: (Replace) [Select]
?>


Title: Re: SMF Quiz
Post by: davejo on January 17, 2016, 02:44:21 AM
It's possible that another mod has wriiten before or after the line that the quiz wnts to write to thats why the error comes up. Check those files in the first instance to see if the quiz code is actuallt in the files.
 
The error that your show with the menu might also be related to the template file, if you haven't done so already, check one by one that all the files are in the correct place for the mod.

As a matter of interest which version of the mod are you using? The version I'm using is 1.1.1 beta 1
Title: Re: SMF Quiz
Post by: CerebralJam on January 17, 2016, 11:20:08 AM
Thank you, Dave. 

I installed the latest, the zip says beta2 in SMF Packages on my server, but the actual mod says 1.1.1 beta 1 in installed packages. 

I installed it via the package manager via the 'browse packages' on SMF Moderations.

I will go check all the files again. I'll compare the ones that the Arcade uses as well. This was the only mod I reinstalled after it.

Appreciate your help.  :)




Title: Re: SMF Quiz
Post by: CerebralJam on January 19, 2016, 06:05:12 PM
I think... I'm getting closer to the problem!

I casually clicked on my 'help' button today to find it giving me an error where it used to serve up the files no problems...
Quote
An Error Has Occurred!
Unable to load the 'manual' template.

 

so I did a search here for the error and came up with this thread: http://www.simplemachines.org/community/index.php?topic=443279.msg3114911#msg3114911

Now, the advice started by asking the person to check their site with domain/SMF/index.php?theme=1

When I do this, the help files ARE there and the menu for the quiz also works.

Could be something to do with my using Anecdota20bp - back in 2009 Curve wasn't around? and upgrading over the years (a few) then having to do the large upgrade recently? 'If' I can understand what this person did - and I can't - not sure what they mean by remove help files (?)...

But - does this mean, I should uninstall my old theme (Can I make a back up of the css so that I don't have to do all the tweaking again?) then make the new theme based on Curve?  I've forgotten how to do all this stuff but this might well be my issue.  Back then (2009) the choices were default, classic, core, Babylon.

If only I could get my brain to work and 'ding'  :D 

Like this though.

Could somebody babystep me through this painslessly so that I don't fiddle too much and make another fine mess?  Thanks in advance.  I'm feeling light at the end of the tunnel.
Title: Re: SMF Quiz
Post by: Kindred on January 19, 2016, 07:57:59 PM
You can not use themes for 1.1.x on 2.0.x... period

You can also not use rc2 or rc3 themes on 2.0.x

So... yes, the problem is your theme, and you will have to find another one... and you will not be able to use the css from your old theme.
Title: Re: SMF Quiz
Post by: CerebralJam on January 19, 2016, 08:39:48 PM
Thanks Kindred.



Title: Re: SMF Quiz
Post by: davejo on January 20, 2016, 04:04:43 AM
I think... I'm getting closer to the problem!

I casually clicked on my 'help' button today to find it giving me an error where it used to serve up the files no problems...
Quote
An Error Has Occurred!
Unable to load the 'manual' template.

 

so I did a search here for the error and came up with this thread: http://www.simplemachines.org/community/index.php?topic=443279.msg3114911#msg3114911

Now, the advice started by asking the person to check their site with domain/SMF/index.php?theme=1

When I do this, the help files ARE there and the menu for the quiz also works.

Could be something to do with my using Anecdota20bp - back in 2009 Curve wasn't around? and upgrading over the years (a few) then having to do the large upgrade recently? 'If' I can understand what this person did - and I can't - not sure what they mean by remove help files (?)...

But - does this mean, I should uninstall my old theme (Can I make a back up of the css so that I don't have to do all the tweaking again?) then make the new theme based on Curve?  I've forgotten how to do all this stuff but this might well be my issue.  Back then (2009) the choices were default, classic, core, Babylon.

If only I could get my brain to work and 'ding'  :D 

Like this though.

Could somebody babystep me through this painslessly so that I don't fiddle too much and make another fine mess?  Thanks in advance.  I'm feeling light at the end of the tunnel.

I replicated this issue on the test site. If I come out of the default theme where the quiz is working as it should then go into the 'Core' theme that menu issues is replicated. So I agree with Kindred that this is a theme suue and not a quiz issue.

This is what I would do.

Find a theme from the list in SMF that is compatible with the SMF version you are using and install it. The next step you can do one of two ways.

1. Then once the theme is installed go through the list of mods you have installed on your site and uninstall and re-install them one by one till you have completed the list, the problem with this is the possible errors you have with the code changes as if you force the uninstall you may be left with redundant code in the files that could cause errors later. If a mod uninstalls with no errors this should not be an issue, obviously another side effect of this route is that it might lose the info related to any database entries the mod has written.

2. If the above doesn't work then you will need to go through each mod and check the install instructions and where they should add code to the template files of the new theme then you will need to copy it over manually.

If it were me I would do this on my PC using Notepad++ and then save them, rename the existing templates on the site you are about to upload and see what effect is has. If it cuases errors then you can rename the original files back to what they were and your site should work as it does now.

Whatever you do it's going to be a long job. Of course I too am just a relative novice at this and there are problebly people out there that will say 'that's rubbish Dave' and give you a better option than I have, whatever happens good luck and feel free to test on my test site as you have been.

regards

Dave

PS. One last thing I have done before is, if you have a spare database you can create on your host and space to do it, create a mirror image of your site but starting from scratch with 2.0.11. When you do this ensure that your username and password are identical for the mirror set up as they are for the old site.

You will need to create a new folder in your current 'public_html' folder called 'mirror' then upload SMF 2.0.11 files to it, once you have donme that got to 'h**p://www.yoursite.com/mirror. When you go there you will go through the setup steps for the mirror site. Once the main forum is installed then add the mods you have on your existing site to the mirror one.

Ensure that you create backup at every stage before making changes as there is nothing worse than changing something that didn't work and it's overwitten an existing file.

Once you have all the mods installed as you want them then introduce the database tables from your current site to the new database by overwritting the existing tables the only table you should not overwrite if you go that way is the 'smf_settings' , I started with the 'members' table first and then went on to the 'messages' followed by the others that had entries in them, not all tables have entries in them. Again this is time consuming and it might even cause errors with the tables being introduced as you working from an old set up, but it seems to me you have few options open to you so I just thought I would share this with you.
Title: Re: SMF Quiz
Post by: CerebralJam on January 20, 2016, 07:58:24 AM
Absolutely love your reply, Dave... I can see you have put a lot of time into your answer for me and very helpful.  I also really appreciated that you allowed me to test the quiz install/uninstall on a clean 2.0.11 and see the effect on the database.  Sadly, my old forum did not say - 'looks like you are doing an update ... database safe' :D  So not attempting to uninstall anything on this version as yet.

I had started to build a copy of the site using new 2.0.11 installation (thinking I could migrate it) before the transfer of the old site to new (webhost) servers AND upgrade of the old once transferred. So I do have two sets of public_html directories with my new hosts I can swap around, differently named and how I had been testing it.  Didn't think to test by answering some quizzes and then trying an uninstall so you helped me a lot there.

I can add as many sql databases as I wish and so your suggestion on creating a new database and copying across database  tables is also extremely helpful - especially on an experimental/learning curve basis. 

I love Notepad++ to the extent I even opt to keep the old icon when prompted on every update. Love being able to see the line numbers! 

There is a theme fairly similar to the one I use, built by the same author (Crip) last updated 2013, same name with _205 added, I downloaded this early 2014. Only difference being the top menu/buttons/display and a slightly lighter shade of blue header image (I had painstakingly custom designed the logo to the background gradient, shading in Photoshop to blend in with old theme  - sticks out a wee bit in this newer theme ).  I'm assuming this was for 2.0.5 build. This is the one that works on a fresh install. My headache was going through the css and customising it again - I wanted a shortcut. Couldn't remember what I did back in 2009 - (images/added sub navigation to front html pages etc and where). Doesn't hurt to refresh this knowledge on the learning curve though.

So, at the moment I have

1) the old upgraded site with this very slight niggle of the theme quiz menu (css) otherwise displaying perfectly - which to me was what I was hoping I could correct - everything else works brilliantly so far.
                (As you have said, NOT a quiz fault. And I did recognise that. Was just hopeful that someone who designed/updated the quiz could point me in the right direction with editing.
                But obviously not good now discovering having no help files for forum members!  :D
)

2) fresh install with alternative updated theme (but not completed customisation) that works on 2.0.11 minus the all important info/old database.

Having discovered that the default (Curve) (2.0) gives me back the help files on my updated old forum I started working on installing the alternative theme as a copy of the default renamed, and then customising it again.  The Core theme says default theme of SMF's previous incarnation.



Really, really appreciate all you have said in your post above and yeah, plan in action for positive outcome, even if a long path.  BIG THANK YOU.
Title: Re: SMF Quiz
Post by: davejo on January 20, 2016, 08:32:15 AM
I'm glad it was of some help.
Title: Re: SMF Quiz
Post by: davejo on January 21, 2016, 08:30:55 AM
One other thing I should mention about using the old tables on the new database is that the paths to various templates and folders on your site will not be correct i.e. file attachments folder will point to the old address and not the new one and therefore would give you an error on the site, the same can be said for the path to the themes too. If you download your complete database, you can open it in Notepad++ and use the 'Replace' option under the search function. If you need to know more just ask me.
Title: Re: SMF Quiz
Post by: CerebralJam on January 21, 2016, 08:49:34 AM
Hey, again REALLY helpful information.  I would not have known that. I want this year to study SQL and by creating a mirror site  (assuming this is an independent 'likewise' new install, not connected, but using information from what I already have functioning as a testing tool, with a new database) as you have suggested and using this with Notepad++/ and phpmyAdmin  I can't think of a better way to see how it all works underneath without causing any damage. Understanding paths obviously has been a big problem in just upgrading things and adding things on and off automatically without knowing what it actually does.

Thank you again for such encouragement and giving someone the courage to try things out.  Brilliant!  Happy also to have someone who is willing to give their time in the way you are doing.

I want to say again, because this is the quiz thread, what an incredible mod this is.  A lot of thought has been put into how to create it and make it interactive - even with members being able to create quizzes, not just the administrator.  A great feature for any website and it does show the power of what can be done.  Hats off to original author and those who have taken it on to keep it going and functional with the many advancements of the forum coding over the years.

Title: Re: SMF Quiz
Post by: lemur21 on February 24, 2016, 06:03:14 PM
DaveJo,

Was this ever updated (?)/changed to allow administrators' scores to be counted (especially if they didn't *create* the quiz; but merely downloaded them)?

I love the idea of this -- but, I'm probably the person who'd be most interested in it (and I'm the admin). I don't love the idea of creating another account (because I can't be certain I'll remember to keep changing back) .....
Title: Re: SMF Quiz
Post by: davejo on February 25, 2016, 03:19:50 AM
DaveJo,

Was this ever updated (?)/changed to allow administrators' scores to be counted (especially if they didn't *create* the quiz; but merely downloaded them)?

I love the idea of this -- but, I'm probably the person who'd be most interested in it (and I'm the admin). I don't love the idea of creating another account (because I can't be certain I'll remember to keep changing back) .....

Hi Lemur

Nothing has changed. You dont have to keep changing the settings once it's done though. If you look at the attachment below you will see that in the Quiz/Settings page you can set the ID of the member who you want to be associated with importing the quizzes, once this is done it will remain that way unless you change it.

If you have already imported the quizzes then you will need to create a new member called 'Admin', remember the User ID then go into your cPanel to the 'phpmyadmin' section and change the ID from you to the 'Admin' IDin the database tables.

If you don't want to do that, then although I haven't tried it, maybe you could uninstall all the quizzes and then set the used ID then re-import them again, you might lose the scores but at least you will be able to play them as I do sometimes.

Hope that helps some

Dave
Title: Re: SMF Quiz
Post by: lemur21 on February 25, 2016, 09:20:16 AM
Dave - one other question then (a two-parter):

I haven't installed any quizzes yet; so this is good ...

So - I have a user that is inactive on the site. I can easily use that ID as the importer. My question though -- does that make this inactive user the only one who can access the quiz admin panel? Or, does the overall site admin still have administrative rights over the quizzes and the control panel too (even though the inactive member is the quiz importer?)
Title: Re: SMF Quiz
Post by: davejo on February 25, 2016, 12:26:15 PM
Dave - one other question then (a two-parter):

I haven't installed any quizzes yet; so this is good ...

So - I have a user that is inactive on the site. I can easily use that ID as the importer. My question though -- does that make this inactive user the only one who can access the quiz admin panel? Or, does the overall site admin still have administrative rights over the quizzes and the control panel too (even though the inactive member is the quiz importer?)

Lemur

No the inactive user will not have admin rights at all, only site admin have access to the quiz admin unless you say otherwise through permissions.
Title: Re: SMF Quiz
Post by: lemur21 on February 25, 2016, 03:32:20 PM
Wonderful! That's perfect -- there's definitely at least one person on my site who will have no interest in this.

I see in your signature - you have quizzes available  (I need to register on your site). And, earlier in this thread, you had a 10-pk of quizzes available. How many packs of quizzes exist currently? Do you (or does anyone) maintain a site where all user-designed quizzes are maintained?

It does sound super-easy, so I expect I will be able to launch it on my site, soon!
Title: Re: SMF Quiz
Post by: davejo on February 25, 2016, 04:02:49 PM
Wonderful! That's perfect -- there's definitely at least one person on my site who will have no interest in this.

I see in your signature - you have quizzes available  (I need to register on your site). And, earlier in this thread, you had a 10-pk of quizzes available. How many packs of quizzes exist currently? Do you (or does anyone) maintain a site where all user-designed quizzes are maintained?

It does sound super-easy, so I expect I will be able to launch it on my site, soon!

Lemur

I cant remember how many pks there are but I know there are in total more than 540 quizzes. You will note in a previous post I mention that you will need to create the categories before you add the quiz packs. The reason for this is so that the quizzes go into the categories when you install them rather than assigning to quizzes to a category later, which believe me is a long process. Of course you dont have to do it that way at all, it really is up to you.

One last thing, only add the quizzes in smallish batches as it takes a while for them to load. If you need any help let me know.

Happy quizing

Dave

PS. You will see on my site that there are inteactive music quizzes, these are not in any of the packs as the require special settings.
Title: Re: SMF Quiz
Post by: lemur21 on February 25, 2016, 04:26:22 PM
Is this thread the best way to reach you?

In terms of creating categories - are the quiz packs all listed with categories already (In other words, if I create a "music" category; how would I know which pack contains "music" questions)?
Title: Re: SMF Quiz
Post by: davejo on February 25, 2016, 04:50:34 PM
Is this thread the best way to reach you?

In terms of creating categories - are the quiz packs all listed with categories already (In other words, if I create a "music" category; how would I know which pack contains "music" questions)?

Lemur

The quiz packs are in the categories as per my website quiz. Download the quiz packs first then extract the file and you'll see the seperate packs.

As far as getting me is concerned you can reply to this thread or reply to the thread on my site. Note that I'm in the UK and I get up for work at 04.45 so I'm not normally around until the evening but I do sometimes see and reply to posts during the day.

Dave
Title: Re: SMF Quiz
Post by: TNSeaBee on April 17, 2016, 11:37:14 PM
I am currently working on a website for my Battalion's warfare qualification program and I am interested in a quiz mod to help people study. I tried both downloads and at the point on installing...I get a warning stating it is not recommended for install...any clues?
Title: Re: SMF Quiz
Post by: davejo on April 18, 2016, 04:26:44 AM
I am currently working on a website for my Battalion's warfare qualification program and I am interested in a quiz mod to help people study. I tried both downloads and at the point on installing...I get a warning stating it is not recommended for install...any clues?

Can you tell us exactly what the error was please?
Title: Re: SMF Quiz
Post by: davejo on April 18, 2016, 06:00:03 AM
I am currently working on a website for my Battalion's warfare qualification program and I am interested in a quiz mod to help people study. I tried both downloads and at the point on installing...I get a warning stating it is not recommended for install...any clues?

Can you tell us exactly what the error was please?

As I can't edit my post I'll have to do anther one.

We also need to know what version of SMF you are running as well as what the error was. Take a screenshot of the error to post it as an attachment or copy and paste the text into a code box please.
Title: Re: SMF Quiz
Post by: davejo on June 05, 2016, 06:01:14 AM
I know that normally I answer questions here, but I have a question about a code error that I'm hoping one of you coders might be able to answer, that's if you read this of course.

The site error is

Code: [Select]
[05-Jun-2016 05:16:07 Europe/London] PHP Fatal error:  Cannot redeclare GetQuestionsData() (previously declared in //public_html/Sources/SMFQuizAdmin.php:1288) in //public_html/Sources/SMFQuiz.php on line 221
It doesn't happen every day but can happen a couple of times a day.

I'm not asking for a fix just wondering if anyone has seen that type of error before and what basically leads to it.
Title: Re: SMF Quiz
Post by: Shambles on June 05, 2016, 06:46:26 AM
Quote from: davejo
... if anyone has seen that type of error before and what basically leads to it.

It's been coded that way - the function is declared in both source files, for some reason, but they're not identical in operation.
Title: Re: SMF Quiz
Post by: Kindred on June 05, 2016, 09:46:41 AM
Yikes...  That's a no-no... Wonder why I have never seen that before.
Functions in different files should have different names.
Title: Re: SMF Quiz
Post by: davejo on June 05, 2016, 10:12:07 AM
Thanks for the replies guys
Title: Re: SMF Quiz
Post by: Krzysiak[PL] on March 04, 2017, 11:18:50 AM
I don't know how to contact you but here is my Polish translation

Despite the fact, that this application really gives a lot of joy, it was a pain in the ass for me (I don't know javascript and php) to find out where do you keep still and still untranslated parts. Heh my browser keeps scripts in temp, so I was almost insane when I finally found this script and It's changing didn't worked, not mentioning 1/2 hour break between quizes. Luckily I have my old IE :D

PS
What the hell are orphaned questions?
Title: Re: SMF Quiz
Post by: johannes47 on March 06, 2017, 03:30:39 PM
hello,

Is it possible that the quizzes questions and answers translate to dutch?
you can perhaps share

thank you

Johannnes
Title: Re: SMF Quiz
Post by: Fluc on March 09, 2017, 07:30:50 AM
Hello all, I tried to install smf_quiz-1.1.1-beta2 to smf_2-1_beta2, it was only possible to install in "emulation mode 2.0".
After installation I've got the following errors as shown in the screen.
Can anyone help or guide how to fix this?
Title: Re: SMF Quiz
Post by: Kindred on March 09, 2017, 08:28:27 AM
this mod will almost definitely NOT work on 2.1 beta (or 2.1 final, when it comes out...  it would require significant recoding)

Besides, you should not be running 2.1 on a live site... and should not be running 2.1 beta 2 at all, since that has all sorts of issues that have been fixed.
Title: Re: SMF Quiz
Post by: stoneageman on June 04, 2017, 11:46:27 AM
Tried this mod with SMF 2.0.14 and PHP 7. All seemed OK until I went to exit a completed quiz and a popup appeared telling me of a parsing error. The quiz was then shown as uncompleted. This had been working fine on PHP 5.5.  Not expecting a fix, but would be nice to carry on using it.
Title: Re: SMF Quiz
Post by: lemur21 on June 16, 2017, 10:21:23 AM
Is this thread the best way to reach you?

In terms of creating categories - are the quiz packs all listed with categories already (In other words, if I create a "music" category; how would I know which pack contains "music" questions)?

Lemur

The quiz packs are in the categories as per my website quiz. Download the quiz packs first then extract the file and you'll see the seperate packs.

As far as getting me is concerned you can reply to this thread or reply to the thread on my site. Note that I'm in the UK and I get up for work at 04.45 so I'm not normally around until the evening but I do sometimes see and reply to posts during the day.

Dave



Hi Dave,

So, it's been over a year, and now, I'm *finally* setting this mod up :)

I downloaded the quiz pack from your site and imported *all* the quizzes in. They all came in just fine!

Now - my two remaining questions (and, hopefully, I won't wait a year to implement these!) :)

1. I want to, functionally, run a league; but I don't want random questions. I'd like to choose a quiz - let the group know "hey, this is today's quiz" and have everyone take that same quiz. Am I able to do that?

2. On your *actual* site, I see a BUNCH of really cool quizzes ("One Hit Wonders" "Beat the Intro") - are those also available to be downloaded and brought into the quiz app?

Thanks again!
Title: Re: SMF Quiz
Post by: Macabreo on June 16, 2017, 11:30:38 AM
That's what I was looking for my education forum. Thanks!
Title: Re: SMF Quiz
Post by: davejo on June 16, 2017, 12:35:24 PM
Is this thread the best way to reach you?

In terms of creating categories - are the quiz packs all listed with categories already (In other words, if I create a "music" category; how would I know which pack contains "music" questions)?

Lemur

The quiz packs are in the categories as per my website quiz. Download the quiz packs first then extract the file and you'll see the seperate packs.

As far as getting me is concerned you can reply to this thread or reply to the thread on my site. Note that I'm in the UK and I get up for work at 04.45 so I'm not normally around until the evening but I do sometimes see and reply to posts during the day.

Dave



Hi Dave,

So, it's been over a year, and now, I'm *finally* setting this mod up :)

I downloaded the quiz pack from your site and imported *all* the quizzes in. They all came in just fine!

Now - my two remaining questions (and, hopefully, I won't wait a year to implement these!) :)

1. I want to, functionally, run a league; but I don't want random questions. I'd like to choose a quiz - let the group know "hey, this is today's quiz" and have everyone take that same quiz. Am I able to do that?

2. On your *actual* site, I see a BUNCH of really cool quizzes ("One Hit Wonders" "Beat the Intro") - are those also available to be downloaded and brought into the quiz app?

Thanks again!

Hi Lemur,

The One hit wonders are not part of the package you downloaded because I created those myself and the links are all going back to my site for the music files, there is the matter of DRM associated with them too. If I was the share the files with you I could in theory get in trouble for it.

If you have the time to mess about then it really isn't to hard to do it yourself. If you do go for that type of quiz, that plays music, then you will need an swf player in the public_html section of your site. The one I use is 'player_mp3.swf'. If you want a copy it's attached here. (It's a flash player)

I have added a couple of edited screenshots below to try and help you out, sorry it's not better than that but I'm flying off on holiday tomorrow and have bags to pack etc.

You will see in one screenshot, for the question, I have two folders in a row, you do not have to do this, the only reson I have it that way is because I created a main folder for quiz music, then sub folders for each quiz under that.

Happy creating

Title: Re: SMF Quiz
Post by: lemur21 on June 20, 2017, 08:49:34 PM
Hi Dave,

Totally understand about the questions then -- yes, I know I can build my own (but, I also want to be able to participate in the quizzes; and - I think - using my own creations would be a tad bit unfair) :)

I had thought they might be user-generated quizzes ... like a repository of quizzes submitted by other users.


I did ask this though, as well:

I want to, functionally, run a league; but I don't want random questions. I'd like to choose a quiz - let the group know "hey, this is today's quiz" and have everyone take that same quiz. Am I able to do that?
Title: Re: SMF Quiz
Post by: davejo on June 21, 2017, 07:07:27 AM
Hi Dave,

Totally understand about the questions then -- yes, I know I can build my own (but, I also want to be able to participate in the quizzes; and - I think - using my own creations would be a tad bit unfair) :)

I had thought they might be user-generated quizzes ... like a repository of quizzes submitted by other users.


I did ask this though, as well:

I want to, functionally, run a league; but I don't want random questions. I'd like to choose a quiz - let the group know "hey, this is today's quiz" and have everyone take that same quiz. Am I able to do that?

Hi Lemur

As far a the quiz league is concerned I'm sorry I don't know, I have never used that function or even loooked in to it.

Title: Re: SMF Quiz
Post by: SaltedWeb on December 06, 2017, 09:03:17 PM
Just curious has anyone installed this on 2.0.15 with any success ?
Title: Re: SMF Quiz
Post by: Rock Lee on December 06, 2017, 09:57:38 PM
Just curious has anyone installed this on 2.0.15 with any success ?
Just emulate the required version and I install it without major problems ... now I have tested it locally.


Regards!
Title: Re: SMF Quiz
Post by: SaltedWeb on December 06, 2017, 10:39:48 PM
Tried a couple different options at install still wont install properly seems the issue is  with Sources/Subs.php
I think another mod , modified it as I can't find the correct line for it,
Title: Re: SMF Quiz
Post by: Rock Lee on December 06, 2017, 10:44:41 PM
Tried a couple different options at install still wont install properly seems the issue is  with Sources/Subs.php
I think another mod , modified it as I can't find the correct line for it,

Well I test it in a clean installation, what other modification has been made? can that be interfering with the installation ...


Regards!
Title: Re: SMF Quiz
Post by: br360 on December 06, 2017, 10:51:35 PM
There are two edits to subs.php this mod makes.

Which edit failed and what is it looking to add?
Title: Re: SMF Quiz
Post by: SaltedWeb on December 06, 2017, 10:59:18 PM
Well I found the right code to change and it allowed the install with no errors now.
But it gives a database error when trying to add questions.
It comes up with
Wrong value type sent to the database. Integer expected. (id_quiz) in the error log its: SMFQuizDb.php
that its not sending correctly too.
Title: Re: SMF Quiz
Post by: SaltedWeb on December 06, 2017, 11:01:26 PM
I am testing this on a test domain not a used forums. Wanted to see if I could get it to work there. I am going to uninstall all mods and one by one see what is cause the issue, I have 7 mods including simple portal. Thanks guys I think I can poke around enough to track down the issue.
Title: Re: SMF Quiz
Post by: br360 on December 06, 2017, 11:02:01 PM
Maybe this? https://www.simplemachines.org/community/index.php?topic=293949.msg3196000#msg3196000
Title: Re: SMF Quiz
Post by: SaltedWeb on December 07, 2017, 08:24:14 PM
So tried a bunch on different things reading up with what others have tried.
So I tried a fresh unadulterated forum and still get this error Wrong value type sent to the database. Integer expected. (id_quiz)  error in File: Sources/SMFQuizDb.php
Not sure why but in an untouched forum installs but gives errors and wont create any quizes. I am going to bail on help on this, I remember a couple years ago using this
and it was very problematic for me, thought id give it a go, my forum runs clean but this doesn't play nice for some reason with this. Would have solved some education
areas I wanted to include in my site....and then have a test for them. Thanks again...
Title: Re: SMF Quiz
Post by: jack001 on January 20, 2018, 05:18:17 AM
How to make it responsive? I mean mobile friendly.
Title: Re: SMF Quiz
Post by: Rock Lee on February 12, 2018, 08:07:20 PM
How to make it responsive? I mean mobile friendly.

We would have to modify the visual part also to what extent adaptive ... I and I adapt a mod I like and it is giving me problems by having the content in several resolutions, we simply take time and some knowledge.


Regards!
Title: Re: SMF Quiz
Post by: landyvlad on June 18, 2018, 08:58:48 PM
So has anyone got this running successfully in 2.0.15 yet? And if so, how?
Title: Re: SMF Quiz
Post by: Rock Lee on June 19, 2018, 01:08:25 PM
So has anyone got this running successfully in 2.0.15 yet? And if so, how?

I did not try it again but when I tried it emulating the version (https://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version) and keeping the php in 5.3 (if my memory fails). It went without problems but I think now for the newest branch of php I have my doubts...


Regards!
Title: Re: SMF Quiz
Post by: landyvlad on June 25, 2018, 08:15:03 PM
Thanks Rock
Title: Re: SMF Quiz
Post by: jack001 on June 27, 2018, 10:03:00 AM
would love to have this for 2.1 beta4
Title: Re: SMF Quiz
Post by: Kindred on June 27, 2018, 11:53:44 AM
unlikely
Title: Re: SMF Quiz
Post by: palmdoc on February 17, 2019, 06:40:36 PM
Any way to export the results?
Title: Re: SMF Quiz
Post by: palmdoc on February 18, 2019, 03:32:28 PM
So has anyone got this running successfully in 2.0.15 yet? And if so, how?

It's running fine for me in 2.0.15
There was an error message for the Sunrise theme but none for Dani
Anyhow it seems to work for Sunrise

Looks slick but the actual quiz could be more mobile friendly. But if I put the phone in Landscape mode it's do-able
Title: Re: SMF Quiz
Post by: palmdoc on February 19, 2019, 06:36:24 PM
Anyone know a working site where one can download quizzes?
Title: Re: SMF Quiz
Post by: palmdoc on February 19, 2019, 10:00:10 PM
Hmmm quite quiet!
No one still using this mod?
I have to congratulate the developers - it's 10 years since the project started. There may have been no new changes for some years but currently it works very well !
Title: Re: SMF Quiz
Post by: quiz_modder on April 13, 2019, 06:09:23 AM
Wow, haven't logged on here for many years and can't believe the mod is still being used and is (to some extent) working. Hope you're enjoying it.
Title: Re: SMF Quiz
Post by: 4everBlue on April 13, 2019, 06:40:17 AM
I upgraded to the new version, and now all quizzes hang and will not load.
I don't have fancybox installed, so what else could it be clashing with?
Title: Re: SMF Quiz
Post by: davejo on April 13, 2019, 06:41:55 AM
Wow, haven't logged on here for many years and can't believe the mod is still being used and is (to some extent) working. Hope you're enjoying it.

I installed it on my brothers site a few years ago and it's still working, running on 2.0.15

Code: [Select]
http://www.gardenguru.co.uk
Title: Re: SMF Quiz
Post by: davejo on April 13, 2019, 06:46:16 AM
I upgraded to the new version, and now all quizzes hang and will not load.
I don't have fancybox installed, so what else could it be clashing with?

If I recall rightly there might have been issues with Java script...but don't hold me to that, not sure what the fix was as it's so long ago but if you trawl through this thread you might find something.
Title: Re: SMF Quiz
Post by: davejo on April 13, 2019, 06:56:03 AM
Anyone know a working site where one can download quizzes?

I'm not sure which quizzes you have installed but the ones in the link in my signature are the ones I've had since the start of this back in 2011
Title: Re: SMF Quiz
Post by: 4everBlue on April 15, 2019, 03:35:18 PM
Ok, thanks.
Title: Re: SMF Quiz
Post by: Study Force on April 16, 2019, 04:32:26 PM
Has anyone tried installing this on 2.1?

How difficult will it be to port to 2.1?
Title: Re: SMF Quiz
Post by: maximus23 on April 17, 2019, 05:19:11 PM
Has anyone tried installing this on 2.1?

Yes 2.1 RC2 :)

It is installed on my forum. Php Version 7.1

How difficult will it be to port to 2.1?

This mod needs a major update.

What is the current license of this module?

:)
Title: Re: SMF Quiz
Post by: Study Force on April 17, 2019, 07:41:25 PM
^^ I'm assuming you didn't use the package manager
Title: Re: SMF Quiz
Post by: maximus23 on April 17, 2019, 11:08:50 PM
^^ I'm assuming you didn't use the package manager
I use the package manager for my personal use.

Otherwise each update of Smf is very complex.

If the mod is not copyleft the redistribution is prohibited.

:)
Title: Re: SMF Quiz
Post by: Arantor on April 18, 2019, 03:21:37 AM
The mod is not obviously copyleft that I can see though I have no desire to go through 50 pages to see if there was a comment suggesting a licence.
Title: Re: SMF Quiz
Post by: davejo on April 18, 2019, 11:56:22 AM
Its been through two people.

It started with quiz_modder, as everyone knows, who said that Emanuelle could update it some time back that's as far as it's been.

I do know there is a post, in the thread, from quiz_modder giving anyone who wants to update it permission. I'm not aware that Emanuelle took actual ownership of it. So maybe that's enough if someone else wants to have a go.

Just found this fron 11th September 2013

(and, I believe that the original author of this mod released the code into the public domain)

Yes, I did
Title: Re: SMF Quiz
Post by: Arantor on April 18, 2019, 12:07:41 PM
Unfortunately it's not really enough in the context we're talking about here.

Software licensing is a horrendously complicated thing (anyone who was here went SMF 1.1 with its custom licence transitioned SMF 2.0 with its BSD licence might have been aware), and its author giving permission to update it doesn't really quite cut it :(

Technically, any mod without an explicit licence automatically falls under copyright law which includes no automatic right to be redistributed or modified. This is tempered on the one hand by the fact that if you upload it with what amounts to a fairly clear implication of 'this will be made available to people' you probably don't have *that* much legal recourse if you come back 5 years later and claim you didn't know and now want to sue everyone for breach of copyright.

Updating is a lot more complicated because you get into the mess of 'this is now legally speaking a work with multiple authors and multiple implied copyrights'. While it's *probably* fine, and the permission being written in-thread does simplify it, it's still not entirely clear cut (e.g. in the event of a vulnerability in a mod causing a site to be hacked) there's also a lack of warranties protecting the original author who in that situation could theoretically be sued. It's... not great. (And also why SMF has a BSD licence, explicitly citing a lack of warranty.)

In practical terms, someone tweaking it and posting it here as an attachment is probably fine, though that's ultimately an SMF team decision (I don't know what current policy is), but this is why current policy is to try to insist on all mods having licences, explicitly to prevent this kind of problem being a problem.
Title: Re: SMF Quiz
Post by: Study Force on April 18, 2019, 12:45:48 PM
^^ I'm assuming you didn't use the package manager
I use the package manager for my personal use.

Otherwise each update of Smf is very complex.

If the mod is not copyleft the redistribution is prohibited.

:)


Not sure I understand. When you installed the quiz mod on 2.1, did you install it manually? Do you mind providing a link to your 2.1 website displaying it in action?
Title: Re: SMF Quiz
Post by: maximus23 on April 22, 2019, 07:01:01 AM
In practical terms, someone tweaking it and posting it here as an attachment is probably fine, though that's ultimately an SMF team decision (I don't know what current policy is), but this is why current policy is to try to insist on all mods having licences, explicitly to prevent this kind of problem being a problem.
Hi,

What is the team's position on this issue?

Did the license go into the public domain or not following the author's statement on this subject?

Quote from: Study Force
When you installed the quiz mod on 2.1, did you install it manually?

No via the "Packages Manager" :)

Quote from: Study Force
Do you mind providing a link to your 2.1

See my profile :)

Title: Re: SMF Quiz
Post by: Study Force on April 22, 2019, 11:52:14 AM
I tried the package manager using SMF 2.1, only to see a ton of errors show up.

I checked it out on your website. The mod is completely broken on mobile view. This addon needs a complete rewrite to accommodate smaller screens. It's unusable in today's internet standards.
Title: Re: SMF Quiz
Post by: davejo on April 22, 2019, 12:05:33 PM
I tried the package manager using SMF 2.1, only to see a ton of errors show up.

I checked it out on your website. The mod is completely broken on mobile view. This addon needs a complete rewrite to accommodate smaller screens. It's unusable in today's internet standards.

I tried to install it on my 2.1 test site and although I could edit some of the errors the index.css was difficult and when I eventually got it installed (emulating 2.0) there was a database table error, it was at that point I gave up as I didn't have the time to carry on
Title: Re: SMF Quiz
Post by: maximus23 on April 22, 2019, 01:51:30 PM
I tried the package manager using SMF 2.1, only to see a ton of errors show up.

I checked it out on your website. The mod is completely broken on mobile view. This addon needs a complete rewrite to accommodate smaller screens. It's unusable in today's internet standards.

No, the site is not optimized for mobiles and this will not be done until the final version 2.1 of Smf. It's just for testing.

If you can't use the license, it's useless, you have to start all over again or no sharing is possible.

:)
Title: Re: SMF Quiz
Post by: davejo on May 07, 2019, 01:39:29 PM
For all those following this thread, I have found the images folder for the quizzes. I have now added this to the download.

        There is a database table included, which will add categories for you also, but only use this on a fresh install, unless you know a way to merge the new table with your existing table. (If you don't merge them you might mess up your exisiting setup, so please be warned)

        If anyone wants to see what the quiz looks like on SMF 2.0.15 then go to the 'Site' link below. It's a test site for the quiz only and guests can see it and go through the categories etc but the games cannot actually be played.

        The reason I did this is to give everyone an idea of what the questions/images/categories all look like before deciding if they want to install it on their own site. Please also note that this is a fresh install on SMF 2.0.15, using the default theme, and has no other mods installed and there were no errors on installation, so if you go ahead and see install failures then it will probably be because the files it's trying to modify have already been changed by other mods. I cannot help you with any install failures.

        A brief walkthrough for the way I installed it all;

        1. Upload the quiz mod and install.
        2. Extract the file downloaded from my host.
        3. Find 'Themes/default/images/quiz_images/Questions'
        4. Upload all the images in the extracted 'Questions' folder on your PC to the site 'Questions' folder and do the same for the 'Quizes' folders to.
        5. Access your database tables and delete the 'smf_quiz_category' table. (I use PhpMyAdmin in my cPanel to do this, yours might be different)
        6. Now open 'Quiz Category table.txt' file with something like NotePad++ and copy everything
        7. Now go back to your database and 'Run SQL query on database' and add the copied table, then click on OK to run the query...this should add those tables to your database. What that will do is add the 'Categories' (including the images) to the quiz.
        8. Now go into the 'Quiz Admin' go to 'Quiz Importer' and start to add the quizzes that are in the *.xml files in the main 'QuizPackagesUpdated05.05.19' folder.

        Once you have added the quizzes they should automatically be added to the correct Category and the whole things should look like my test site.

        I hope that helps some of you to get this Quiz up and running on your sites.
Title: Re: SMF Quiz
Post by: Gwenwyfar on May 07, 2019, 04:59:35 PM
In practical terms, someone tweaking it and posting it here as an attachment is probably fine, though that's ultimately an SMF team decision (I don't know what current policy is), but this is why current policy is to try to insist on all mods having licences, explicitly to prevent this kind of problem being a problem.
Hi,

What is the team's position on this issue?

Did the license go into the public domain or not following the author's statement on this subject?
If the author has said it's in the public domain, then it is fine. For anything else (ex: someone taking over the mod), we'd need explicit permission from the author.
Title: Re: SMF Quiz
Post by: Study Force on May 10, 2019, 08:00:45 PM
Is there an option that allows guests to take quizzes?
Title: Re: SMF Quiz
Post by: davejo on May 11, 2019, 03:01:37 AM
Is there an option that allows guests to take quizzes?

The short answer is no. The link in my signature should let anyone who is a member of this forum download the file. I have logged out of FileFactory and it works when I click on it.

If you mean can it be done from a site member who can use the quiz on another site the answer is no only admin can export quizzes.
Title: Re: SMF Quiz
Post by: Study Force on May 11, 2019, 08:41:42 PM
I'm surprised the option to allow guests to play hasn't been incorporated. I know they're different mods, but SMF Arcade allowed for this and the recording of scores, which I think increased forum engagement back when I had it.
Title: Re: SMF Quiz
Post by: Arantor on May 12, 2019, 03:23:34 AM
The question he answered wasn’t the one you asked. His answer related to the download he provided, not whether the quiz mod supports guests.

Thing is, you could always try it to find out...but since it isn’t listed as a feature, I’d suggest it probably isn’t, and guest anything is fragile since you have no way to reliably track anything.
Title: Re: SMF Quiz
Post by: davejo on May 12, 2019, 04:29:14 AM
 'Study Force' your comment 'guests to take quizzes' I read as guests being able to download the quizzes rather than play them.

The mod does not allow guests to play the quizzes, there is only one permission in the settings for guests and that's to view the quiz only.

Title: Re: SMF Quiz
Post by: palmdoc on June 12, 2019, 10:35:29 PM
Wow, haven't logged on here for many years and can't believe the mod is still being used and is (to some extent) working. Hope you're enjoying it.

It's a great Mod. It should not be laid to rest and the biggest challenge now is to make this more mobile friendly. My wish and hope is someone can do this.
Title: Re: SMF Quiz
Post by: quiz_modder on August 11, 2019, 09:25:37 AM
Just to reiterate my view on this

1. I created this mod a long time ago
2. I didn't have the time to work on it anymore
3. Instead of just deleting the mod code, I was happy for anyone to take it forward with no caveats from me
4. I am not responsible if people want to use this mod and it exposes any security holes or other issues on their site
5. Happy to state this somewhere else if appropriate and make anything else clear if needed

Hope that may clear things up

Thanks