the problem is about the result of mbti test (4 letters)
the 4 letters result is ordering incorrectly.
ex the result is “PSTI” instead of the correct “ISTP”
how to fix it?
thanks
https://www.ads-software.com/plugins/ptest-personality-tests-for-wordpress/
]]>Note that I am not absolutely sure this works with 3.5.1 yet, but it seems to. Below is a patch that will prevent you from being booted out when FORCE_SSL_ADMIN is enabled.
diff --git a/admin/question_form.php b/admin/question_form.php
index 8129a8e..b0d7260 100644
--- a/admin/question_form.php
+++ b/admin/question_form.php
@@ -68,7 +68,7 @@ if($_REQUEST['action'] == 'edit') {
}
</script>
<!-- Answer entry form starts -->
- <form name="post" action="<?php echo PTEST_PLUGIN_URL;
?>/admin/actions.php" method="post" id="post">
+ <form name="post" action="<?php echo plugins_url('actions.php',
__FILE__);?>" method="post" id="post">
<div id="poststuff">
<div id="<?php echo user_can_richedit() ? 'postdivrich' :
'postdiv'; ?>" class="postarea">
<div class="postbox">
@@ -124,4 +124,4 @@ if($_REQUEST['action'] == 'edit') {
</div><!-- poststuff ends -->
</form>
-</div><!-- wrap ends -->
\ No newline at end of file
+</div><!-- wrap ends -->
diff --git a/admin/question_manage.php b/admin/question_manage.php
index 765d0ee..86b16fd 100644
--- a/admin/question_manage.php
+++ b/admin/question_manage.php
@@ -60,7 +60,7 @@ $test_name =
stripslashes($wpdb->get_var($wpdb->prepare("SELECT name FROM {$wpdb
</td>
<td><a href='edit.php?page=<?php echo PTEST_PLUGIN_NAME;
?>/admin/question_form.php&question=<?php echo
$question->ID?>&action=edit&test=<?php echo
$_REQUEST['test']?>' class='edit'><?php _e('Edit This
Question','ptest'); ?></a></td>
<td>
- <form name="post" action="<?php echo PTEST_PLUGIN_URL;
?>/admin/actions.php" method="post" id="post">
+ <form name="post" action="<?php echo
plugins_url('actions.php', __FILE__);?>" method="post" id="post">
<?php wp_nonce_field('ptest_delete_question'); ?>
<input type="hidden" name="test" value="<?php echo
$_REQUEST['test']?>" />
<input type="hidden" name="question" value="<?php
echo stripslashes($question->ID)?>" />
diff --git a/admin/test_form.php b/admin/test_form.php
index 99f97cf..ff5343d 100644
--- a/admin/test_form.php
+++ b/admin/test_form.php
@@ -71,7 +71,7 @@ if($_REQUEST['action']== 'edit') {
}
</script>
- <form name="post" action="<?php echo PTEST_PLUGIN_URL;
?>/admin/actions.php" method="post" id="post">
+ <form name="post" action="<?php echo plugins_url('actions.php',
__FILE__);?>" method="post" id="post">
<div id="poststuff">
<div class="postbox" id="titlediv">
<h3 class="hndle"><span><?php _e('Test Name','ptest')
?></span></h3>
diff --git a/admin/test_manage.php b/admin/test_manage.php
index 38435bd..1e380e7 100644
--- a/admin/test_manage.php
+++ b/admin/test_manage.php
@@ -49,7 +49,7 @@ require('functions.php');
<td><a href='edit.php?page=<?php echo
PTEST_PLUGIN_NAME;
?>/admin/test_form.php&action=edit&test=<?php echo
$test->ID?>' class='edit'><?php _e('Edit Test Properties','ptest');
?></a></td>
<td><a href='edit.php?page=<?php echo
PTEST_PLUGIN_NAME; ?>/admin/question_manage.php&test=<?php echo
$test->ID?>' class='edit'><?php _e('Add/Edit/Delete
Questions','ptest')?></a> [ <?php echo $test->question_count ?> ]</td>
<td>
- <form name="post" action="<?php echo
PTEST_PLUGIN_URL; ?>/admin/actions.php" method="post" id="post">
+ <form name="post" action="<?php echo
plugins_url('actions.php', __FILE__);?>" method="post" id="post">
<?php wp_nonce_field('ptest_delete_test'); ?>
<input type="hidden" name="action" value="delete" />
<input type="hidden" name="test" value="<?php echo
$test->ID; ?>" />
https://www.ads-software.com/extend/plugins/ptest-personality-tests-for-wordpress/
]]>Hi. I’d love to be able to use the functionality offered by this plugin, but I can’t get it to display anything other than the words ‘next question’. I’ve followed the instructions to the letter, have 12 dimensions and 7 questions.
I can see the html if I go to the page and select ‘view source’ in the browser, which shows everything between the <div class=’test_area’>and <div> but the page itself is blank other than ‘next question’. What’s happening here?
https://www.ads-software.com/extend/plugins/ptest-personality-tests-for-wordpress/
]]>Great job! Going to look into the code to see how to randomize the question order. Any thoughts?
https://www.ads-software.com/extend/plugins/ptest-personality-tests-for-wordpress/
]]>EN: Polish translation for PTest is available on:
PL: Polskie t?umaczenie dla PTest jest dost?pne na:
https://blog.meloniq.net/2011/04/30/spolszczenie-ptest-testy-osobowosci/
https://www.ads-software.com/extend/plugins/ptest-personality-tests-for-wordpress/
]]>