Version Description
Upgrade to see widgets relocated from help page to quiz dashboard page. Also, began setting plugin up for translations. Updated many help sections throughout plugin. Minor bug fixes.
Download this release
Release Info
Developer | fpcorso |
Plugin | Quiz And Survey Master (Formerly Quiz Master Next) |
Version | 0.9.7 |
Comparing to | |
See all releases |
Code changes from version 0.9.6 to 0.9.7
- includes/mlw_dashboard.php +242 -38
- includes/mlw_main_page.php +0 -331
- includes/mlw_quiz_admin.php +4 -1
- includes/mlw_quiz_options.php +19 -9
- includes/mlw_update.php +6 -2
- mlw_quizmaster2.php +7 -3
- readme.txt +13 -4
includes/mlw_dashboard.php
CHANGED
@@ -7,14 +7,51 @@ Copyright 2014, My Local Webstop (email : fpcorso@mylocalwebstop.com)
|
|
7 |
*/
|
8 |
|
9 |
function mlw_generate_quiz_dashboard(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
$mlw_quiz_version = get_option('mlw_quiz_master_version');
|
11 |
|
12 |
///Creates the widgets
|
13 |
add_meta_box("wpss_mrts", 'Quiz Daily Stats - Times Taken', "mlw_dashboard_box", "quiz_wpss");
|
14 |
-
add_meta_box("wpss_mrts", 'Help', "mlw_dashboard_box_two", "quiz_wpss2");
|
15 |
add_meta_box("wpss_mrts", 'Quiz Total Stats', "mlw_dashboard_box_three", "quiz_wpss3");
|
16 |
add_meta_box("wpss_mrts", 'Quiz Weekly Stats - Times Taken', "mlw_dashboard_box_four", "quiz_wpss4");
|
17 |
add_meta_box("wpss_mrts", 'Quiz Monthly Stats - Times Taken', "mlw_dashboard_box_five", "quiz_wpss5");
|
|
|
|
|
|
|
|
|
18 |
?>
|
19 |
<!-- css -->
|
20 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
@@ -58,12 +95,37 @@ function mlw_generate_quiz_dashboard(){
|
|
58 |
color: #555;
|
59 |
font-weight: bold;
|
60 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
</style>
|
62 |
<div class="wrap">
|
63 |
-
<h2>Quiz Master Next Dashboard
|
64 |
|
65 |
<h3>Version <?php echo $mlw_quiz_version; ?></h3>
|
66 |
-
<p
|
67 |
|
68 |
<div style="float:left; width:60%;" class="inner-sidebar1">
|
69 |
<?php do_meta_boxes('quiz_wpss','advanced',''); ?>
|
@@ -80,7 +142,7 @@ function mlw_generate_quiz_dashboard(){
|
|
80 |
</div>
|
81 |
|
82 |
<div style="float:right; width:36%; " class="inner-sidebar1">
|
83 |
-
<?php do_meta_boxes('
|
84 |
</div>
|
85 |
|
86 |
<!--<div style="clear:both"></div>-->
|
@@ -89,14 +151,33 @@ function mlw_generate_quiz_dashboard(){
|
|
89 |
<?php do_meta_boxes('quiz_wpss5','advanced',''); ?>
|
90 |
</div>
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
<!--<div style="clear:both"></div>-->
|
93 |
|
94 |
<div id="dialog" title="Help">
|
95 |
<h3><b>Help</b></h3>
|
96 |
-
<p>This page is the main admin
|
97 |
-
<p>
|
98 |
-
<p>
|
99 |
-
<p>
|
|
|
|
|
|
|
|
|
|
|
100 |
</div>
|
101 |
|
102 |
</div>
|
@@ -153,36 +234,6 @@ function mlw_dashboard_box()
|
|
153 |
<?php
|
154 |
}
|
155 |
|
156 |
-
function mlw_dashboard_box_two()
|
157 |
-
{
|
158 |
-
?>
|
159 |
-
<div>
|
160 |
-
<table width='100%'>
|
161 |
-
<tr>
|
162 |
-
<td align='left'>There is a (?) next to the title of each page. Click on it to bring up the help for that page.</td>
|
163 |
-
</tr>
|
164 |
-
<tr>
|
165 |
-
<td align='left'>If the help does not answer your question, take a look at the How-To section from the menu.</td>
|
166 |
-
</tr>
|
167 |
-
<tr>
|
168 |
-
<td align='left'>If you still are having trouble, feel free to use the support section from the support page to contact me.</td>
|
169 |
-
</tr>
|
170 |
-
<tr>
|
171 |
-
<td align='left'></td>
|
172 |
-
</tr>
|
173 |
-
<tr>
|
174 |
-
<td align='left'></td>
|
175 |
-
</tr>
|
176 |
-
<tr>
|
177 |
-
<td align='left'></td>
|
178 |
-
</tr>
|
179 |
-
<tr>
|
180 |
-
<td align='left'></td>
|
181 |
-
</tr>
|
182 |
-
</table>
|
183 |
-
</div>
|
184 |
-
<?php
|
185 |
-
}
|
186 |
function mlw_dashboard_box_three()
|
187 |
{
|
188 |
//Gather some other useful stats
|
@@ -352,4 +403,157 @@ function mlw_dashboard_box_five()
|
|
352 |
</div>
|
353 |
<?php
|
354 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
355 |
?>
|
7 |
*/
|
8 |
|
9 |
function mlw_generate_quiz_dashboard(){
|
10 |
+
|
11 |
+
echo "
|
12 |
+
<script>
|
13 |
+
function mlw_validateForm()
|
14 |
+
{
|
15 |
+
var x=document.forms['emailForm']['email'].value;
|
16 |
+
if (x==null || x=='')
|
17 |
+
{
|
18 |
+
document.getElementById('mlw_support_message').innerHTML = '**Email must be filled out!**';
|
19 |
+
return false;
|
20 |
+
};
|
21 |
+
var x=document.forms['emailForm']['username'].value;
|
22 |
+
if (x==null || x=='')
|
23 |
+
{
|
24 |
+
document.getElementById('mlw_support_message').innerHTML = '**Name must be filled out!**';
|
25 |
+
return false;
|
26 |
+
};
|
27 |
+
var x=document.forms['emailForm']['message'].value;
|
28 |
+
if (x==null || x=='')
|
29 |
+
{
|
30 |
+
document.getElementById('mlw_support_message').innerHTML = '**There must be a message to send!**';
|
31 |
+
return false;
|
32 |
+
};
|
33 |
+
var x=document.forms['emailForm']['email'].value;
|
34 |
+
var atpos=x.indexOf('@');
|
35 |
+
var dotpos=x.lastIndexOf('.');
|
36 |
+
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
|
37 |
+
{
|
38 |
+
document.getElementById('mlw_support_message').innerHTML = '**Not a valid e-mail address!**';
|
39 |
+
return false;
|
40 |
+
}
|
41 |
+
}
|
42 |
+
</script>
|
43 |
+
";
|
44 |
$mlw_quiz_version = get_option('mlw_quiz_master_version');
|
45 |
|
46 |
///Creates the widgets
|
47 |
add_meta_box("wpss_mrts", 'Quiz Daily Stats - Times Taken', "mlw_dashboard_box", "quiz_wpss");
|
|
|
48 |
add_meta_box("wpss_mrts", 'Quiz Total Stats', "mlw_dashboard_box_three", "quiz_wpss3");
|
49 |
add_meta_box("wpss_mrts", 'Quiz Weekly Stats - Times Taken', "mlw_dashboard_box_four", "quiz_wpss4");
|
50 |
add_meta_box("wpss_mrts", 'Quiz Monthly Stats - Times Taken', "mlw_dashboard_box_five", "quiz_wpss5");
|
51 |
+
add_meta_box("wpss_mrts", 'In This Update', "mlw_dashboard_box_six", "quiz_wpss6");
|
52 |
+
add_meta_box("wpss_mrts", 'Support', "mlw_dashboard_box_seven", "quiz_wpss7");
|
53 |
+
add_meta_box("wpss_mrts", 'Contribution', "mlw_dashboard_box_eight", "quiz_wpss8");
|
54 |
+
add_meta_box("wpss_mrts", 'News From My Local Webstop', "mlw_dashboard_box_nine", "quiz_wpss9");
|
55 |
?>
|
56 |
<!-- css -->
|
57 |
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
95 |
color: #555;
|
96 |
font-weight: bold;
|
97 |
}
|
98 |
+
div.quiz_email_support {
|
99 |
+
text-align: left;
|
100 |
+
}
|
101 |
+
div.quiz_email_support input[type='text'] {
|
102 |
+
border-color:#000000;
|
103 |
+
color:#3300CC;
|
104 |
+
cursor:hand;
|
105 |
+
}
|
106 |
+
div.donation {
|
107 |
+
border-width: 1px;
|
108 |
+
border-style: solid;
|
109 |
+
padding: 0 0.6em;
|
110 |
+
margin: 5px 0 15px;
|
111 |
+
-moz-border-radius: 3px;
|
112 |
+
-khtml-border-radius: 3px;
|
113 |
+
-webkit-border-radius: 3px;
|
114 |
+
border-radius: 3px;
|
115 |
+
background-color: #ffffe0;
|
116 |
+
border-color: #e6db55;
|
117 |
+
text-align: center;
|
118 |
+
}
|
119 |
+
donation.p { margin: 0.5em 0;
|
120 |
+
line-height: 1;
|
121 |
+
padding: 2px;
|
122 |
+
}
|
123 |
</style>
|
124 |
<div class="wrap">
|
125 |
+
<h2>Quiz Master Next <?php _e("Dashboard", "mlw_qmn_text_domain"); ?><a id="opener" href="">(?)</a></h2>
|
126 |
|
127 |
<h3>Version <?php echo $mlw_quiz_version; ?></h3>
|
128 |
+
<p><?php _e("Thank you for trying out this plugin. I hope you find it beneficial to your website. If it is, please consider donating from the support page. Or, please consider rating this plugin ", "mlw_qmn_text_domain"); ?><a href="http://wordpress.org/support/view/plugin-reviews/quiz-master-next"><?php _e("here", "mlw_qmn_text_domain"); ?></a>.</p>
|
129 |
|
130 |
<div style="float:left; width:60%;" class="inner-sidebar1">
|
131 |
<?php do_meta_boxes('quiz_wpss','advanced',''); ?>
|
142 |
</div>
|
143 |
|
144 |
<div style="float:right; width:36%; " class="inner-sidebar1">
|
145 |
+
<?php do_meta_boxes('quiz_wpss6','advanced',''); ?>
|
146 |
</div>
|
147 |
|
148 |
<!--<div style="clear:both"></div>-->
|
151 |
<?php do_meta_boxes('quiz_wpss5','advanced',''); ?>
|
152 |
</div>
|
153 |
|
154 |
+
<div style="float:right; width:36%; " class="inner-sidebar1">
|
155 |
+
<?php do_meta_boxes('quiz_wpss7','advanced',''); ?>
|
156 |
+
</div>
|
157 |
+
|
158 |
+
<!--<div style="clear:both"></div>-->
|
159 |
+
|
160 |
+
<div style="float:left; width:60%;" class="inner-sidebar1">
|
161 |
+
<?php do_meta_boxes('quiz_wpss9','advanced',''); ?>
|
162 |
+
</div>
|
163 |
+
|
164 |
+
<div style="float:right; width:36%; " class="inner-sidebar1">
|
165 |
+
<?php do_meta_boxes('quiz_wpss8','advanced',''); ?>
|
166 |
+
</div>
|
167 |
+
|
168 |
<!--<div style="clear:both"></div>-->
|
169 |
|
170 |
<div id="dialog" title="Help">
|
171 |
<h3><b>Help</b></h3>
|
172 |
+
<p>This page is the main admin dashboard for the Quiz Master Next. It contains many useful widgets for the admin.</p>
|
173 |
+
<p>Quiz Daily Stats -> This widget shows the times all quizzes have been taken each day over the last week.</p>
|
174 |
+
<p>Quiz Weekly Stats -> This widget shows the times all quizzes have been taken each week over the last few weeks.</p>
|
175 |
+
<p>Quiz Monthly Stats -> This widget shows the times all quizzes have been taken each month over the last few months.</p>
|
176 |
+
<p>Quiz Total Stats -> This widget shows several different stats that has been collected.</p>
|
177 |
+
<p>In This Update -> This widget shows what is new in the most recent update of the plugin.</p>
|
178 |
+
<p>Support -> This widget allows you to send a message to the developer of the plugin.</p>
|
179 |
+
<p>News From My Local Webstop -> This widget allows you to keep up with the latest news from My Local Webstop, the developer behind Quiz Master Next.</p>
|
180 |
+
<p>Contribution -> This widget allows you to make a contribution to the developer.</p>
|
181 |
</div>
|
182 |
|
183 |
</div>
|
234 |
<?php
|
235 |
}
|
236 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
237 |
function mlw_dashboard_box_three()
|
238 |
{
|
239 |
//Gather some other useful stats
|
403 |
</div>
|
404 |
<?php
|
405 |
}
|
406 |
+
|
407 |
+
function mlw_dashboard_box_six()
|
408 |
+
{
|
409 |
+
?>
|
410 |
+
<div>
|
411 |
+
<table width='100%'>
|
412 |
+
<tr>
|
413 |
+
<td align='left'>0.9.7 (January 24, 2014)</td>
|
414 |
+
</tr>
|
415 |
+
<tr>
|
416 |
+
<td align='left'>* Started Setting Plugin Up For Translations</td>
|
417 |
+
</tr>
|
418 |
+
<tr>
|
419 |
+
<td align='left'>* Relocated Widgets From Help Page To Quiz Dashboard Page</td>
|
420 |
+
</tr>
|
421 |
+
<tr>
|
422 |
+
<td align='left'>* Updated Several Of The Help Sections Through Plugin</td>
|
423 |
+
</tr>
|
424 |
+
<tr>
|
425 |
+
<td align='left'>* Minor Bug Fixes</td>
|
426 |
+
</tr>
|
427 |
+
</table>
|
428 |
+
</div>
|
429 |
+
<?php
|
430 |
+
}
|
431 |
+
|
432 |
+
function mlw_dashboard_box_seven()
|
433 |
+
{
|
434 |
+
$quiz_master_email_message = "";
|
435 |
+
$mlw_quiz_version = get_option('mlw_quiz_master_version');
|
436 |
+
if(isset($_POST["action"]))
|
437 |
+
{
|
438 |
+
$quiz_master_email_success = $_POST["action"];
|
439 |
+
$user_name = $_POST["username"];
|
440 |
+
$user_email = $_POST["email"];
|
441 |
+
$user_message = $_POST["message"];
|
442 |
+
$user_quiz_url = $_POST["quiz_url"];
|
443 |
+
$current_user = wp_get_current_user();
|
444 |
+
if ($quiz_master_email_success == 'update')
|
445 |
+
{
|
446 |
+
$mlw_message = "Message from ".$user_name." at ".$user_email." It says: \n \n ".$user_message."\n Version: ".$mlw_quiz_version."\n Quiz URL Provided: ".$user_quiz_url."\n User ".$current_user->display_name." from ".$current_user->user_email;
|
447 |
+
wp_mail('fpcorso@mylocalwebstop.com' ,'Support From Quiz Master Next Plugin', $mlw_message);
|
448 |
+
$quiz_master_email_message = "**Message Sent**";
|
449 |
+
}
|
450 |
+
}
|
451 |
+
?>
|
452 |
+
<div class='quiz_email_support'>
|
453 |
+
<form action="<?php echo $_SERVER['PHP_SELF']; ?>?page=quiz-master-next/mlw_quizmaster2.php" method='post' name='emailForm' onsubmit='return mlw_validateForm()'>
|
454 |
+
<input type='hidden' name='action' value='update' />
|
455 |
+
<table>
|
456 |
+
<tr>
|
457 |
+
<td>If there is something you would like to suggest to add or even if you just want
|
458 |
+
to let me know if you like the plugin or not, feel free to use the email form below.</td>
|
459 |
+
</tr>
|
460 |
+
<tr>
|
461 |
+
<td><span name='mlw_support_message' id='mlw_support_message' style="color: red;"><?php echo $quiz_master_email_message; ?></span></td>
|
462 |
+
</tr>
|
463 |
+
<tr>
|
464 |
+
<td align='left'><span style='font-weight:bold;';>Name (Required): </span></td>
|
465 |
+
</tr>
|
466 |
+
<tr>
|
467 |
+
<td><input type='text' name='username' value='' /></td>
|
468 |
+
</tr>
|
469 |
+
<tr>
|
470 |
+
<td align='left'><span style='font-weight:bold;';>Email (Required): </span></td>
|
471 |
+
</tr>
|
472 |
+
<tr>
|
473 |
+
<td><input type='text' name='email' value='' /></td>
|
474 |
+
</tr>
|
475 |
+
<tr>
|
476 |
+
<td align='left'><span style='font-weight:bold;';>URL To Quiz (Not Required): </span></td>
|
477 |
+
</tr>
|
478 |
+
<tr>
|
479 |
+
<td><input type='text' name='quiz_url' value='' /></td>
|
480 |
+
</tr>
|
481 |
+
<tr>
|
482 |
+
<td align='left'><span style='font-weight:bold;';>Message (Required): </span></td>
|
483 |
+
</tr>
|
484 |
+
<tr>
|
485 |
+
<td align='left'><TEXTAREA NAME="message" COLS=40 ROWS=6></TEXTAREA></td>
|
486 |
+
</tr>
|
487 |
+
<tr>
|
488 |
+
<td align='left'><input type='submit' value='Send Email' /></td>
|
489 |
+
</tr>
|
490 |
+
<tr>
|
491 |
+
<td align='left'></td>
|
492 |
+
</tr>
|
493 |
+
</table>
|
494 |
+
</form>
|
495 |
+
</div>
|
496 |
+
<?php
|
497 |
+
}
|
498 |
+
|
499 |
+
function mlw_dashboard_box_eight()
|
500 |
+
{
|
501 |
+
?>
|
502 |
+
<div>
|
503 |
+
<table width='100%'>
|
504 |
+
<tr>
|
505 |
+
<td align='left'>
|
506 |
+
Quiz Master Next is and always will be a free plugin. I have spent a lot of time and effort developing and maintaining this plugin. If it has been beneficial to your site, please consider supporting this plugin by making a donation.
|
507 |
+
</td>
|
508 |
+
</tr>
|
509 |
+
<tr>
|
510 |
+
<td> </td>
|
511 |
+
</tr>
|
512 |
+
<tr>
|
513 |
+
<td></td>
|
514 |
+
</tr>
|
515 |
+
<tr>
|
516 |
+
<td> </td>
|
517 |
+
</tr>
|
518 |
+
<tr>
|
519 |
+
<td>
|
520 |
+
<div class="donation">
|
521 |
+
<p>
|
522 |
+
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
523 |
+
<input type="hidden" name="cmd" value="_donations">
|
524 |
+
<input type="hidden" name="business" value="fpcorso@gmail.com">
|
525 |
+
<input type="hidden" name="lc" value="US">
|
526 |
+
<input type="hidden" name="no_note" value="0">
|
527 |
+
<input type="hidden" name="currency_code" value="USD">
|
528 |
+
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
|
529 |
+
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
530 |
+
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
531 |
+
</form>
|
532 |
+
|
533 |
+
</p>
|
534 |
+
</div>
|
535 |
+
</td>
|
536 |
+
</tr>
|
537 |
+
</table>
|
538 |
+
<p>Thank you to those who have contributed so far.</p>
|
539 |
+
<h3>Supporters</h3>
|
540 |
+
<ul>
|
541 |
+
<li>Tracy B</li>
|
542 |
+
<li>Bobby L</li>
|
543 |
+
</ul>
|
544 |
+
</div>
|
545 |
+
<?php
|
546 |
+
}
|
547 |
+
function mlw_dashboard_box_nine()
|
548 |
+
{
|
549 |
+
?>
|
550 |
+
<div>
|
551 |
+
<table width='100%'>
|
552 |
+
<tr>
|
553 |
+
<td align='left'><iframe src="http://www.mylocalwebstop.com/mlw_news.html?cache=<?php echo rand(); ?>" seamless="seamless" style="width: 100%; height: 550px;"></iframe></td>
|
554 |
+
</tr>
|
555 |
+
</table>
|
556 |
+
</div>
|
557 |
+
<?php
|
558 |
+
}
|
559 |
?>
|
includes/mlw_main_page.php
DELETED
@@ -1,331 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Generates the support for Quiz Master Next
|
4 |
-
*/
|
5 |
-
/*
|
6 |
-
Copyright 2014, My Local Webstop (email : fpcorso@mylocalwebstop.com)
|
7 |
-
*/
|
8 |
-
|
9 |
-
|
10 |
-
function mlw_generate_main_page()
|
11 |
-
{
|
12 |
-
echo "
|
13 |
-
<script>
|
14 |
-
function mlw_validateForm()
|
15 |
-
{
|
16 |
-
var x=document.forms['emailForm']['email'].value;
|
17 |
-
if (x==null || x=='')
|
18 |
-
{
|
19 |
-
document.getElementById('mlw_support_message').innerHTML = '**Email must be filled out!**';
|
20 |
-
return false;
|
21 |
-
};
|
22 |
-
var x=document.forms['emailForm']['username'].value;
|
23 |
-
if (x==null || x=='')
|
24 |
-
{
|
25 |
-
document.getElementById('mlw_support_message').innerHTML = '**Name must be filled out!**';
|
26 |
-
return false;
|
27 |
-
};
|
28 |
-
var x=document.forms['emailForm']['message'].value;
|
29 |
-
if (x==null || x=='')
|
30 |
-
{
|
31 |
-
document.getElementById('mlw_support_message').innerHTML = '**There must be a message to send!**';
|
32 |
-
return false;
|
33 |
-
};
|
34 |
-
var x=document.forms['emailForm']['email'].value;
|
35 |
-
var atpos=x.indexOf('@');
|
36 |
-
var dotpos=x.lastIndexOf('.');
|
37 |
-
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=x.length)
|
38 |
-
{
|
39 |
-
document.getElementById('mlw_support_message').innerHTML = '**Not a valid e-mail address!**';
|
40 |
-
return false;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
</script>
|
44 |
-
";
|
45 |
-
$mlw_quiz_version = get_option('mlw_quiz_master_version');
|
46 |
-
add_meta_box("wpss_mrts", 'In This Update', "quiz_wpss_mrt_meta_box2", "quiz_wpss2");
|
47 |
-
add_meta_box("wpss_mrts", 'Support', "quiz_wpss_mrt_meta_box3", "quiz_wpss3");
|
48 |
-
add_meta_box("wpss_mrts", 'Contribution', "quiz_wpss_mrt_meta_box4", "quiz_wpss4");
|
49 |
-
add_meta_box("wpss_mrts", 'News From My Local Webstop', "quiz_wpss_mrt_meta_box5", "quiz_wpss5");
|
50 |
-
add_meta_box("wpss_mrts", 'Brainstorm Idea', "quiz_wpss_mrt_meta_box6", "quiz_wpss6");
|
51 |
-
?>
|
52 |
-
<!-- css -->
|
53 |
-
<link type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/themes/redmond/jquery-ui.css" rel="stylesheet" />
|
54 |
-
<!-- jquery scripts -->
|
55 |
-
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
|
56 |
-
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
|
57 |
-
<script type="text/javascript">
|
58 |
-
var $j = jQuery.noConflict();
|
59 |
-
// increase the default animation speed to exaggerate the effect
|
60 |
-
$j.fx.speeds._default = 1000;
|
61 |
-
$j(function() {
|
62 |
-
$j('#dialog').dialog({
|
63 |
-
autoOpen: false,
|
64 |
-
show: 'blind',
|
65 |
-
hide: 'explode',
|
66 |
-
buttons: {
|
67 |
-
Ok: function() {
|
68 |
-
$j(this).dialog('close');
|
69 |
-
}
|
70 |
-
}
|
71 |
-
});
|
72 |
-
|
73 |
-
$j('#opener').click(function() {
|
74 |
-
$j('#dialog').dialog('open');
|
75 |
-
return false;
|
76 |
-
} );
|
77 |
-
});
|
78 |
-
</script>
|
79 |
-
<style type="text/css">
|
80 |
-
div.quiz_email_support {
|
81 |
-
text-align: left;
|
82 |
-
}
|
83 |
-
div.quiz_email_support input[type='text'] {
|
84 |
-
border-color:#000000;
|
85 |
-
color:#3300CC;
|
86 |
-
cursor:hand;
|
87 |
-
}
|
88 |
-
textarea{
|
89 |
-
border-color:#000000;
|
90 |
-
color:#3300CC;
|
91 |
-
cursor:hand;
|
92 |
-
}
|
93 |
-
div.donation {
|
94 |
-
border-width: 1px;
|
95 |
-
border-style: solid;
|
96 |
-
padding: 0 0.6em;
|
97 |
-
margin: 5px 0 15px;
|
98 |
-
-moz-border-radius: 3px;
|
99 |
-
-khtml-border-radius: 3px;
|
100 |
-
-webkit-border-radius: 3px;
|
101 |
-
border-radius: 3px;
|
102 |
-
background-color: #ffffe0;
|
103 |
-
border-color: #e6db55;
|
104 |
-
text-align: center;
|
105 |
-
}
|
106 |
-
donation.p { margin: 0.5em 0;
|
107 |
-
line-height: 1;
|
108 |
-
padding: 2px;
|
109 |
-
}
|
110 |
-
p em {
|
111 |
-
padding-left: 1em;
|
112 |
-
color: #555;
|
113 |
-
font-weight: bold;
|
114 |
-
}
|
115 |
-
</style>
|
116 |
-
<div class="wrap">
|
117 |
-
<h2>Quiz Master Next Help And Support <a id="opener" href="">(?)</a></h2>
|
118 |
-
|
119 |
-
<h3>Version <?php echo $mlw_quiz_version; ?></h3>
|
120 |
-
<p>Thank you for trying out my new plugin. I hope you find it beneficial to your website. Please consider rating this plugin <a href="http://wordpress.org/support/view/plugin-reviews/quiz-master-next">here</a>.</p>
|
121 |
-
|
122 |
-
<div style="float:left; width:60%;" class="inner-sidebar1">
|
123 |
-
<?php do_meta_boxes('quiz_wpss3','advanced',''); ?>
|
124 |
-
</div>
|
125 |
-
|
126 |
-
<div style="float:right; width:36%; " class="inner-sidebar1">
|
127 |
-
<?php do_meta_boxes('quiz_wpss2','advanced',''); ?>
|
128 |
-
</div>
|
129 |
-
|
130 |
-
<div style="float:right; width:36%; " class="inner-sidebar1">
|
131 |
-
<?php do_meta_boxes('quiz_wpss5','advanced',''); ?>
|
132 |
-
</div>
|
133 |
-
|
134 |
-
<!--<div style="clear:both"></div>-->
|
135 |
-
|
136 |
-
<div style="float:left; width:60%; " class="inner-sidebar1">
|
137 |
-
<?php do_meta_boxes('quiz_wpss4','advanced',''); ?>
|
138 |
-
</div>
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
<div id="dialog" title="Help">
|
143 |
-
<h3><b>Help</b></h3>
|
144 |
-
<p>This page is the main support page for the Quiz Master Next.</p>
|
145 |
-
<p>The first widget lists all the statistics collected so far.</p>
|
146 |
-
<p>The second widget lists all the new features added in this update.</p>
|
147 |
-
<p>The third widget contains a contact form for emailing the developer.</p>
|
148 |
-
<p>The fourth widget shows news from My Local Webstop regarding our plugins</p>
|
149 |
-
<p>The last widget is our donation widget.</p>
|
150 |
-
</div>
|
151 |
-
|
152 |
-
</div>
|
153 |
-
<?php
|
154 |
-
}
|
155 |
-
|
156 |
-
function quiz_wpss_mrt_meta_box2()
|
157 |
-
{
|
158 |
-
?>
|
159 |
-
<div>
|
160 |
-
<table width='100%'>
|
161 |
-
<tr>
|
162 |
-
<td align='left'>0.9.6 (January 21, 2014)</td>
|
163 |
-
</tr>
|
164 |
-
<tr>
|
165 |
-
<td align='left'>* Added Ability To Edit Question Order When Adding Questions</td>
|
166 |
-
</tr>
|
167 |
-
<tr>
|
168 |
-
<td align='left'>* Added Ability To Choose Whether Contact Info Is Asked For At Beginning Or End Of Quiz</td>
|
169 |
-
</tr>
|
170 |
-
<tr>
|
171 |
-
<td align='left'>* Defaulted Question Comment Field To None On New Questions</td>
|
172 |
-
</tr>
|
173 |
-
<tr>
|
174 |
-
<td align='left'>* Fixed Double Quote Bug</td>
|
175 |
-
</tr>
|
176 |
-
<tr>
|
177 |
-
<td align='left'>* Enhanced Monthly Stat Widget</td>
|
178 |
-
</tr>
|
179 |
-
<tr>
|
180 |
-
<td align='left'>* Minor Design Change To Quiz Total Stats Widget</td>
|
181 |
-
</tr>
|
182 |
-
<tr>
|
183 |
-
<td align='left'>* Minor Design Changes To Quiz Options Page</td>
|
184 |
-
</tr>
|
185 |
-
</table>
|
186 |
-
</div>
|
187 |
-
<?php
|
188 |
-
}
|
189 |
-
|
190 |
-
function quiz_wpss_mrt_meta_box3()
|
191 |
-
{
|
192 |
-
$quiz_master_email_message = "";
|
193 |
-
$mlw_quiz_version = get_option('mlw_quiz_master_version');
|
194 |
-
if(isset($_POST["action"]))
|
195 |
-
{
|
196 |
-
$quiz_master_email_success = $_POST["action"];
|
197 |
-
$user_name = $_POST["username"];
|
198 |
-
$user_email = $_POST["email"];
|
199 |
-
$user_message = $_POST["message"];
|
200 |
-
$user_quiz_url = $_POST["quiz_url"];
|
201 |
-
$current_user = wp_get_current_user();
|
202 |
-
if ($quiz_master_email_success == 'update')
|
203 |
-
{
|
204 |
-
$mlw_message = "Message from ".$user_name." at ".$user_email." It says: \n \n ".$user_message."\n Version: ".$mlw_quiz_version."\n Quiz URL Provided: ".$user_quiz_url."\n User ".$current_user->display_name." from ".$current_user->user_email;
|
205 |
-
wp_mail('fpcorso@mylocalwebstop.com' ,'Support From Quiz Master Next Plugin', $mlw_message);
|
206 |
-
$quiz_master_email_message = "**Message Sent**";
|
207 |
-
}
|
208 |
-
}
|
209 |
-
?>
|
210 |
-
<div class='quiz_email_support'>
|
211 |
-
<form action="<?php echo $_SERVER['PHP_SELF']; ?>?page=mlw_quiz_support" method='post' name='emailForm' onsubmit='return mlw_validateForm()'>
|
212 |
-
<input type='hidden' name='action' value='update' />
|
213 |
-
<table>
|
214 |
-
<tr>
|
215 |
-
<td>If there is something you would like to suggest to add or even if you just want
|
216 |
-
to let me know if you like the plugin or not, feel free to use the email form below.</td>
|
217 |
-
</tr>
|
218 |
-
<tr>
|
219 |
-
<td><span name='mlw_support_message' id='mlw_support_message' style="color: red;"><?php echo $quiz_master_email_message; ?></span></td>
|
220 |
-
</tr>
|
221 |
-
<tr>
|
222 |
-
<td align='left'><span style='font-weight:bold;';>Name (Required): </span></td>
|
223 |
-
</tr>
|
224 |
-
<tr>
|
225 |
-
<td><input type='text' name='username' value='' /></td>
|
226 |
-
</tr>
|
227 |
-
<tr>
|
228 |
-
<td align='left'><span style='font-weight:bold;';>Email (Required): </span></td>
|
229 |
-
</tr>
|
230 |
-
<tr>
|
231 |
-
<td><input type='text' name='email' value='' /></td>
|
232 |
-
</tr>
|
233 |
-
<tr>
|
234 |
-
<td align='left'><span style='font-weight:bold;';>URL To Quiz (Not Required): </span></td>
|
235 |
-
</tr>
|
236 |
-
<tr>
|
237 |
-
<td><input type='text' name='quiz_url' value='' /></td>
|
238 |
-
</tr>
|
239 |
-
<tr>
|
240 |
-
<td align='left'><span style='font-weight:bold;';>Message (Required): </span></td>
|
241 |
-
</tr>
|
242 |
-
<tr>
|
243 |
-
<td align='left'><TEXTAREA NAME="message" COLS=40 ROWS=6></TEXTAREA></td>
|
244 |
-
</tr>
|
245 |
-
<tr>
|
246 |
-
<td align='left'><input type='submit' value='Send Email' /></td>
|
247 |
-
</tr>
|
248 |
-
<tr>
|
249 |
-
<td align='left'></td>
|
250 |
-
</tr>
|
251 |
-
</table>
|
252 |
-
</form>
|
253 |
-
</div>
|
254 |
-
<?php
|
255 |
-
}
|
256 |
-
|
257 |
-
function quiz_wpss_mrt_meta_box4()
|
258 |
-
{
|
259 |
-
?>
|
260 |
-
<div>
|
261 |
-
<table width='100%'>
|
262 |
-
<tr>
|
263 |
-
<td align='left'>
|
264 |
-
I have spent a lot of time in development for this plugin. If you like it, please help by donating today.
|
265 |
-
</td>
|
266 |
-
</tr>
|
267 |
-
<tr>
|
268 |
-
<td> </td>
|
269 |
-
</tr>
|
270 |
-
<tr>
|
271 |
-
<td></td>
|
272 |
-
</tr>
|
273 |
-
<tr>
|
274 |
-
<td> </td>
|
275 |
-
</tr>
|
276 |
-
<tr>
|
277 |
-
<td>
|
278 |
-
<div class="donation">
|
279 |
-
<p>
|
280 |
-
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
|
281 |
-
<input type="hidden" name="cmd" value="_donations">
|
282 |
-
<input type="hidden" name="business" value="fpcorso@gmail.com">
|
283 |
-
<input type="hidden" name="lc" value="US">
|
284 |
-
<input type="hidden" name="no_note" value="0">
|
285 |
-
<input type="hidden" name="currency_code" value="USD">
|
286 |
-
<input type="hidden" name="bn" value="PP-DonationsBF:btn_donateCC_LG.gif:NonHostedGuest">
|
287 |
-
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
|
288 |
-
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
|
289 |
-
</form>
|
290 |
-
|
291 |
-
</p>
|
292 |
-
</div>
|
293 |
-
</td>
|
294 |
-
</tr>
|
295 |
-
</table>
|
296 |
-
<p>Thank you to those who have contributed so far.</p>
|
297 |
-
<h3>Supporters</h3>
|
298 |
-
<ul>
|
299 |
-
<li>Tracy B</li>
|
300 |
-
<li>Bobby L</li>
|
301 |
-
</ul>
|
302 |
-
</div>
|
303 |
-
<?php
|
304 |
-
}
|
305 |
-
function quiz_wpss_mrt_meta_box5()
|
306 |
-
{
|
307 |
-
?>
|
308 |
-
<div>
|
309 |
-
<table width='100%'>
|
310 |
-
<tr>
|
311 |
-
<td align='left'><iframe src="http://www.mylocalwebstop.com/mlw_news.html?cache=<?php echo rand(); ?>" seamless="seamless" style="width: 100%; height: 550px;"></iframe></td>
|
312 |
-
</tr>
|
313 |
-
</table>
|
314 |
-
</div>
|
315 |
-
<?php
|
316 |
-
}
|
317 |
-
function quiz_wpss_mrt_meta_box6()
|
318 |
-
{
|
319 |
-
?>
|
320 |
-
<div>
|
321 |
-
<table width='100%'>
|
322 |
-
<tr>
|
323 |
-
<td align='left'>
|
324 |
-
Box Six
|
325 |
-
</td>
|
326 |
-
</tr>
|
327 |
-
</table>
|
328 |
-
</div>
|
329 |
-
<?php
|
330 |
-
}
|
331 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/mlw_quiz_admin.php
CHANGED
@@ -323,9 +323,12 @@ function mlw_generate_quiz_admin()
|
|
323 |
<div id="dialog" title="Help">
|
324 |
<h3><b>Help</b></h3>
|
325 |
<p>This page shows all of the quizzes currently on your website.</p>
|
326 |
-
<p>The table shows the quiz id, the name of your quiz, the shortcode to use on your post or page, the amount of views the quiz has had, and the amount of times the quiz was finished</p>
|
327 |
<p>To create a new quiz, click the Create New Quiz button and fill out the name.</p>
|
328 |
<p>To edit a quiz, click the Edit link underneath the name of the quiz.</p>
|
|
|
|
|
|
|
329 |
</div>
|
330 |
</div>
|
331 |
</div>
|
323 |
<div id="dialog" title="Help">
|
324 |
<h3><b>Help</b></h3>
|
325 |
<p>This page shows all of the quizzes currently on your website.</p>
|
326 |
+
<p>The table shows the quiz id, the name of your quiz, the shortcode to use on your post or page to add the quiz, the shortcode to use on your post or page to add the leaderboard, the amount of views the quiz has had, and the amount of times the quiz was finished</p>
|
327 |
<p>To create a new quiz, click the Create New Quiz button and fill out the name.</p>
|
328 |
<p>To edit a quiz, click the Edit link underneath the name of the quiz.</p>
|
329 |
+
<p>To edit a quiz's name, click the Edit Name link next to the name of the quiz.</p>
|
330 |
+
<p>To delete a quiz, click the Delete link underneath the name of the quiz.</p>
|
331 |
+
<p>To view the results of a quiz, click the Results link underneath the name of the quiz.</p>
|
332 |
</div>
|
333 |
</div>
|
334 |
</div>
|
includes/mlw_quiz_options.php
CHANGED
@@ -278,6 +278,7 @@ function mlw_generate_quiz_options()
|
|
278 |
$j('#questions_help_dialog').dialog({
|
279 |
autoOpen: false,
|
280 |
show: 'blind',
|
|
|
281 |
hide: 'explode',
|
282 |
buttons: {
|
283 |
Ok: function() {
|
@@ -295,6 +296,7 @@ function mlw_generate_quiz_options()
|
|
295 |
$j('#templates_help_dialog').dialog({
|
296 |
autoOpen: false,
|
297 |
show: 'blind',
|
|
|
298 |
hide: 'explode',
|
299 |
buttons: {
|
300 |
Ok: function() {
|
@@ -312,6 +314,7 @@ function mlw_generate_quiz_options()
|
|
312 |
$j('#options_help_dialog').dialog({
|
313 |
autoOpen: false,
|
314 |
show: 'blind',
|
|
|
315 |
hide: 'explode',
|
316 |
buttons: {
|
317 |
Ok: function() {
|
@@ -329,6 +332,7 @@ function mlw_generate_quiz_options()
|
|
329 |
$j('#leaderboard_help_dialog').dialog({
|
330 |
autoOpen: false,
|
331 |
show: 'blind',
|
|
|
332 |
hide: 'explode',
|
333 |
buttons: {
|
334 |
Ok: function() {
|
@@ -1240,30 +1244,36 @@ function mlw_generate_quiz_options()
|
|
1240 |
<p>This page is used edit the questions and options for your quiz. Use the help buttons on each tab for assistance.</p>
|
1241 |
</div>
|
1242 |
<div id="questions_help_dialog" title="Help" style="display:none;">
|
1243 |
-
<p>The question table lists the
|
1244 |
<p>To edit a question, use the Edit link below the question.</p>
|
1245 |
<p>To add a question, click on the Add Question button. This will open a window for you to add a question. The window will ask for the question and up to 6 answers. If you are using the points system, enter in the amount of points each answer is worth. If you are using the correct system, check the answer that is the correct answer.
|
1246 |
-
You can choose if you would like a comment field after the question
|
|
|
1247 |
</div>
|
1248 |
<div id="templates_help_dialog" title="Help" style="display:none;">
|
1249 |
<p>This tab is used to edit the different messages the user and admin may see.</p>
|
1250 |
<p>The Message Displayed Before Quiz text is shown to the user at the beginning of the quiz.</p>
|
1251 |
<p>The Message Display Before Comment Box is shown to the user right before the section the user can type in comments if that option is enabled.</p>
|
1252 |
-
<p>The Message Displayed After Quiz text is show to the user
|
1253 |
<p>The Email sent to user after completion text is the email that is sent to the user after completing the quiz. (This is only used if you have turned on the option on the options tab.)</p>
|
1254 |
<p>The Email sent to admin after completion text is the email that is sent to the admin after the quiz has been completed.</p>
|
1255 |
<p>The other templates section is for customizing the text on the submit button as well as the fields where are user can input his or her information.</p>
|
|
|
1256 |
<p>Some templates are able to have variables inside the text. When the quiz is run, these variables will change to their values.</p>
|
1257 |
</div>
|
1258 |
<div id="options_help_dialog" title="Help" style="display:none;">
|
1259 |
<p>This tab is used to edit the different options for the quiz.</p>
|
1260 |
<p>The system option allows you to have the quiz be graded using a correct/incorrect system or the quiz can have each answer worth different amount of points.</p>
|
1261 |
-
<p>
|
1262 |
-
<p>
|
1263 |
-
<p>The next four options asks whether you want the quiz to ask for the user's name, business, email, and phone number.</p>
|
1264 |
-
<p>
|
1265 |
-
|
1266 |
-
<p>
|
|
|
|
|
|
|
|
|
1267 |
</div>
|
1268 |
<div id="leaderboard_help_dialog" title="Help" style="display:none;">
|
1269 |
<p>This tab is used to edit the options for the leaderboard for this quiz.</p>
|
278 |
$j('#questions_help_dialog').dialog({
|
279 |
autoOpen: false,
|
280 |
show: 'blind',
|
281 |
+
width:700,
|
282 |
hide: 'explode',
|
283 |
buttons: {
|
284 |
Ok: function() {
|
296 |
$j('#templates_help_dialog').dialog({
|
297 |
autoOpen: false,
|
298 |
show: 'blind',
|
299 |
+
width:700,
|
300 |
hide: 'explode',
|
301 |
buttons: {
|
302 |
Ok: function() {
|
314 |
$j('#options_help_dialog').dialog({
|
315 |
autoOpen: false,
|
316 |
show: 'blind',
|
317 |
+
width:700,
|
318 |
hide: 'explode',
|
319 |
buttons: {
|
320 |
Ok: function() {
|
332 |
$j('#leaderboard_help_dialog').dialog({
|
333 |
autoOpen: false,
|
334 |
show: 'blind',
|
335 |
+
width:700,
|
336 |
hide: 'explode',
|
337 |
buttons: {
|
338 |
Ok: function() {
|
1244 |
<p>This page is used edit the questions and options for your quiz. Use the help buttons on each tab for assistance.</p>
|
1245 |
</div>
|
1246 |
<div id="questions_help_dialog" title="Help" style="display:none;">
|
1247 |
+
<p>The question table lists the order the question appears in and the question itself.</p>
|
1248 |
<p>To edit a question, use the Edit link below the question.</p>
|
1249 |
<p>To add a question, click on the Add Question button. This will open a window for you to add a question. The window will ask for the question and up to 6 answers. If you are using the points system, enter in the amount of points each answer is worth. If you are using the correct system, check the answer that is the correct answer.
|
1250 |
+
You can then choose which style of question you would like by selecting an option for the "Question Type?" option. You can choose if you would like a comment field after the question by selecting an option to the "Comment Field?" question. You can also have a hint displayed to the user. You can then choose the order which the question is
|
1251 |
+
asked by editing the "Question Order" option. Click create question when you are finished.</p>
|
1252 |
</div>
|
1253 |
<div id="templates_help_dialog" title="Help" style="display:none;">
|
1254 |
<p>This tab is used to edit the different messages the user and admin may see.</p>
|
1255 |
<p>The Message Displayed Before Quiz text is shown to the user at the beginning of the quiz.</p>
|
1256 |
<p>The Message Display Before Comment Box is shown to the user right before the section the user can type in comments if that option is enabled.</p>
|
1257 |
+
<p>The Message Displayed After Quiz text is show to the user after the quiz has been taken.</p>
|
1258 |
<p>The Email sent to user after completion text is the email that is sent to the user after completing the quiz. (This is only used if you have turned on the option on the options tab.)</p>
|
1259 |
<p>The Email sent to admin after completion text is the email that is sent to the admin after the quiz has been completed.</p>
|
1260 |
<p>The other templates section is for customizing the text on the submit button as well as the fields where are user can input his or her information.</p>
|
1261 |
+
<p>The %QUESTIONS_ANSWERS% Text area is where you can change the test shown in place of the %QUESTIONS_ANSWERS% variable.</p>
|
1262 |
<p>Some templates are able to have variables inside the text. When the quiz is run, these variables will change to their values.</p>
|
1263 |
</div>
|
1264 |
<div id="options_help_dialog" title="Help" style="display:none;">
|
1265 |
<p>This tab is used to edit the different options for the quiz.</p>
|
1266 |
<p>The system option allows you to have the quiz be graded using a correct/incorrect system or the quiz can have each answer worth different amount of points.</p>
|
1267 |
+
<p>Are the questions random? -> If set to yes, the questions will be random. If set to no, the questions will be shown in the order you have set using the Question Order option.</p>
|
1268 |
+
<p>Would you like to ask for the contact information at the beginning or at the end of the quiz? -> This option will allow you to choose when to ask for contact information if asked.</p>
|
1269 |
+
<p>Should we ask for -> The next four options asks whether you want the quiz to ask for the user's name, business, email, and phone number.</p>
|
1270 |
+
<p>Would you like a place for the user to enter comments? -> If set to yes, a comment section will appear at the end of the quiz for the user to fill out. Customize the text shown above the field by editing
|
1271 |
+
the "Message Display Before Comment Box" field on the "Quiz Text" tab.</p>
|
1272 |
+
<p>Send user email upon completion?-> If set to yes, the user will be sent an email after taking the quiz. To customize the text of the email, edit the "Email sent to user after completion"
|
1273 |
+
field on the "Quiz Text" tab.</p>
|
1274 |
+
<p>Send admin email upon completion? -> If set to yes, the admin will be sent an email when a quiz has been taken. To customize the text of the email, edit the "Email sent to admin after completion"
|
1275 |
+
field on the "Quiz Text" tab.</p>
|
1276 |
+
<p>What email should we send the admin email to? -> This field allows you to set what email address to send the admin emails to.</p>
|
1277 |
</div>
|
1278 |
<div id="leaderboard_help_dialog" title="Help" style="display:none;">
|
1279 |
<p>This tab is used to edit the options for the leaderboard for this quiz.</p>
|
includes/mlw_update.php
CHANGED
@@ -1,8 +1,12 @@
|
|
1 |
<?php
|
2 |
-
|
|
|
|
|
3 |
function mlw_quiz_update()
|
4 |
{
|
5 |
-
|
|
|
|
|
6 |
if ( ! get_option('mlw_quiz_master_version'))
|
7 |
{
|
8 |
add_option('mlw_quiz_master_version' , $data);
|
1 |
<?php
|
2 |
+
/*
|
3 |
+
This is the update function for the plugin. When the plugin gets updated, the database changes are done here. This function is placed in the init of wordpress.
|
4 |
+
*/
|
5 |
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 = "0.9.7";
|
10 |
if ( ! get_option('mlw_quiz_master_version'))
|
11 |
{
|
12 |
add_option('mlw_quiz_master_version' , $data);
|
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: 0.9.
|
7 |
Author: Frank Corso
|
8 |
Author URI: http://www.mylocalwebstop.com/
|
9 |
Plugin URI: http://www.mylocalwebstop.com/
|
@@ -22,7 +22,6 @@ You understand that you install, operate, and unistall the plugin at your own di
|
|
22 |
|
23 |
|
24 |
///Files to Include
|
25 |
-
include("includes/mlw_main_page.php");
|
26 |
include("includes/mlw_quiz.php");
|
27 |
include("includes/mlw_dashboard.php");
|
28 |
include("includes/mlw_quiz_admin.php");
|
@@ -44,6 +43,12 @@ add_shortcode('mlw_quizmaster_leaderboard', 'mlw_quiz_leaderboard_shortcode');
|
|
44 |
register_activation_hook( __FILE__, 'mlw_quiz_activate');
|
45 |
register_deactivation_hook( __FILE__, 'mlw_quiz_deactivate');
|
46 |
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
|
48 |
///Create Admin Pages
|
49 |
function mlw_add_menu()
|
@@ -57,7 +62,6 @@ function mlw_add_menu()
|
|
57 |
add_submenu_page(__FILE__, 'Quiz Result Details', 'Quiz Result Details', 8, 'mlw_quiz_result_details', 'mlw_generate_result_details');
|
58 |
add_submenu_page(__FILE__, 'Tools', 'Tools', 8, 'mlw_quiz_tools', 'mlw_generate_quiz_tools');
|
59 |
add_submenu_page(__FILE__, 'How-To', 'How-To', 8, 'mlw_how_to', 'mlw_generate_help_page');
|
60 |
-
add_submenu_page(__FILE__, 'Help', 'Help', 8, 'mlw_quiz_support', 'mlw_generate_main_page');
|
61 |
}
|
62 |
}
|
63 |
/*
|
3 |
/*
|
4 |
Plugin Name: Quiz Master Next
|
5 |
Description: Use this plugin to add multiple quizzes, tests, or surveys to your website.
|
6 |
+
Version: 0.9.7
|
7 |
Author: Frank Corso
|
8 |
Author URI: http://www.mylocalwebstop.com/
|
9 |
Plugin URI: http://www.mylocalwebstop.com/
|
22 |
|
23 |
|
24 |
///Files to Include
|
|
|
25 |
include("includes/mlw_quiz.php");
|
26 |
include("includes/mlw_dashboard.php");
|
27 |
include("includes/mlw_quiz_admin.php");
|
43 |
register_activation_hook( __FILE__, 'mlw_quiz_activate');
|
44 |
register_deactivation_hook( __FILE__, 'mlw_quiz_deactivate');
|
45 |
|
46 |
+
//Setup Translations
|
47 |
+
function mlw_qmn_translation_setup() {
|
48 |
+
load_plugin_textdomain( 'mlw_qmn_text_domain', false, dirname( plugin_basename( __FILE__ ) ) . '/lang/' );
|
49 |
+
}
|
50 |
+
add_action('plugins_loaded', 'mlw_qmn_translation_setup');
|
51 |
+
|
52 |
|
53 |
///Create Admin Pages
|
54 |
function mlw_add_menu()
|
62 |
add_submenu_page(__FILE__, 'Quiz Result Details', 'Quiz Result Details', 8, 'mlw_quiz_result_details', 'mlw_generate_result_details');
|
63 |
add_submenu_page(__FILE__, 'Tools', 'Tools', 8, 'mlw_quiz_tools', 'mlw_generate_quiz_tools');
|
64 |
add_submenu_page(__FILE__, 'How-To', 'How-To', 8, 'mlw_how_to', 'mlw_generate_help_page');
|
|
|
65 |
}
|
66 |
}
|
67 |
/*
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: fpcorso
|
3 |
Tags: quiz, test, score, survey, contact
|
4 |
Requires at least: 3.0.1
|
5 |
-
Tested up to: 3.8
|
6 |
-
Stable tag: 0.9.
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
|
9 |
Use this plugin to add multiple quizzes, tests, surveys, or contact forms to your website.
|
@@ -44,10 +44,10 @@ Features include:
|
|
44 |
On each page, there is a "?" next to the page title. Clicking on it will bring up a small help window that will assist you on that page.
|
45 |
|
46 |
= How do you use that feature? =
|
47 |
-
There is a How-To page that has many useful how-to's to assist you on using the plugin. If you still have any trouble, feel free to use the
|
48 |
|
49 |
= I have an idea, how do I contact you? =
|
50 |
-
Feel free to use the
|
51 |
|
52 |
== Screenshots ==
|
53 |
|
@@ -61,6 +61,12 @@ Feel free to use the help page within the plugin or from the contact page at myl
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
= 0.9.6 (January 21, 2014) =
|
65 |
* Added Ability To Edit Question Order When Adding Questions
|
66 |
* Added Ability To Choose Whether Contact Info Is Asked For At Beginning Or End Of Quiz
|
@@ -209,6 +215,9 @@ Feel free to use the help page within the plugin or from the contact page at myl
|
|
209 |
|
210 |
== Upgrade Notice ==
|
211 |
|
|
|
|
|
|
|
212 |
= 0.9.6 =
|
213 |
Upgrade to be able to choose whether contact information is asked for at beginning or end of the quiz. Also, added ability to edit question order when adding new questions. Several minor design changes on admin side. Fixed double quote bug.
|
214 |
|
2 |
Contributors: fpcorso
|
3 |
Tags: quiz, test, score, survey, contact
|
4 |
Requires at least: 3.0.1
|
5 |
+
Tested up to: 3.8.1
|
6 |
+
Stable tag: 0.9.7
|
7 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
8 |
|
9 |
Use this plugin to add multiple quizzes, tests, surveys, or contact forms to your website.
|
44 |
On each page, there is a "?" next to the page title. Clicking on it will bring up a small help window that will assist you on that page.
|
45 |
|
46 |
= How do you use that feature? =
|
47 |
+
There is a How-To page that has many useful how-to's to assist you on using the plugin. If you still have any trouble, feel free to use the widget on the quiz dashboard within the plugin to contact me and I will help you.
|
48 |
|
49 |
= I have an idea, how do I contact you? =
|
50 |
+
Feel free to use the widget on the quiz dashboard within the plugin or from the contact page at mylocalwebstop.com.
|
51 |
|
52 |
== Screenshots ==
|
53 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 0.9.7 (January 24, 2014) =
|
65 |
+
* Started Setting Plugin Up For Translations
|
66 |
+
* Relocated Widgets From Help Page To Quiz Dashboard Page
|
67 |
+
* Updated Several Of The Help Sections Through Plugin
|
68 |
+
* Minor Bug Fixes
|
69 |
+
|
70 |
= 0.9.6 (January 21, 2014) =
|
71 |
* Added Ability To Edit Question Order When Adding Questions
|
72 |
* Added Ability To Choose Whether Contact Info Is Asked For At Beginning Or End Of Quiz
|
215 |
|
216 |
== Upgrade Notice ==
|
217 |
|
218 |
+
= 0.9.7 =
|
219 |
+
Upgrade to see widgets relocated from help page to quiz dashboard page. Also, began setting plugin up for translations. Updated many help sections throughout plugin. Minor bug fixes.
|
220 |
+
|
221 |
= 0.9.6 =
|
222 |
Upgrade to be able to choose whether contact information is asked for at beginning or end of the quiz. Also, added ability to edit question order when adding new questions. Several minor design changes on admin side. Fixed double quote bug.
|
223 |
|