Wp-Pro-Quiz - Version 0.18

Version Description

Download this release

Release Info

Developer xeno010
Plugin Icon 128x128 Wp-Pro-Quiz
Version 0.18
Comparing to
See all releases

Code changes from version 0.17 to 0.18

js/wpProQuiz_admin.js CHANGED
@@ -246,19 +246,15 @@ jQuery(document).ready(function($) {
246
  },
247
 
248
  setValueClassicAnswer: function() {
249
- var i = 0;
250
- $('input[name="answerJson[classic_answer][correct][]"]').each(function() {
251
- this.value = i++;
252
- });
253
-
254
- i = 0;
255
- $('input[name="answerJson[answer_matrix_sort][sort_string_html][]"]').each(function() {
256
- this.value = i++;
257
- });
258
 
259
- i = 0;
260
- $('input[name="answerJson[answer_matrix_sort][answer_html][]"]').each(function() {
261
- this.value = i++;
 
 
 
 
 
262
  });
263
  }
264
  };
246
  },
247
 
248
  setValueClassicAnswer: function() {
 
 
 
 
 
 
 
 
 
249
 
250
+ $('.classic_answer ul, .matrix_sort_answer ul, .sort_answer ul').children().each(function() {
251
+ var index = $(this).index();
252
+
253
+ $(this).find( 'input[name="answerJson[classic_answer][correct][]"], '
254
+ + 'input[name="answerJson[classic_answer][html][]"], '
255
+ + 'input[name="answerJson[answer_matrix_sort][answer_html][]"], '
256
+ + 'input[name="answerJson[answer_matrix_sort][sort_string_html][]"], '
257
+ + 'input[name="answerJson[answer_sort][html][]"]').val(index);
258
  });
259
  }
260
  };
js/wpProQuiz_admin.min.js CHANGED
@@ -5,7 +5,7 @@ a('input[name="exportItems"]');this.checked?c.attr("checked",!0):c.attr("checked
5
  break;case "matrix_sort_answer":c.displayMatrixSortAnswer();break;case "cloze_answer":c.displayClozeAnswer()}});a(".addAnswer").click(function(){c.addAnswer(this)});a(".deleteAnswer").click(function(){c.deleteAnswer(this)});a("#saveQuestion").click(function(){return e()});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move",update:function(){c.setValueClassicAnswer()}});a("#wpProQuiz_correctSameText").change(function(){this.checked?a("#wpProQuiz_incorrectMassageBox").hide():
