Wp-Pro-Quiz - Version 0.30

Version Description

  • small bugfix
Download this release

Release Info

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

Code changes from version 0.29 to 0.30

README.md ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Wp-Pro-Quiz
2
+ ==============
3
+
4
+ A powerful and beautiful quiz plugin for WordPress.
5
+ --------------
6
+
7
+ **Description**
8
+
9
+ A powerful and beautiful quiz plugin for WordPress.
10
+
11
+ **Functions**
12
+ - Single Choice
13
+ - Multiple Choice
14
+ - "Sorting" Choice
15
+ - "Free" Choice
16
+ - "Matrix Sorting" Choice
17
+ - Cloze function
18
+ - Assessment
19
+ - Timelimit
20
+ - Random Answer
21
+ - Random Question
22
+ - HTML in questions and answers is allowed
23
+ - Multimedia in questions
24
+ - Back-Button
25
+ - Correct / incorrect response message for all questions
26
+ - Different valency for every question
27
+ - Different points for each answer
28
+ - Result text with gradations
29
+ - Preview-function
30
+ - Statistics
31
+ - Leaderboard
32
+ - Quiz requirements
33
+ - Hints
34
+ - Custom fields
35
+ - Import / Export function
36
+ - E-mail notification
37
+ - Category support
38
+ - Quiz-summary
39
+ - Many configuration options
40
+ - Really nice standard design
41
+ - Mighty
42
+ - Fully compatible with cache plugins (e.g. WP-Super-Cache or W3 Total Cache)
43
+
44
+
45
+ **Translations**
46
+ - Arabic / عربي (Thanks Abuhassan)
47
+ - Brazilian Portuguese / Português do Brasil (Thanks Gabriel V.)
48
+ - Chinese (Traditional) (Thanks Dinno Lin)
49
+ - Czech / čeština (Thanks Petr Š.)
50
+ - Danish / dansk (Thanks Kenneth D.)
51
+ - Dutch / nederlands (Thanks Bas W. and Jurriën van den H.)
52
+ - English (Thanks Alexander M.)
53
+ - French / français (Thanks Aurélien C.)
54
+ - German / deutsch
55
+ - Greek / ελληνικά (Thanks Ζαχαρίας Σ.)
56
+ - Indonesian / Bahasa Indonesia (Thanks dieka91 and Creative Computer Club)
57
+ - Norwegian / norsk (Thanks Stein Ivar J.)
58
+ - Persian / فارسی (Thanks Behrooz N.)
59
+ - Russian / русский (Thanks Sergei B. and Alex A.)
60
+ - Spanish / español (Thanks Carlos R.)
61
+ - Swedish / svenska (Thanks Martin J.)
62
+ - Turkish / Türkçe (Thanks Nsaral)
63
+
64
+ **Live Demo**
65
+ http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "Demo")
66
+
67
+ **Special**
68
+ - Support for "User Role Editor" etc.
69
+ - Support for BuddyPress achievements 3.x.x
70
+
71
+ **Support**
72
+ - English: http://wordpress.org/support/plugin/wp-pro-quiz
73
+ - German/Deutsch: http://www.it-gecko.de/kontakt
74
+
75
+ **Installation**
76
+
77
+ 1. Upload the wp-pro-quiz folder to the /wp-content/plugins/ directory
78
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
lib/controller/WpProQuiz_Controller_Quiz.php CHANGED
@@ -137,32 +137,32 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
137
  $this->view->show();
138
  }
139
 
140
- public function checkLock() {
141
-
142
-
143
- if($userId > 0) {
144
- $quizIds = $prerequisiteMapper->getNoPrerequisite($quizId, $userId);
145
- } else {
146
- $checkIds = $prerequisiteMapper->fetchQuizIds($quizId);
147
-
148
- if(isset($this->_post['wpProQuiz_result'])) {
149
- $r = json_encode($this->_post['wpProQuiz_result'], true);
150
-
151
- if($r !== null && is_array($r)) {
152
- foreach($checkIds as $id) {
153
- if(!isset($r[$id]) || !$r[$id]) {
154
- $quizIds[] = $id;
155
- }
156
- }
157
- }
158
- } else {
159
- $quizIds = $checkIds;
160
- }
161
- }
162
-
163
- $names = $quizMapper->fetchCol($quizIds, 'name');
164
-
165
- }
166
 
