Quiz And Survey Master (Formerly Quiz Master Next) - Version 2.6.1

Version Description

Upgrade to be able to support special characters and non-latin based languages.

Download this release

Release Info

Developer fpcorso
Plugin Icon 128x128 Quiz And Survey Master (Formerly Quiz Master Next)
Version 2.6.1
Comparing to
See all releases

Code changes from version 2.5.1 to 2.6.1

includes/mlw_qmn_credits.php CHANGED
@@ -87,26 +87,16 @@ function mlw_generate_about_page()
87
  <a href="#" class="nav-tab nav-tab-active">
88
  What&#8217;s New In <?php echo $mlw_quiz_version; ?> </a>
89
  </h2>
90
- <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Now you can use the rebuilt answers system!</h2>
91
- <p>In this new version, I completely rebuilt the system that handles the answers. This new system allows for unlimited answers! When adding or editing a question, you will see the new Add Answer button that will add a new answer to your list of answers.</p>
92
- <br />
93
- <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">New Question Type - Multiple Response (Checkboxes)</h2>
94
- <p>The new answer systems allows for the new question type - multiple response. This is a feature that has been asked for several times and I am excited to finally have it built! When adding or editing a question, you will see the new question type.</p>
95
- <br />
96
- <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Random Answers At Last</h2>
97
- <p>The new answer systems also allows for the answers to be randomized as well! Simply navigate to the Quiz Options tab and the option "Are the questions random?" to the new "Random Questions And Answers" choice.</p>
98
  <br />
99
  <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Our Premium Add-Ons!</h2>
100
- <p>We have recently added 3 new premium add-ons into our plugin store! Export Results (exports your quiz results), Extra Shortcodes (gives you extra shortcodes to use), and Advertisement Be Gone (gets rid of blue-border ads). Visit our <a href="http://mylocalwebstop.com/shop/">Plugin Add-On Store</a> for details! </p>
101
  <br />
102
  <h3>Changelog For <?php echo $mlw_quiz_version; ?></h3>
103
  <ul>
104
- <li>Rebuilt Answer System</li>
105
- <li>Added Ability To Have Unlimited Answers</li>
106
- <li>Added Ability To Randomize Answers</li>
107
- <li>Added New Question Type - Multiple Response (Checkboxes)</li>
108
- <li>Added Ability To Send Admin Email To Multiple Users</li>
109
- <li>Minor Design Changes To Quiz Options Page</li>
110
  </ul>
111
  <h3>What's Coming Soon</h3>
112
  <ul>
87
  <a href="#" class="nav-tab nav-tab-active">
88
  What&#8217;s New In <?php echo $mlw_quiz_version; ?> </a>
89
  </h2>
90
+ <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Unicode Compatibility</h2>
91
+ <p>Version 2.6.1 sets all the database tables up to support unicode which means that your quizzes can support special characters and non-latin languages.</p>
 
 
 
 
 
 
92
  <br />
93
  <h2 style="margin: 1.1em 0 .2em;font-size: 2.4em;font-weight: 300;line-height: 1.3;text-align: center;">Our Premium Add-Ons!</h2>
94
+ <p>We have 3 new premium add-ons in our WordPress Store: Export Results (exports your quiz results), Extra Shortcodes (gives you extra shortcodes to use), and Advertisement Be Gone (gets rid of blue-border ads). Visit our <a href="http://mylocalwebstop.com/shop/">WordPress Store</a> for details! </p>
95
  <br />
96
  <h3>Changelog For <?php echo $mlw_quiz_version; ?></h3>
97
  <ul>
98
+ <li>Added UTF-8 Support For Special Characters And Non-Latin Languages</li>
99
+ <li>Fixed Question Bank Showing All Answers Bug</li>
 
 
 
 
100
  </ul>
101
  <h3>What's Coming Soon</h3>
102
  <ul>
includes/mlw_quiz.php CHANGED
@@ -435,6 +435,7 @@ function mlw_quiz_shortcode($atts)
435
  $mlw_answer_total++;