6
  a("#wpProQuiz_incorrectMassageBox").show()});a("#wpProQuiz_tip").change(function(){this.checked?a("#wpProQuiz_tipBox").show():a("#wpProQuiz_tipBox").hide()});a('input[name="pointsPerAnswer"]').change(function(){this.checked?a("#wpProQuiz_showPointsBox").show():a("#wpProQuiz_showPointsBox").hide()});a(".wpProQuiz_demoBox a").mouseover(function(){a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1})},displaySingle:function(b){a(".classic_answer").find('input[name="answerJson[classic_answer][correct][]"]').each(function(){a("<input type="+
7
  b+" />").attr({name:this.name,value:this.value,checked:this.checked}).insertBefore(this)}).remove();a(".classic_answer").css("display","block")},displayFreeAnswer:function(){a(".free_answer").css("display","block")},displaySortAnswer:function(){a(".sort_answer").css("display","block")},displayMatrixSortAnswer:function(){a(".matrix_sort_answer").show()},displayClozeAnswer:function(){a(".cloze_answer").show()},addAnswer:function(b){a(b).siblings("ul").children().first().clone().css("display","block").appendTo(a(b).siblings("ul"));
8
- c.setValueClassicAnswer();a(".deleteAnswer").click(function(){c.deleteAnswer(this)})},deleteAnswer:function(b){a(b).parent("li").remove();c.setValueClassicAnswer()},setValueClassicAnswer:function(){var b=0;a('input[name="answerJson[classic_answer][correct][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][sort_string_html][]"]').each(function(){this.value=b++});b=0;a('input[name="answerJson[answer_matrix_sort][answer_html][]"]').each(function(){this.value=b++})}},
9
  e=function(){var c="",d=a('input[name="answerType"]:checked'),e=a('input[name="points"]'),c=void 0!=tinymce.editors.question&&!tinymce.editors.question.isHidden()?tinymce.editors.question.getContent():a('textarea[name="question"]').val();if(isNaN(e.val())||1>e.val())return alert(wpProQuizLocalize.no_nummber_points),e.focus(),!1;if(b(c))return alert(wpProQuizLocalize.no_question_msg),!1;if("single"==d.val()||"multiple"==d.val()){var f=!0;if(1>a('input[name="answerJson[classic_answer][correct][]"]:checked').each(function(){f=
10
  ""!=a.trim(a(this).parent().siblings("textarea").val())?f&1:!1}).size())return alert(wpProQuizLocalize.no_correct_msg),!1;if(!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("sort_answer"==d.val()){if(f=!1,a('textarea[name="answerJson[answer_sort][answer][]"]').each(function(){f=b(a(this).val())?f|0:!0}),!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("matrix_sort_answer"==d.val()){if(f=!1,a('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function(){if(b(a(this).val()))f|=
11
  0;else{var c=a(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');f=b(c.val())?f|0:!0}}),!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("cloze_answer"==d.val()){if(c="",c=void 0!=tinymce.editors.cloze&&!tinymce.editors.cloze.isHidden()?tinymce.editors.cloze.getContent():a('textarea[name="answerJson[answer_cloze][text]"]').val(),b(c))return alert(wpProQuizLocalize.no_answer_msg),!1}else if("free_answer"==d.val()&&(c=a('textarea[name="answerJson[free_answer][correct]"]').val(),
5
  break;case "matrix_sort_answer":c.displayMatrixSortAnswer();break;case "cloze_answer":c.displayClozeAnswer()}});a(".addAnswer").click(function(){c.addAnswer(this)});a(".deleteAnswer").click(function(){c.deleteAnswer(this)});a("#saveQuestion").click(function(){return e()});a(".sort_answer ul, .classic_answer ul, .matrix_sort_answer ul").sortable({handle:".wpProQuiz_move",update:function(){c.setValueClassicAnswer()}});a("#wpProQuiz_correctSameText").change(function(){this.checked?a("#wpProQuiz_incorrectMassageBox").hide():
6
  a("#wpProQuiz_incorrectMassageBox").show()});a("#wpProQuiz_tip").change(function(){this.checked?a("#wpProQuiz_tipBox").show():a("#wpProQuiz_tipBox").hide()});a('input[name="pointsPerAnswer"]').change(function(){this.checked?a("#wpProQuiz_showPointsBox").show():a("#wpProQuiz_showPointsBox").hide()});a(".wpProQuiz_demoBox a").mouseover(function(){a(this).next().show()}).mouseout(function(){a(this).next().hide()}).click(function(){return!1})},displaySingle:function(b){a(".classic_answer").find('input[name="answerJson[classic_answer][correct][]"]').each(function(){a("<input type="+
7
  b+" />").attr({name:this.name,value:this.value,checked:this.checked}).insertBefore(this)}).remove();a(".classic_answer").css("display","block")},displayFreeAnswer:function(){a(".free_answer").css("display","block")},displaySortAnswer:function(){a(".sort_answer").css("display","block")},displayMatrixSortAnswer:function(){a(".matrix_sort_answer").show()},displayClozeAnswer:function(){a(".cloze_answer").show()},addAnswer:function(b){a(b).siblings("ul").children().first().clone().css("display","block").appendTo(a(b).siblings("ul"));
8
+ c.setValueClassicAnswer();a(".deleteAnswer").click(function(){c.deleteAnswer(this)})},deleteAnswer:function(b){a(b).parent("li").remove();c.setValueClassicAnswer()},setValueClassicAnswer:function(){a(".classic_answer ul, .matrix_sort_answer ul, .sort_answer ul").children().each(function(){var b=a(this).index();a(this).find('input[name="answerJson[classic_answer][correct][]"], input[name="answerJson[classic_answer][html][]"], input[name="answerJson[answer_matrix_sort][answer_html][]"], input[name="answerJson[answer_matrix_sort][sort_string_html][]"], input[name="answerJson[answer_sort][html][]"]').val(b)})}},
9
  e=function(){var c="",d=a('input[name="answerType"]:checked'),e=a('input[name="points"]'),c=void 0!=tinymce.editors.question&&!tinymce.editors.question.isHidden()?tinymce.editors.question.getContent():a('textarea[name="question"]').val();if(isNaN(e.val())||1>e.val())return alert(wpProQuizLocalize.no_nummber_points),e.focus(),!1;if(b(c))return alert(wpProQuizLocalize.no_question_msg),!1;if("single"==d.val()||"multiple"==d.val()){var f=!0;if(1>a('input[name="answerJson[classic_answer][correct][]"]:checked').each(function(){f=
10
  ""!=a.trim(a(this).parent().siblings("textarea").val())?f&1:!1}).size())return alert(wpProQuizLocalize.no_correct_msg),!1;if(!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("sort_answer"==d.val()){if(f=!1,a('textarea[name="answerJson[answer_sort][answer][]"]').each(function(){f=b(a(this).val())?f|0:!0}),!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("matrix_sort_answer"==d.val()){if(f=!1,a('textarea[name="answerJson[answer_matrix_sort][answer][]"]').each(function(){if(b(a(this).val()))f|=
11
  0;else{var c=a(this).parent().parent().find('textarea[name="answerJson[answer_matrix_sort][sort_string][]"]');f=b(c.val())?f|0:!0}}),!f)return alert(wpProQuizLocalize.no_answer_msg),!1}else if("cloze_answer"==d.val()){if(c="",c=void 0!=tinymce.editors.cloze&&!tinymce.editors.cloze.isHidden()?tinymce.editors.cloze.getContent():a('textarea[name="answerJson[answer_cloze][text]"]').val(),b(c))return alert(wpProQuizLocalize.no_answer_msg),!1}else if("free_answer"==d.val()&&(c=a('textarea[name="answerJson[free_answer][correct]"]').val(),
languages/wp-pro-quiz-nb_NO.mo CHANGED
Binary file
languages/wp-pro-quiz-nb_NO.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2013-01-15 11:34+0100\n"
5
- "PO-Revision-Date: 2013-01-15 11:34+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Stein Ivar Johnsen\n"
8
  "Language: Norwegian\n"
@@ -61,7 +61,7 @@ msgstr "Vil du virkelig tilbakestille statistikken?"
61
  #: lib/controller/WpProQuiz_Controller_Question.php:128
62
  #: lib/controller/WpProQuiz_Controller_Question.php:143
63
  #: lib/controller/WpProQuiz_Controller_Question.php:192
64
- #: lib/controller/WpProQuiz_Controller_Question.php:291
65
  #: lib/controller/WpProQuiz_Controller_Quiz.php:55
66
  #: lib/controller/WpProQuiz_Controller_Quiz.php:69
67
  #: lib/controller/WpProQuiz_Controller_Quiz.php:114
@@ -514,11 +514,11 @@ msgstr "Vis oppnådde poeng i riktig og feil melding?"
514
 
515
  #: lib/view/WpProQuiz_View_QuestionEdit.php:57
516
  msgid "Message with the correct / incorrect answer"
517
- msgstr ""
518
 
519
  #: lib/view/WpProQuiz_View_QuestionEdit.php:59
520
  msgid "Deactivated in quiz settings."
521
- msgstr ""
522
 
523
  #: lib/view/WpProQuiz_View_QuestionEdit.php:64
524
  msgid "Message with the correct answer"
@@ -962,52 +962,60 @@ msgstr "Tilbakestille brukeridentifikasjon for alle brukere."
962
  #: lib/view/WpProQuiz_View_QuizEdit.php:348
963
  #: lib/view/WpProQuiz_View_QuizEdit.php:353
964
  msgid "Hide correct- and incorrect message"
965
- msgstr ""
966
 
967
  #: lib/view/WpProQuiz_View_QuizEdit.php:360
968
  msgid ""
969
  "If you enable this option, no correct- or incorrect message will be "
970
  "displayed."
971
  msgstr ""
 
 
972
 
973
  #: lib/view/WpProQuiz_View_QuizEdit.php:373
974
  #: lib/view/WpProQuiz_View_QuizEdit.php:378
975
  msgid "Correct and incorrect answer mark"
976
- msgstr ""
977
 
978
  #: lib/view/WpProQuiz_View_QuizEdit.php:385
979
  msgid ""
980
  "If you enable this option, answers won't be color highlighted as correct or "
981
  "incorrect. "
982
  msgstr ""
 
 
983
 
984
  #: lib/view/WpProQuiz_View_QuizEdit.php:398
985
  #: lib/view/WpProQuiz_View_QuizEdit.php:403
986
  msgid "Show only specific number of questions"
987
- msgstr ""
988
 
989
  #: lib/view/WpProQuiz_View_QuizEdit.php:410
990
  msgid ""
991
  "If you enable this option, maximum number of displayed questions will be X "
992
  "from X questions. (The output of questions is random)"
993
  msgstr ""
 
 
994
 
995
  #: lib/view/WpProQuiz_View_QuizEdit.php:413
996
  msgid "The statistics function is not available in this option."
997
- msgstr ""
998
 
999
  #: lib/view/WpProQuiz_View_QuizEdit.php:416
1000
  msgid ""
1001
  "This option doesn't work reliable in connection with Frontend-Cache-Plugins."
1002
  msgstr ""
 
 
1003
 
1004
  #: lib/view/WpProQuiz_View_QuizEdit.php:420
1005
  msgid "How many questions should be displayed simultaneously:"
1006
- msgstr ""
1007
 
1008
  #: lib/view/WpProQuiz_View_QuizEdit.php:425
1009
  msgid "in percent"
1010
- msgstr ""
1011
 
1012
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1013
  msgid "Quiz description"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-01-19 16:11+0100\n"
5
+ "PO-Revision-Date: 2013-01-19 16:11+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Stein Ivar Johnsen\n"
8
  "Language: Norwegian\n"
61
  #: lib/controller/WpProQuiz_Controller_Question.php:128
62
  #: lib/controller/WpProQuiz_Controller_Question.php:143
63
  #: lib/controller/WpProQuiz_Controller_Question.php:192
64
+ #: lib/controller/WpProQuiz_Controller_Question.php:299
65
  #: lib/controller/WpProQuiz_Controller_Quiz.php:55
66
  #: lib/controller/WpProQuiz_Controller_Quiz.php:69
67
  #: lib/controller/WpProQuiz_Controller_Quiz.php:114
514
 
515
  #: lib/view/WpProQuiz_View_QuestionEdit.php:57
516
  msgid "Message with the correct / incorrect answer"
517
+ msgstr "Melding med riktig / feil svar"
518
 
519
  #: lib/view/WpProQuiz_View_QuestionEdit.php:59
520
  msgid "Deactivated in quiz settings."
521
+ msgstr "Deaktivert i quiz innstillinger."
522
 
523
  #: lib/view/WpProQuiz_View_QuestionEdit.php:64
524
  msgid "Message with the correct answer"
962
  #: lib/view/WpProQuiz_View_QuizEdit.php:348
963
  #: lib/view/WpProQuiz_View_QuizEdit.php:353
964
  msgid "Hide correct- and incorrect message"
965
+ msgstr "Skjul riktig og feil melding"
966
 
967
  #: lib/view/WpProQuiz_View_QuizEdit.php:360
968
  msgid ""
969
  "If you enable this option, no correct- or incorrect message will be "
970
  "displayed."
971
  msgstr ""
972
+ "Hvis du aktiverer dette alternativet, vil ingen riktig-eller feil melding "
973
+ "bli vist."
974
 
975
  #: lib/view/WpProQuiz_View_QuizEdit.php:373
976
  #: lib/view/WpProQuiz_View_QuizEdit.php:378
977
  msgid "Correct and incorrect answer mark"
978
+ msgstr "Riktig og feil svar merket"
979
 
980
  #: lib/view/WpProQuiz_View_QuizEdit.php:385
981
  msgid ""
982
  "If you enable this option, answers won't be color highlighted as correct or "
983
  "incorrect. "
984
  msgstr ""
985
+ "Hvis du aktiverer dette alternativet, vil svarene ikke være farge fremhevet "
986
+ "som riktig eller gal."
987
 
988
  #: lib/view/WpProQuiz_View_QuizEdit.php:398
989
  #: lib/view/WpProQuiz_View_QuizEdit.php:403
990
  msgid "Show only specific number of questions"
991
+ msgstr "Vis bare bestemt antall spørsmål"
992
 
993
  #: lib/view/WpProQuiz_View_QuizEdit.php:410
994
  msgid ""
995
  "If you enable this option, maximum number of displayed questions will be X "
996
  "from X questions. (The output of questions is random)"
997
  msgstr ""
998
+ "Hvis du aktiverer dette alternativet, vil maksimalt antall viste spørsmål "
999
+ "være X fra X spørsmål. (Visningen av spørsmålene er tilfeldig)"
1000
 
1001
  #: lib/view/WpProQuiz_View_QuizEdit.php:413
1002
  msgid "The statistics function is not available in this option."
1003
+ msgstr "Statistikk funksjonen er ikke tilgjengelig i dette alternativet."
1004
 
1005
  #: lib/view/WpProQuiz_View_QuizEdit.php:416
1006
  msgid ""
1007
  "This option doesn't work reliable in connection with Frontend-Cache-Plugins."
1008
  msgstr ""
1009
+ "Dette alternativet fungerer ikke pålitelig i forbindelse med Frontend-cache-"
1010
+ "Innstikk."
1011
 
1012
  #: lib/view/WpProQuiz_View_QuizEdit.php:420
1013
  msgid "How many questions should be displayed simultaneously:"
1014
+ msgstr "Hvor mange spørsmål som skal vises samtidig:"
1015
 
1016
  #: lib/view/WpProQuiz_View_QuizEdit.php:425
1017
  msgid "in percent"
1018
+ msgstr "i prosent"
1019
 
1020
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1021
  msgid "Quiz description"
languages/wp-pro-quiz-ru_RU.mo CHANGED
Binary file
languages/wp-pro-quiz-ru_RU.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
- "POT-Creation-Date: 2013-01-15 11:34+0100\n"
5
- "PO-Revision-Date: 2013-01-15 11:34+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Sergei Bondarenko\n"
8
  "Language: Russian\n"
@@ -61,7 +61,7 @@ msgstr "Вы действительно хотите сбросить стати
61
  #: lib/controller/WpProQuiz_Controller_Question.php:128
62
  #: lib/controller/WpProQuiz_Controller_Question.php:143
63
  #: lib/controller/WpProQuiz_Controller_Question.php:192
64
- #: lib/controller/WpProQuiz_Controller_Question.php:291
65
  #: lib/controller/WpProQuiz_Controller_Quiz.php:55
66
  #: lib/controller/WpProQuiz_Controller_Quiz.php:69
67
  #: lib/controller/WpProQuiz_Controller_Quiz.php:114
@@ -197,7 +197,7 @@ msgstr "Показать вопросы"
197
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
198
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
199
  msgid "Time limit"
200
- msgstr "Осталось"
201
 
202
  #: lib/view/WpProQuiz_View_FrontQuiz.php:141
203
  #, php-format
@@ -208,7 +208,7 @@ msgstr "Вопрос %s из %s"
208
  #: lib/view/WpProQuiz_View_QuestionEdit.php:49
209
  #: lib/view/WpProQuiz_View_Statistics.php:53
210
  msgid "Question"
211
- msgstr "Вопрос:"
212
 
213
  #: lib/view/WpProQuiz_View_FrontQuiz.php:148
214
  #, php-format
@@ -372,7 +372,7 @@ msgid ""
372
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
373
  "the header even if they are not needed."
374
  msgstr ""
375
- "Если вы включите эту опцию, все WpProQuiz-Javascript файлы будут загружены в "
376
  "заголовок страницы, даже если они не нужны."
377
 
378
  #: lib/view/WpProQuiz_View_GobalSettings.php:74
@@ -418,7 +418,7 @@ msgstr "Пожалуйста, активируйте при проблеммах
418
 
419
  #: lib/view/WpProQuiz_View_GobalSettings.php:123
420
  msgid "e.g. Domain with special characters in combination with IE"
421
- msgstr "например домен со специальными символами в сочетании с IE"
422
 
423
  #: lib/view/WpProQuiz_View_GobalSettings.php:132
424
  #: lib/view/WpProQuiz_View_QuestionEdit.php:381
@@ -513,11 +513,11 @@ msgstr ""
513
 
514
  #: lib/view/WpProQuiz_View_QuestionEdit.php:57
515
  msgid "Message with the correct / incorrect answer"
516
- msgstr ""
517
 
518
  #: lib/view/WpProQuiz_View_QuestionEdit.php:59
519
  msgid "Deactivated in quiz settings."
520
- msgstr ""
521
 
522
  #: lib/view/WpProQuiz_View_QuestionEdit.php:64
523
  msgid "Message with the correct answer"
@@ -675,7 +675,6 @@ msgid "Criterion"
675
  msgstr "Критерий"
676
 
677
  #: lib/view/WpProQuiz_View_QuestionEdit.php:372
678
- #, fuzzy
679
  msgid ""
680
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
681
  "small letters will be ignored."
@@ -964,52 +963,58 @@ msgstr "Сбросить идентификацию для всех пользо
964
  #: lib/view/WpProQuiz_View_QuizEdit.php:348
965
  #: lib/view/WpProQuiz_View_QuizEdit.php:353
966
  msgid "Hide correct- and incorrect message"
967
- msgstr ""
968
 
969
  #: lib/view/WpProQuiz_View_QuizEdit.php:360
970
  msgid ""
971
  "If you enable this option, no correct- or incorrect message will be "
972
  "displayed."
973
  msgstr ""
 
 
974
 
975
  #: lib/view/WpProQuiz_View_QuizEdit.php:373
976
  #: lib/view/WpProQuiz_View_QuizEdit.php:378
977
  msgid "Correct and incorrect answer mark"
978
- msgstr ""
979
 
980
  #: lib/view/WpProQuiz_View_QuizEdit.php:385
981
  msgid ""
982
  "If you enable this option, answers won't be color highlighted as correct or "
983
  "incorrect. "
984
  msgstr ""
 
 
985
 
986
  #: lib/view/WpProQuiz_View_QuizEdit.php:398
987
  #: lib/view/WpProQuiz_View_QuizEdit.php:403
988
  msgid "Show only specific number of questions"
989
- msgstr ""
990
 
991
  #: lib/view/WpProQuiz_View_QuizEdit.php:410
992
  msgid ""
993
  "If you enable this option, maximum number of displayed questions will be X "
994
  "from X questions. (The output of questions is random)"
995
  msgstr ""
 
 
996
 
997
  #: lib/view/WpProQuiz_View_QuizEdit.php:413
998
  msgid "The statistics function is not available in this option."
999
- msgstr ""
1000
 
1001
  #: lib/view/WpProQuiz_View_QuizEdit.php:416
1002
  msgid ""
1003
  "This option doesn't work reliable in connection with Frontend-Cache-Plugins."
1004
- msgstr ""
1005
 
1006
  #: lib/view/WpProQuiz_View_QuizEdit.php:420
1007
  msgid "How many questions should be displayed simultaneously:"
1008
- msgstr ""
1009
 
1010
  #: lib/view/WpProQuiz_View_QuizEdit.php:425
1011
  msgid "in percent"
1012
- msgstr ""
1013
 
1014
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1015
  msgid "Quiz description"
@@ -1071,7 +1076,7 @@ msgstr "процент"
1071
 
1072
  #: lib/view/WpProQuiz_View_QuizEdit.php:511
1073
  #: lib/view/WpProQuiz_View_QuizEdit.php:522
1074
- #, fuzzy, php-format
1075
  msgid ""
1076
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1077
  "%s</span>%%)"
@@ -1163,9 +1168,8 @@ msgid "Anonymous users"
1163
  msgstr "Анонимный пользователь"
1164
 
1165
  #: lib/view/WpProQuiz_View_Statistics.php:28
1166
- #, fuzzy
1167
  msgid "Registered users"
1168
- msgstr "Зарегистрированный пользователь"
1169
 
1170
  #: lib/view/WpProQuiz_View_Statistics.php:29
1171
  msgid "Overview"
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Wp-Pro-Quiz\n"
4
+ "POT-Creation-Date: 2013-01-16 15:30+0100\n"
5
+ "PO-Revision-Date: 2013-01-16 15:30+0100\n"
6
  "Last-Translator: Julius Fischer <julius.f@gmx.net>\n"
7
  "Language-Team: Sergei Bondarenko\n"
8
  "Language: Russian\n"
61
  #: lib/controller/WpProQuiz_Controller_Question.php:128
62
  #: lib/controller/WpProQuiz_Controller_Question.php:143
63
  #: lib/controller/WpProQuiz_Controller_Question.php:192
64
+ #: lib/controller/WpProQuiz_Controller_Question.php:299
65
  #: lib/controller/WpProQuiz_Controller_Quiz.php:55
66
  #: lib/controller/WpProQuiz_Controller_Quiz.php:69
67
  #: lib/controller/WpProQuiz_Controller_Quiz.php:114
197
  #: lib/view/WpProQuiz_View_QuizEdit.php:132
198
  #: lib/view/WpProQuiz_View_QuizEdit.php:137
199
  msgid "Time limit"
200
+ msgstr "Лимит времени"
201
 
202
  #: lib/view/WpProQuiz_View_FrontQuiz.php:141
203
  #, php-format
208
  #: lib/view/WpProQuiz_View_QuestionEdit.php:49
209
  #: lib/view/WpProQuiz_View_Statistics.php:53
210
  msgid "Question"
211
+ msgstr "Вопрос"
212
 
213
  #: lib/view/WpProQuiz_View_FrontQuiz.php:148
214
  #, php-format
372
  "If you activate this option, all WpProQuiz-Javascript files are loaded in "
373
  "the header even if they are not needed."
374
  msgstr ""
375
+ "Если Вы включите эту опцию, все WpProQuiz-Javascript файлы будут загружены в "
376
  "заголовок страницы, даже если они не нужны."
377
 
378
  #: lib/view/WpProQuiz_View_GobalSettings.php:74
418
 
419
  #: lib/view/WpProQuiz_View_GobalSettings.php:123
420
  msgid "e.g. Domain with special characters in combination with IE"
421
+ msgstr "Например домен со специальными символами в сочетании с IE"
422
 
423
  #: lib/view/WpProQuiz_View_GobalSettings.php:132
424
  #: lib/view/WpProQuiz_View_QuestionEdit.php:381
513
 
514
  #: lib/view/WpProQuiz_View_QuestionEdit.php:57
515
  msgid "Message with the correct / incorrect answer"
516
+ msgstr "Сообщение для правильного / неправильного ответа"
517
 
518
  #: lib/view/WpProQuiz_View_QuestionEdit.php:59
519
  msgid "Deactivated in quiz settings."
520
+ msgstr "Отключено в настройках теста."
521
 
522
  #: lib/view/WpProQuiz_View_QuestionEdit.php:64
523
  msgid "Message with the correct answer"
675
  msgstr "Критерий"
676
 
677
  #: lib/view/WpProQuiz_View_QuestionEdit.php:372
 
678
  msgid ""
679
  "Enclose the searched words with { } e.g. \"I {play} soccer\". Capital and "
680
  "small letters will be ignored."
963
  #: lib/view/WpProQuiz_View_QuizEdit.php:348
964
  #: lib/view/WpProQuiz_View_QuizEdit.php:353
965
  msgid "Hide correct- and incorrect message"
966
+ msgstr "Спрятать сообщения \"Правильно \" и \"Неправильно\""
967
 
968
  #: lib/view/WpProQuiz_View_QuizEdit.php:360
969
  msgid ""
970
  "If you enable this option, no correct- or incorrect message will be "
971
  "displayed."
972
  msgstr ""
973
+ "Если Вы включите эту опцию, то не будет сообщений для правильного или "
974
+ "неправильного ответов."
975
 
976
  #: lib/view/WpProQuiz_View_QuizEdit.php:373
977
  #: lib/view/WpProQuiz_View_QuizEdit.php:378
978
  msgid "Correct and incorrect answer mark"
979
+ msgstr "Цветовое выделение для правильного и неправильного ответов"
980
 
981
  #: lib/view/WpProQuiz_View_QuizEdit.php:385
982
  msgid ""
983
  "If you enable this option, answers won't be color highlighted as correct or "
984
  "incorrect. "
985
  msgstr ""
986
+ "Если Вы включите эту опцию, ответы не будут выделены цветом, как правильные "
987
+ "или неправильные."
988
 
989
  #: lib/view/WpProQuiz_View_QuizEdit.php:398
990
  #: lib/view/WpProQuiz_View_QuizEdit.php:403
991
  msgid "Show only specific number of questions"
992
+ msgstr "Показывать только определенное количество вопросов"
993
 
994
  #: lib/view/WpProQuiz_View_QuizEdit.php:410
995
  msgid ""
996
  "If you enable this option, maximum number of displayed questions will be X "
997
  "from X questions. (The output of questions is random)"
998
  msgstr ""
999
+ "Если Вы включите эту опцию, максимальное количество отображаемых вопросов "
1000
+ "будет X из X. (Вывод случайным образом)"
1001
 
1002
  #: lib/view/WpProQuiz_View_QuizEdit.php:413
1003
  msgid "The statistics function is not available in this option."
1004
+ msgstr "Статистика недоступна с данной опцией"
1005
 
1006
  #: lib/view/WpProQuiz_View_QuizEdit.php:416
1007
  msgid ""
1008
  "This option doesn't work reliable in connection with Frontend-Cache-Plugins."
1009
+ msgstr "Эта опция работает ненадежно с кеширующими плагинами."
1010
 
1011
  #: lib/view/WpProQuiz_View_QuizEdit.php:420
1012
  msgid "How many questions should be displayed simultaneously:"
1013
+ msgstr "Сколько вопросов должно быть показано:"
1014
 
1015
  #: lib/view/WpProQuiz_View_QuizEdit.php:425
1016
  msgid "in percent"
1017
+ msgstr "в процентах"
1018
 
1019
  #: lib/view/WpProQuiz_View_QuizEdit.php:463
1020
  msgid "Quiz description"
1076
 
1077
  #: lib/view/WpProQuiz_View_QuizEdit.php:511
1078
  #: lib/view/WpProQuiz_View_QuizEdit.php:522
1079
+ #, php-format
1080
  msgid ""
1081
  "(Will be displayed, when result-percent is >= <span class=\"resultProzent\">"
1082
  "%s</span>%%)"
1168
  msgstr "Анонимный пользователь"
1169
 
1170
  #: lib/view/WpProQuiz_View_Statistics.php:28
 
1171
  msgid "Registered users"
1172
+ msgstr "Зарегистрированные пользователи"
1173
 
1174
  #: lib/view/WpProQuiz_View_Statistics.php:29
1175
  msgid "Overview"
lib/controller/WpProQuiz_Controller_Question.php CHANGED
@@ -119,7 +119,7 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
119
  foreach($map as $k => $v)
120
  $mapper->updateSort($v, $k);
121
 
122
- die();
123
  }
124
 
125
  public function deleteAction($id) {
@@ -199,7 +199,7 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
199
  $quizMapper = new WpProQuiz_Model_QuizMapper();
200
 
201
  $this->view->quiz = $quizMapper->fetch($this->_quizId);
202
-
203
  if(isset($this->_post['submit'])) {
204
  $post = $this->clearPost($this->_post);
205
 
@@ -276,7 +276,15 @@ class WpProQuiz_Controller_Question extends WpProQuiz_Controller_Controller {
276
  if(is_array($v)) {
277
  $a[$k] = $this->clear($a[$k]);
278
  }
279
-
 
 
 
 
 
 
 
 
280
  if(empty($a[$k])) {
281
  unset($a[$k]);
282
  }
119
  foreach($map as $k => $v)
120
  $mapper->updateSort($v, $k);
121
 
122
+ exit;
123
  }
124
 
125
  public function deleteAction($id) {
199
  $quizMapper = new WpProQuiz_Model_QuizMapper();
200
 
201
  $this->view->quiz = $quizMapper->fetch($this->_quizId);
202
+
203
  if(isset($this->_post['submit'])) {
204
  $post = $this->clearPost($this->_post);
205
 
276
  if(is_array($v)) {
277
  $a[$k] = $this->clear($a[$k]);
278
  }
279
+
280
+ if(is_string($a[$k])) {
281
+ $a[$k] = trim($a[$k]);
282
+
283
+ if($a[$k] != '') {
284
+ continue;
285
+ }
286
+ }
287
+
288
  if(empty($a[$k])) {
289
  unset($a[$k]);
290
  }
lib/controller/WpProQuiz_Controller_Quiz.php CHANGED
@@ -184,13 +184,12 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
184
  $quizMapper = new WpProQuiz_Model_QuizMapper();
185
 
186
  $quiz = $quizMapper->fetch($this->_post['quizId']);
187
-
188
  if($quiz === null || $quiz->getId() <= 0) {
189
  exit;
190
  }
191
 
192
  if(!$this->isPreLockQuiz($quiz)) {
193
-
194
  $statistics = new WpProQuiz_Controller_Statistics();
195
  $statistics->save();
196
 
@@ -219,7 +218,7 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
219
  if(!$lockIp && !$lockCookie) {
220
  $statistics = new WpProQuiz_Controller_Statistics();
221
  $statistics->save();
222
-
223
  do_action('wp_pro_quiz_completed_quiz');
224
 
225
  if(get_current_user_id() == 0 && $quiz->isQuizRunOnceCookie()) {
184
  $quizMapper = new WpProQuiz_Model_QuizMapper();
185
 
186
  $quiz = $quizMapper->fetch($this->_post['quizId']);
187
+
188
  if($quiz === null || $quiz->getId() <= 0) {
189
  exit;
190
  }
191
 
192
  if(!$this->isPreLockQuiz($quiz)) {
 
193
  $statistics = new WpProQuiz_Controller_Statistics();
194
  $statistics->save();
195
 
218
  if(!$lockIp && !$lockCookie) {
219
  $statistics = new WpProQuiz_Controller_Statistics();
220
  $statistics->save();
221
+
222
  do_action('wp_pro_quiz_completed_quiz');
223
 
224
  if(get_current_user_id() == 0 && $quiz->isQuizRunOnceCookie()) {
lib/helper/WpProQuiz_Helper_DbUpgrade.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  class WpProQuiz_Helper_DbUpgrade {
3
 
4
- const WPPROQUIZ_DB_VERSION = 14;
5
 
6
  private $_wpdb;
7
  private $_prefix;
@@ -444,4 +444,14 @@ class WpProQuiz_Helper_DbUpgrade {
444
 
445
  return 14;
446
  }
 
 
 
 
 
 
 
 
 
 
447
  }
1
  <?php
2
  class WpProQuiz_Helper_DbUpgrade {
3
 
4
+ const WPPROQUIZ_DB_VERSION = 15;
5
 
6
  private $_wpdb;
7
  private $_prefix;
444
 
445
  return 14;
446
  }
447
+
448
+ private function upgradeDbV14() {
449
+
450
+ $this->_wpdb->query('
451
+ ALTER TABLE `'.$this->_wpdb->prefix.'wp_pro_quiz_question`
452
+ CHANGE `sort` `sort` SMALLINT UNSIGNED NOT NULL
453
+ ');
454
+
455
+ return 15;
456
+ }
457
  }
lib/helper/WpProQuiz_Helper_Upgrade.php CHANGED
@@ -9,6 +9,7 @@ class WpProQuiz_Helper_Upgrade {
9
 
10
  switch($oldVersion) {
11
  case '0.17':
 
12
  break;
13
  default:
14
  WpProQuiz_Helper_Upgrade::install();
9
 
10
  switch($oldVersion) {
11
  case '0.17':
12
+ case '0.18':
13
  break;
14
  default:
15
  WpProQuiz_Helper_Upgrade::install();
lib/view/WpProQuiz_View_QuizEdit.php CHANGED
@@ -328,7 +328,7 @@ class WpProQuiz_View_QuizEdit extends WpProQuiz_View_View {
328
  <?php _e('user identification by cookie', 'wp-pro-quiz'); ?>
329
  </label>
330
  <p class="description">
331
- <?php _e('If you activate this option, a cookie is set additionally for unregistrated (anonymous) users. This ensures a longer assignment of the user than the simple assignment by the IP address.'); ?>
332
  </p>
333
  </div>
334
 
@@ -336,7 +336,7 @@ class WpProQuiz_View_QuizEdit extends WpProQuiz_View_View {
336
  <input class="button-secondary" type="button" name="resetQuizLock" value="<?php _e('Reset the user identification', 'wp-pro-quiz'); ?>">
337
  <span id="resetLockMsg" style="display:none; background-color: rgb(255, 255, 173); border: 1px solid rgb(143, 143, 143); padding: 4px; margin-left: 5px; "><?php _e('User identification has been reset.'); ?></span>
338
  <p class="description">
339
- <?php _e('Resets user identification for all users.'); ?>
340
  </p>
341
  </div>
342
  </div>
328
  <?php _e('user identification by cookie', 'wp-pro-quiz'); ?>
329
  </label>
330
  <p class="description">
331
+ <?php _e('If you activate this option, a cookie is set additionally for unregistrated (anonymous) users. This ensures a longer assignment of the user than the simple assignment by the IP address.', 'wp-pro-quiz'); ?>
332
  </p>
333
  </div>
334
 
336
  <input class="button-secondary" type="button" name="resetQuizLock" value="<?php _e('Reset the user identification', 'wp-pro-quiz'); ?>">
337
  <span id="resetLockMsg" style="display:none; background-color: rgb(255, 255, 173); border: 1px solid rgb(143, 143, 143); padding: 4px; margin-left: 5px; "><?php _e('User identification has been reset.'); ?></span>
338
  <p class="description">
339
+ <?php _e('Resets user identification for all users.', 'wp-pro-quiz'); ?>
340
  </p>
341
  </div>
342
  </div>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: xeno010
3
  Tags: quiz, test, answer, question, learning
4
  Requires at least: 3.3
5
  Tested up to: 3.5
6
- Stable tag: 0.17
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -166,4 +166,11 @@ http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "D
166
  * Translation for Norwegian have been added (Thanks Stein Ivar J.)
167
 
168
  = 0.17 =
169
- * 0.17 is 0.16 (WordPress SVN bug)
 
 
 
 
 
 
 
3
  Tags: quiz, test, answer, question, learning
4
  Requires at least: 3.3
5
  Tested up to: 3.5
6
+ Stable tag: 0.18
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
166
  * Translation for Norwegian have been added (Thanks Stein Ivar J.)
167
 
168
  = 0.17 =
169
+ * 0.17 is 0.16 (WordPress SVN bug)
170
+
171
+ = 0.18 =
172
+ * "Allow HTML" bug fixed
173
+ * "0" can now be used as a answer
174
+ * Database: "sort" change to SMALLINT
175
+ * Updated Norwegian translation
176
+ * Updated Russian translation
wp-pro-quiz.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: WP-Pro-Quiz
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-pro-quiz
5
  Description: A powerful and beautiful quiz plugin for WordPress.
6
- Version: 0.17
7
  Author: Julius Fischer
8
  Author URI: http://www.it-gecko.de
9
  */
10
 
11
- define('WPPROQUIZ_VERSION', '0.17');
12
 
13
  define('WPPROQUIZ_PATH', dirname(__FILE__));
14
  define('WPPROQUIZ_URL', plugins_url('', __FILE__));
3
  Plugin Name: WP-Pro-Quiz
4
  Plugin URI: http://wordpress.org/extend/plugins/wp-pro-quiz
5
  Description: A powerful and beautiful quiz plugin for WordPress.
6
+ Version: 0.18
7
  Author: Julius Fischer
8
  Author URI: http://www.it-gecko.de
9
  */
10
 
11
+ define('WPPROQUIZ_VERSION', '0.18');
12
 
13
  define('WPPROQUIZ_PATH', dirname(__FILE__));
14
  define('WPPROQUIZ_URL', plugins_url('', __FILE__));