167
  public function isLockQuiz($quizId) {
168
  $quizId = (int)$this->_post['quizId'];
@@ -853,7 +853,7 @@ class WpProQuiz_Controller_Quiz extends WpProQuiz_Controller_Controller {
853
  $msg = str_replace(array_keys($r), $r, $adminEmail->getMessage());
854
 
855
  $headers = '';
856
- $email = $userEmail->getFrom();
857
 
858
  if(!empty($email)) {
859
  $headers = 'From: '.$adminEmail->getFrom();
137
  $this->view->show();
138
  }
139
 
140
+ // public function checkLock() {
141
+ //
142
+ //
143
+ // if($userId > 0) {
144
+ // $quizIds = $prerequisiteMapper->getNoPrerequisite($quizId, $userId);
145
+ // } else {
146
+ // $checkIds = $prerequisiteMapper->fetchQuizIds($quizId);
147
+ //
148
+ // if(isset($this->_post['wpProQuiz_result'])) {
149
+ // $r = json_encode($this->_post['wpProQuiz_result'], true);
150
+ //
151
+ // if($r !== null && is_array($r)) {
152
+ // foreach($checkIds as $id) {
153
+ // if(!isset($r[$id]) || !$r[$id]) {
154
+ // $quizIds[] = $id;
155
+ // }
156
+ // }
157
+ // }
158
+ // } else {
159
+ // $quizIds = $checkIds;
160
+ // }
161
+ // }
162
+ //
163
+ // $names = $quizMapper->fetchCol($quizIds, 'name');
164
+ //
165
+ // }
166
 
167
  public function isLockQuiz($quizId) {
168
  $quizId = (int)$this->_post['quizId'];
853
  $msg = str_replace(array_keys($r), $r, $adminEmail->getMessage());
854
 
855
  $headers = '';
856
+ $email = $adminEmail->getFrom();
857
 
858
  if(!empty($email)) {
859
  $headers = 'From: '.$adminEmail->getFrom();
lib/helper/WpProQuiz_Helper_DbUpgrade.php CHANGED
@@ -2,13 +2,13 @@
2
  class WpProQuiz_Helper_DbUpgrade {
3
 
4
  const WPPROQUIZ_DB_VERSION = 24;
5
-
6
  private $_wpdb;
7
  private $_prefix;
8
 
9
  public function __construct() {
10
  global $wpdb;
11
-
12
  $this->_wpdb = $wpdb;
13
  }
14
 
2
  class WpProQuiz_Helper_DbUpgrade {
3
 
4
  const WPPROQUIZ_DB_VERSION = 24;
5
+
6
  private $_wpdb;
7
  private $_prefix;
8
 
9
  public function __construct() {
10
  global $wpdb;
11
+
12
  $this->_wpdb = $wpdb;
13
  }
14
 
lib/helper/WpProQuiz_Helper_Upgrade.php CHANGED
@@ -25,6 +25,8 @@ class WpProQuiz_Helper_Upgrade {
25
  case '0.25':
26
  case '0.26':
27
  case '0.27':
 
 
28
  break;
29
  default:
30
  WpProQuiz_Helper_Upgrade::install();
25
  case '0.25':
26
  case '0.26':
27
  case '0.27':
28
+ case '0.28':
29
+ case '0.29':
30
  break;
31
  default:
32
  WpProQuiz_Helper_Upgrade::install();
lib/view/WpProQuiz_View_QuizOverall.php CHANGED
@@ -65,7 +65,7 @@ class WpProQuiz_View_QuizOverall extends WpProQuiz_View_View {
65
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
66
  <input type="hidden" name="cmd" value="_s-xclick">
67
  <input type="hidden" name="hosted_button_id" value="BF9JT56N7FAQG">
68
- <input type="image" src="https://www.paypalobjects.com/de_DE/DE/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="Jetzt einfach, schnell und sicher online bezahlen – mit PayPal.">
69
  <img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
70
  </form>
71
  </div>
65
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
66
  <input type="hidden" name="cmd" value="_s-xclick">
67
  <input type="hidden" name="hosted_button_id" value="BF9JT56N7FAQG">
68
+ <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="Jetzt einfach, schnell und sicher online bezahlen – mit PayPal.">
69
  <img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
70
  </form>
71
  </div>
lib/view/WpProQuiz_View_WpqSupport.php CHANGED
@@ -11,7 +11,7 @@ class WpProQuiz_View_WpqSupport extends WpProQuiz_View_View {
11
 
12
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
13
  <input type="hidden" name="cmd" value="_s-xclick">
14
- <input type="hidden" name="hosted_button_id" value="N9B7S4FT8CE2N">
15
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!">
16
  <img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
17
  </form>
11
 
12
  <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
13
  <input type="hidden" name="cmd" value="_s-xclick">
14
+ <input type="hidden" name="hosted_button_id" value="BF9JT56N7FAQG">
15
  <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!">
16
  <img alt="" border="0" src="https://www.paypalobjects.com/de_DE/i/scr/pixel.gif" width="1" height="1">
17
  </form>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: quiz, test, answer, question, learning, assessment
5
  Requires at least: 3.3
6
  Tested up to: 3.9.2
7
- Stable tag: 0.29
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -310,3 +310,6 @@ http://www.it-gecko.de/wp-pro-quiz-quiz-plugin-fuer-wordpress.html (scroll to "D
310
  * Updated greek translation (Thanks Ζαχαρίας Σδρέγας)
311
  * Updated russian translation (Thanks Сергей Бондаренко)
312
  * Updated dutch translation (Thanks Anton Timmermans)
 
 
 
4
  Tags: quiz, test, answer, question, learning, assessment
5
  Requires at least: 3.3
6
  Tested up to: 3.9.2
7
+ Stable tag: 0.30
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
310
  * Updated greek translation (Thanks Ζαχαρίας Σδρέγας)
311
  * Updated russian translation (Thanks Сергей Бондаренко)
312
  * Updated dutch translation (Thanks Anton Timmermans)
313
+
314
+ = 0.30 =
315
+ * small bugfix
wp-pro-quiz.php CHANGED
@@ -10,7 +10,7 @@ Text Domain: wp-pro-quiz
10
  Domain Path: /languages
11
  */
12
 
13
- define('WPPROQUIZ_VERSION', '0.29');
14
 
15
  define('WPPROQUIZ_DEV', false);
16
 
10
  Domain Path: /languages
11
  */
12
 
13
+ define('WPPROQUIZ_VERSION', '0.30');
14
 
15
  define('WPPROQUIZ_DEV', false);
16