436
  if ($mlw_qmn_answer_each[0] != "")
437
  {
 
438
  $mlw_display .= "<input type='checkbox' name='question".$mlw_question->question_id."_".$mlw_answer_total."' id='question".$mlw_question->question_id."_".$mlw_answer_total."' value='".esc_attr($mlw_qmn_answer_each[0])."' /> <label for='question".$mlw_question->question_id."_".$mlw_answer_total."'>".htmlspecialchars_decode($mlw_qmn_answer_each[0], ENT_QUOTES)."</label>";
439
  $mlw_display .= "<br />";
440
  }
@@ -663,111 +664,114 @@ function mlw_quiz_shortcode($atts)
663
  foreach($mlw_questions as $mlw_question) {
664
  $mlw_user_text = "";
665
  $mlw_correct_text = "";
666
- if ( $mlw_question->question_type == 0 || $mlw_question->question_type == 1 || $mlw_question->question_type == 2)
667
  {
668
- if (isset($_POST["question".$mlw_question->question_id]))
669
  {
670
- $mlw_user_answer = $_POST["question".$mlw_question->question_id];
671
- }
672
- else
673
- {
674
- $mlw_user_answer = " ";
675
- }
676
- $mlw_qmn_question_answers_array = $mlw_qmn_loaded_answer_arrays[$mlw_question->question_id];
677
- foreach($mlw_qmn_question_answers_array as $mlw_qmn_question_answers_each)
678
- {
679
- if (htmlspecialchars(stripslashes($mlw_user_answer), ENT_QUOTES) == esc_attr($mlw_qmn_question_answers_each[0]))
680
  {
681
- $mlw_points += $mlw_qmn_question_answers_each[1];
682
- $mlw_user_text .= strval($mlw_qmn_question_answers_each[0]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
683
  if ($mlw_qmn_question_answers_each[2] == 1)
684
  {
685
- $mlw_correct += 1;
686
  }
687
  }
688
- if ($mlw_qmn_question_answers_each[2] == 1)
689
- {
690
- $mlw_correct_text .= $mlw_qmn_question_answers_each[0];
691
- }
692
  }
693
- }
694
- elseif ( $mlw_question->question_type == 3 )
695
- {
696
- $mlw_correct_text .= strval($mlw_question->answer_one);
697
- if (isset($_POST["question".$mlw_question->question_id]))
698
- {
699
- $mlw_user_answer = $_POST["question".$mlw_question->question_id];
700
- }
701
- else
702
- {
703
- $mlw_user_answer = " ";
704
- }
705
- $mlw_user_text .= strval($mlw_user_answer);
706
- $mlw_qmn_question_answers_array = $mlw_qmn_loaded_answer_arrays[$mlw_question->question_id];
707
- foreach($mlw_qmn_question_answers_array as $mlw_qmn_question_answers_each)
708
  {
709
- if (strtoupper($mlw_user_answer) == strtoupper($mlw_qmn_question_answers_each[0]))
 
710
  {
711
- $mlw_correct += 1;
712
- $mlw_points += $mlw_qmn_question_answers_each[1];
713
- break;
 
 
 
 
 
 
 
 
 
 
 
 
 
714
  }
715
  }
716
- }
717
- elseif ( $mlw_question->question_type == 4 )
718
- {
719
- $mlw_qmn_user_correct_answers = 0;
720
- $mlw_qmn_total_correct_answers = 0;
721
- $mlw_qmn_question_answers_array = $mlw_qmn_loaded_answer_arrays[$mlw_question->question_id];
722
- $mlw_qmn_total_answers = count($mlw_qmn_question_answers_array);
723
- foreach($mlw_qmn_question_answers_array as $mlw_qmn_question_answers_each)
724
  {
725
- for ($i = 1; $i <= $mlw_qmn_total_answers; $i++) {
726
- if (isset($_POST["question".$mlw_question->question_id."_".$i]) && htmlspecialchars(stripslashes($_POST["question".$mlw_question->question_id."_".$i]), ENT_QUOTES) == esc_attr($mlw_qmn_question_answers_each[0]))
727
- {
728
- $mlw_points += $mlw_qmn_question_answers_each[1];
729
- $mlw_user_text .= strval($mlw_qmn_question_answers_each[0]).".";
730
- if ($mlw_qmn_question_answers_each[2] == 1)
731
- {
732
- $mlw_qmn_user_correct_answers += 1;
733
- }
734
- else
735
- {
736
- $mlw_qmn_user_correct_answers = -1;
737
- }
738
- }
 
 
 
 
 
 
 
 
 
 
 
 
739
  }
740
- if ($mlw_qmn_question_answers_each[2] == 1)
741
  {
742
- $mlw_correct_text .= $mlw_qmn_question_answers_each[0].".";
743
- $mlw_qmn_total_correct_answers++;
744
  }
745
  }
746
- if ($mlw_qmn_user_correct_answers == $mlw_qmn_total_correct_answers)
747
  {
748
- $mlw_correct += 1;
749
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
750
  }
751
- if (isset($_POST["mlwComment".$mlw_question->question_id]))
752
- {
753
- $mlw_qm_question_comment = $_POST["mlwComment".$mlw_question->question_id];
754
- }
755
- else
756
- {
757
- $mlw_qm_question_comment = "";
758
- }
759
-
760
- $mlw_question_answer_display = htmlspecialchars_decode($mlw_quiz_options->question_answer_template, ENT_QUOTES);
761
- $mlw_question_answer_display = str_replace( "%QUESTION%" , htmlspecialchars_decode($mlw_question->question_name, ENT_QUOTES), $mlw_question_answer_display);
762
- $mlw_question_answer_display = str_replace( "%USER_ANSWER%" , $mlw_user_text, $mlw_question_answer_display);
763
- $mlw_question_answer_display = str_replace( "%CORRECT_ANSWER%" , $mlw_correct_text, $mlw_question_answer_display);
764
- $mlw_question_answer_display = str_replace( "%USER_COMMENTS%" , $mlw_qm_question_comment, $mlw_question_answer_display);
765
- $mlw_question_answer_display = str_replace( "%CORRECT_ANSWER_INFO%" , htmlspecialchars_decode($mlw_question->question_answer_info, ENT_QUOTES), $mlw_question_answer_display);
766
-
767
- $mlw_qmn_answer_array[] = array($mlw_question->question_name, htmlspecialchars($mlw_user_text, ENT_QUOTES), htmlspecialchars($mlw_correct_text, ENT_QUOTES), htmlspecialchars(stripslashes($mlw_qm_question_comment), ENT_QUOTES));
768
-
769
- $mlw_question_answers .= $mlw_question_answer_display;
770
- $mlw_question_answers .= "<br />";
771
  }
772
 
773
  //Calculate Total Percent Score And Average Points Only If Total Questions Doesn't Equal Zero To Avoid Division By Zero Error
435
  $mlw_answer_total++;
436
  if ($mlw_qmn_answer_each[0] != "")
437
  {
438
+ $mlw_display .= "<input type='hidden' name='question".$mlw_question->question_id."' value='This value doesn't matter' />";
439
  $mlw_display .= "<input type='checkbox' name='question".$mlw_question->question_id."_".$mlw_answer_total."' id='question".$mlw_question->question_id."_".$mlw_answer_total."' value='".esc_attr($mlw_qmn_answer_each[0])."' /> <label for='question".$mlw_question->question_id."_".$mlw_answer_total."'>".htmlspecialchars_decode($mlw_qmn_answer_each[0], ENT_QUOTES)."</label>";
440
  $mlw_display .= "<br />";
441
  }
664
  foreach($mlw_questions as $mlw_question) {
665
  $mlw_user_text = "";
666
  $mlw_correct_text = "";
667
+ if ( isset($_POST["question".$mlw_question->question_id]) || isset($_POST["mlwComment".$mlw_question->question_id]) )
668
  {
669
+ if ( $mlw_question->question_type == 0 || $mlw_question->question_type == 1 || $mlw_question->question_type == 2)
670
  {
671
+ if (isset($_POST["question".$mlw_question->question_id]))
 
 
 
 
 
 
 
 
 
672
  {
673
+ $mlw_user_answer = $_POST["question".$mlw_question->question_id];
674
+ }
675
+ else
676
+ {
677
+ $mlw_user_answer = " ";
678
+ }
679
+ $mlw_qmn_question_answers_array = $mlw_qmn_loaded_answer_arrays[$mlw_question->question_id];
680
+ foreach($mlw_qmn_question_answers_array as $mlw_qmn_question_answers_each)
681
+ {
682
+ if (htmlspecialchars(stripslashes($mlw_user_answer), ENT_QUOTES) == esc_attr($mlw_qmn_question_answers_each[0]))
683
+ {
684
+ $mlw_points += $mlw_qmn_question_answers_each[1];
685
+ $mlw_user_text .= strval($mlw_qmn_question_answers_each[0]);
686
+ if ($mlw_qmn_question_answers_each[2] == 1)
687
+ {
688
+ $mlw_correct += 1;
689
+ }
690
+ }
691
  if ($mlw_qmn_question_answers_each[2] == 1)
692
  {
693
+ $mlw_correct_text .= $mlw_qmn_question_answers_each[0];
694
  }
695
  }
 
 
 
 
696
  }
697
+ elseif ( $mlw_question->question_type == 3 )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
698
  {
699
+ $mlw_correct_text .= strval($mlw_question->answer_one);
700
+ if (isset($_POST["question".$mlw_question->question_id]))
701
  {
702
+ $mlw_user_answer = $_POST["question".$mlw_question->question_id];
703
+ }
704
+ else
705
+ {
706
+ $mlw_user_answer = " ";
707
+ }
708
+ $mlw_user_text .= strval($mlw_user_answer);
709
+ $mlw_qmn_question_answers_array = $mlw_qmn_loaded_answer_arrays[$mlw_question->question_id];
710
+ foreach($mlw_qmn_question_answers_array as $mlw_qmn_question_answers_each)
711
+ {
712
+ if (strtoupper($mlw_user_answer) == strtoupper($mlw_qmn_question_answers_each[0]))
713
+ {
714
+ $mlw_correct += 1;
715
+ $mlw_points += $mlw_qmn_question_answers_each[1];
716
+ break;
717
+ }
718
  }
719
  }
720
+ elseif ( $mlw_question->question_type == 4 )
 
 
 
 
 
 
 
721
  {
722
+ $mlw_qmn_user_correct_answers = 0;
723
+ $mlw_qmn_total_correct_answers = 0;
724
+ $mlw_qmn_question_answers_array = $mlw_qmn_loaded_answer_arrays[$mlw_question->question_id];
725
+ $mlw_qmn_total_answers = count($mlw_qmn_question_answers_array);
726
+ foreach($mlw_qmn_question_answers_array as $mlw_qmn_question_answers_each)
727
+ {
728
+ for ($i = 1; $i <= $mlw_qmn_total_answers; $i++) {
729
+ if (isset($_POST["question".$mlw_question->question_id."_".$i]) && htmlspecialchars(stripslashes($_POST["question".$mlw_question->question_id."_".$i]), ENT_QUOTES) == esc_attr($mlw_qmn_question_answers_each[0]))
730
+ {
731
+ $mlw_points += $mlw_qmn_question_answers_each[1];
732
+ $mlw_user_text .= strval($mlw_qmn_question_answers_each[0]).".";
733
+ if ($mlw_qmn_question_answers_each[2] == 1)
734
+ {
735
+ $mlw_qmn_user_correct_answers += 1;
736
+ }
737
+ else
738
+ {
739
+ $mlw_qmn_user_correct_answers = -1;
740
+ }
741
+ }
742
+ }
743
+ if ($mlw_qmn_question_answers_each[2] == 1)
744
+ {
745
+ $mlw_correct_text .= $mlw_qmn_question_answers_each[0].".";
746
+ $mlw_qmn_total_correct_answers++;
747
+ }
748
  }
749
+ if ($mlw_qmn_user_correct_answers == $mlw_qmn_total_correct_answers)
750
  {
751
+ $mlw_correct += 1;
 
752
  }
753
  }
754
+ if (isset($_POST["mlwComment".$mlw_question->question_id]))
755
  {
756
+ $mlw_qm_question_comment = $_POST["mlwComment".$mlw_question->question_id];
757
  }
758
+ else
759
+ {
760
+ $mlw_qm_question_comment = "";
761
+ }
762
+
763
+ $mlw_question_answer_display = htmlspecialchars_decode($mlw_quiz_options->question_answer_template, ENT_QUOTES);
764
+ $mlw_question_answer_display = str_replace( "%QUESTION%" , htmlspecialchars_decode($mlw_question->question_name, ENT_QUOTES), $mlw_question_answer_display);
765
+ $mlw_question_answer_display = str_replace( "%USER_ANSWER%" , $mlw_user_text, $mlw_question_answer_display);
766
+ $mlw_question_answer_display = str_replace( "%CORRECT_ANSWER%" , $mlw_correct_text, $mlw_question_answer_display);
767
+ $mlw_question_answer_display = str_replace( "%USER_COMMENTS%" , $mlw_qm_question_comment, $mlw_question_answer_display);
768
+ $mlw_question_answer_display = str_replace( "%CORRECT_ANSWER_INFO%" , htmlspecialchars_decode($mlw_question->question_answer_info, ENT_QUOTES), $mlw_question_answer_display);
769
+
770
+ $mlw_qmn_answer_array[] = array($mlw_question->question_name, htmlspecialchars($mlw_user_text, ENT_QUOTES), htmlspecialchars($mlw_correct_text, ENT_QUOTES), htmlspecialchars(stripslashes($mlw_qm_question_comment), ENT_QUOTES));
771
+
772
+ $mlw_question_answers .= $mlw_question_answer_display;
773
+ $mlw_question_answers .= "<br />";
774
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
775
  }
776
 
777
  //Calculate Total Percent Score And Average Points Only If Total Questions Doesn't Equal Zero To Avoid Division By Zero Error
includes/mlw_quiz_install.php CHANGED
@@ -104,7 +104,9 @@ function mlw_quiz_activate()
104
 
105
  PRIMARY KEY (quiz_id)
106
 
107
- );";
 
 
108
 
109
  $results = $wpdb->query( $sql );
110
 
@@ -169,7 +171,9 @@ function mlw_quiz_activate()
169
 
170
  PRIMARY KEY (question_id)
171
 
172
- );";
 
 
173
 
174
  $results = $wpdb->query( $sql );
175
 
@@ -221,7 +225,9 @@ function mlw_quiz_activate()
221
 
222
  PRIMARY KEY (result_id)
223
 
224
- );";
 
 
225
 
226
  $results = $wpdb->query( $sql );
227
 
@@ -269,7 +275,9 @@ function mlw_quiz_activate()
269
 
270
  PRIMARY KEY (trail_id)
271
 
272
- );";
 
 
273
 
274
  $results = $wpdb->query( $sql );
275
 
104
 
105
  PRIMARY KEY (quiz_id)
106
 
107
+ )
108
+
109
+ CHARACTER SET utf8";
110
 
111
  $results = $wpdb->query( $sql );
112
 
171
 
172
  PRIMARY KEY (question_id)
173
 
174
+ )
175
+
176
+ CHARACTER SET utf8";
177
 
178
  $results = $wpdb->query( $sql );
179
 
225
 
226
  PRIMARY KEY (result_id)
227
 
228
+ )
229
+
230
+ CHARACTER SET utf8";
231
 
232
  $results = $wpdb->query( $sql );
233
 
275
 
276
  PRIMARY KEY (trail_id)
277
 
278
+ )
279
+
280
+ CHARACTER SET utf8";
281
 
282
  $results = $wpdb->query( $sql );
283
 
includes/mlw_update.php CHANGED
@@ -6,7 +6,7 @@ function mlw_quiz_update()
6
  {
7
 
8
  //Update this variable each update. This is what is checked when the plugin is deciding to run the upgrade script or not.
9
- $data = "2.5.1";
10
  if ( ! get_option('mlw_quiz_master_version'))
11
  {
12
  add_option('mlw_quiz_master_version' , $data);
@@ -275,6 +275,12 @@ function mlw_quiz_update()
275
  $results = $wpdb->query( $update_sql );
276
  }
277
 
 
 
 
 
 
 
278
  update_option('mlw_quiz_master_version' , $data);
279
  if(!isset($_GET['activate-multi']))
280
  {
6
  {
7
 
8
  //Update this variable each update. This is what is checked when the plugin is deciding to run the upgrade script or not.
9
+ $data = "2.6.1";
10
  if ( ! get_option('mlw_quiz_master_version'))
11
  {
12
  add_option('mlw_quiz_master_version' , $data);
275
  $results = $wpdb->query( $update_sql );
276
  }
277
 
278
+ //Update 2.6.1
279
+ $results = $wpdb->query( "ALTER TABLE ".$wpdb->prefix . "mlw_qm_audit_trail CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;" );
280
+ $results = $wpdb->query( "ALTER TABLE ".$wpdb->prefix . "mlw_questions CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci" );
281
+ $results = $wpdb->query( "ALTER TABLE ".$wpdb->prefix . "mlw_quizzes CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci" );
282
+ $results = $wpdb->query( "ALTER TABLE ".$wpdb->prefix . "mlw_results CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci" );
283
+
284
  update_option('mlw_quiz_master_version' , $data);
285
  if(!isset($_GET['activate-multi']))
286
  {
mlw_quizmaster2.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Quiz Master Next
5
  Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
6
- Version: 2.5.1
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
@@ -124,26 +124,29 @@ function mlw_qmn_show_adverts()
124
  $mlw_advert_text = "";
125
  if ( get_option('mlw_advert_shows') == 'true' )
126
  {
127
- $mlw_random_int = rand(0, 5);
128
  switch ($mlw_random_int) {
129
  case 0:
130
- $mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
131
  break;
132
  case 1:
133
  $mlw_advert_text = "Is Quiz Master Next beneficial to your website? Please help by giving us a review on WordPress.org by going <a href=\"http://wordpress.org/support/view/plugin-reviews/quiz-master-next\">here</a>!";
134
  break;
135
  case 2:
136
- $mlw_advert_text = "Want help installing and configuring one of our plugins? Check out our Plugin Installation services. Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
137
  break;
138
  case 3:
139
  $mlw_advert_text = "Would you like to support this plugin but do not need or want premium support? Please consider our inexpensive 'Advertisements Be Gone' add-on which will get rid of these ads. Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
140
  break;
141
  case 4:
142
- $mlw_advert_text = "Need to be able to export the results of your quizzes? Be sure to check out our new Export Results add-on in our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a>!";
143
  break;
144
  case 5:
145
  $mlw_advert_text = "Need help keeping your plugins, themes, and WordPress up to date? Want around the clock security monitoring and off-site back-ups? How about WordPress training videos, a monthly status report, and support/consultation? Check out our <a href=\"http://mylocalwebstop.com/wordpress-maintenance-services/\">WordPress Maintenance Services</a> for more details!";
146
  break;
 
 
 
147
  default:
148
  $mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
149
  }
3
  /*
4
  Plugin Name: Quiz Master Next
5
  Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
6
+ Version: 2.6.1
7
  Author: Frank Corso
8
  Author URI: http://www.mylocalwebstop.com/
9
  Plugin URI: http://www.mylocalwebstop.com/
124
  $mlw_advert_text = "";
125
  if ( get_option('mlw_advert_shows') == 'true' )
126
  {
127
+ $mlw_random_int = rand(0, 6);
128
  switch ($mlw_random_int) {
129
  case 0:
130
+ $mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for details!";
131
  break;
132
  case 1:
133
  $mlw_advert_text = "Is Quiz Master Next beneficial to your website? Please help by giving us a review on WordPress.org by going <a href=\"http://wordpress.org/support/view/plugin-reviews/quiz-master-next\">here</a>!";
134
  break;
135
  case 2:
136
+ $mlw_advert_text = "Want help installing and configuring one of our plugins? Check out our Plugin Installation services. Visit our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for details!";
137
  break;
138
  case 3:
139
  $mlw_advert_text = "Would you like to support this plugin but do not need or want premium support? Please consider our inexpensive 'Advertisements Be Gone' add-on which will get rid of these ads. Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
140
  break;
141
  case 4:
142
+ $mlw_advert_text = "Need to be able to export the results of your quizzes? Be sure to check out our new Export Results add-on in our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a>!";
143
  break;
144
  case 5:
145
  $mlw_advert_text = "Need help keeping your plugins, themes, and WordPress up to date? Want around the clock security monitoring and off-site back-ups? How about WordPress training videos, a monthly status report, and support/consultation? Check out our <a href=\"http://mylocalwebstop.com/wordpress-maintenance-services/\">WordPress Maintenance Services</a> for more details!";
146
  break;
147
+ case 6:
148
+ $mlw_advert_text = "Setting up a new site? Let us take care of the set-up so you back to running your business. Check out our <a href=\"http://mylocalwebstop.com/shop/\">WordPress Store</a> for more details!";
149
+ break;
150
  default:
151
  $mlw_advert_text = "Need support or features? Check out our Premium Support options! Visit our <a href=\"http://mylocalwebstop.com/shop/\">Plugin Add-On Store</a> for details!";
152
  }
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, score, survey, contact, form, email, answer, question
5
  Requires at least: 3.6
6
  Tested up to: 3.9
7
- Stable tag: 2.5.1
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.
@@ -102,6 +102,10 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
102
 
103
  == Changelog ==
104
 
 
 
 
 
105
  = 2.5.1 (May 3, 2014) =
106
  * Rebuilt Answer System
107
  * Added Ability To Have Unlimited Answers
@@ -427,6 +431,9 @@ Feel free to use the widget on the quiz dashboard within the plugin or from the
427
 
428
  == Upgrade Notice ==
429
 
 
 
 
430
  = 2.5.1 =
431
  Upgrade for many new features including unlimited answers, random answers, new question type, and more!
432
 
4
  Tags: quiz, test, score, survey, contact, form, email, answer, question
5
  Requires at least: 3.6
6
  Tested up to: 3.9
7
+ Stable tag: 2.6.1
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
10
  The easiest and most flexible way to add multiple quizzes, tests, and surveys to your website.
102
 
103
  == Changelog ==
104
 
105
+ = 2.6.1 (May 7, 2014) =
106
+ * Added UTF-8 Support For Special Characters And Non-Latin Languages
107
+ * Fixed Question Bank Showing All Answers Bug
108
+
109
  = 2.5.1 (May 3, 2014) =
110
  * Rebuilt Answer System
111
  * Added Ability To Have Unlimited Answers
431
 
432
  == Upgrade Notice ==
433
 
434
+ = 2.6.1 =
435
+ Upgrade to be able to support special characters and non-latin based languages.
436
+
437
  = 2.5.1 =
438
  Upgrade for many new features including unlimited answers, random answers, new question type, and more!
439