News:

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

Main Menu

SMF Quiz

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

Previous topic - Next topic

chadon

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. :(

quizzz

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?

chadon

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. :)

quiz_modder

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

islam2hamy

xml error :

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

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

p.s:i am test the mod on localhost

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





quiz_modder

Quote from: 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 />

Quoteline 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


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

islam2hamy

woow,yes it is
i forgot to add it,

Thank you , and thank you chadon.

that was the problem not Java error

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





islam2hamy

were can i found

QuoteQuiz 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 ??

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





quiz_modder

Quote from: islam2hamy on October 03, 2009, 07:59:27 AM
were can i found

QuoteQuiz 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);

islam2hamy

Quote from: S_M_F_Modding on October 03, 2009, 08:31:47 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.

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





meehan09

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

quiz_modder

Quote from: islam2hamy on October 03, 2009, 08:44:28 AM
Quote from: S_M_F_Modding on October 03, 2009, 08:31:47 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.

islam2hamy

ok,
Thank you for this very good mod .

Arabic Translator - Web Designer
My Mods / My Themes  //  GfxLand





quiz_modder

Quote from: 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

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.

meehan09

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

quiz_modder

Quote from: 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

Sorry, I am not sure I understand the question. Could you explain that again?  :-[

meehan09

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

quiz_modder

Quote from: 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

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

meehan09

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

quiz_modder

Quote from: 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

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?

Advertisement: