Changeset 884765
- Timestamp:
- 03/30/2014 07:47:46 PM (12 years ago)
- Location:
- quizz
- Files:
-
- 2 edited
- 4 copied
-
tags/1.02 (copied) (copied from quizz/trunk)
-
tags/1.02/index.php (copied) (copied from quizz/trunk/index.php)
-
tags/1.02/quizz.php (copied) (copied from quizz/trunk/quizz.php) (3 diffs)
-
tags/1.02/readme.txt (copied) (copied from quizz/trunk/readme.txt) (2 diffs)
-
trunk/quizz.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quizz/tags/1.02/quizz.php
r881384 r884765 4 4 * Plugin URI: http://www.13llama.com/quizz 5 5 * Description: A plugin that helps you create a simple sequential quiz on WordPress. 6 * Version: 1.0 17 * Author: Amit Sharma6 * Version: 1.02 7 * Author: 13 Llama Studio 8 8 * Author URI: http://www.13llama.com/ 9 9 * License: GNU GPL … … 95 95 if ( $correct == "yes" ) { 96 96 97 if ($last_bool == "last") {97 if ($last_bool != "last") { 98 98 // raise a hook for updating record 99 99 do_action( 'quizz_level_updated', $nextlevel[0] ); … … 104 104 $goto = $lastpage[0]; 105 105 } 106 // redirect to next question 107 echo "<meta http_equiv='refresh' content='0, " . site_url() . "?p=" . $goto . "' />"; 108 echo "<script>window.location='" . site_url() . "?p=" . $goto . "';</script>"; 106 107 // redirect to next question - or last page 108 echo "<meta http_equiv='refresh' content='0, " . get_post_permalink($goto) . "' />"; 109 echo "<script>window.location='" . get_post_permalink($goto) . "';</script>"; 109 110 } else { 110 111 -
quizz/tags/1.02/readme.txt
r881384 r884765 1 Quizz 1 === Quizz === 2 2 A simple quiz plugin 3 Author: Amit Sharma 3 Contributors: 13llama 4 Tags: quiz, question 5 Author: 13 Llama Studio 4 6 Author URI: http://www.13llama.com/ 5 Version: 1.01 6 Date last updated: 25 March 2014 7 Version: 1.02 8 Stable tag: 1.02 9 License: GPLv2 or later 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 Date last updated: 31 March 2014 7 12 8 Description 9 -- 13 Create a sequential quiz on WordPress with the Quizz plugin. 14 15 == Description == 16 10 17 Create a sequential quiz on WordPress with the Quizz plugin. 11 18 … … 17 24 quizz_level_updated: raised when the user's answer is considered correct and they're pushed to the next question 18 25 quizz_ended: raised when the list of questions comes to an end, and the user is sent to a designated page (eg. a congratulations page) 26 27 28 == Installation == 29 30 For an automatic installation through WordPress: 31 1. Go to the 'Add New' plugins screen in your WordPress admin area 32 1. Search for 'Quizz' 33 1. Click 'Install Now' and activate the plugin 34 35 For a manual installation via FTP: 36 1. Upload the addthis folder to the `/wp-content/plugins/` directory 37 1. Activate the plugin through the 'Plugins' screen in your WordPress admin area 38 39 To upload the plugin through WordPress, instead of FTP: 40 1. Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate. 41 42 43 == Usage == 44 45 1. Under Questions in the WordPress admin menu, click on Add New Question. 46 2. Enter the question in the big post area. This can be plain text, images, or embedded multimedia. 47 3. Enter the correct answer in the Answer field below the question field. 48 4. Choose whether you will accept only exact matches, or a part answer (eg. you enter a series of answers delimited by commas) is valid. 49 5. Select which question leads to the current question. 50 6. Select whether this is the final question of the series, and if it is, choose the Page which will be displayed when the player is done with the quiz. Eg. a thank you page, or a success page. 51 52 53 == Uninstall == 54 55 In the Plugins screen of your WordPress admin area, navigate to Quizz, click on Deactivate. On the refreshed screen, click on Delete. 56 Note: You will lose all your questions if you uninstall the plugin. Take a backup of your data before you uninstall. 57 58 59 == Changelog == 60 61 31 March 2014: Using the WordPress permalink function instead of creating the URL structure for redirects. -
quizz/trunk/quizz.php
r881384 r884765 4 4 * Plugin URI: http://www.13llama.com/quizz 5 5 * Description: A plugin that helps you create a simple sequential quiz on WordPress. 6 * Version: 1.0 17 * Author: Amit Sharma6 * Version: 1.02 7 * Author: 13 Llama Studio 8 8 * Author URI: http://www.13llama.com/ 9 9 * License: GNU GPL … … 95 95 if ( $correct == "yes" ) { 96 96 97 if ($last_bool == "last") {97 if ($last_bool != "last") { 98 98 // raise a hook for updating record 99 99 do_action( 'quizz_level_updated', $nextlevel[0] ); … … 104 104 $goto = $lastpage[0]; 105 105 } 106 // redirect to next question 107 echo "<meta http_equiv='refresh' content='0, " . site_url() . "?p=" . $goto . "' />"; 108 echo "<script>window.location='" . site_url() . "?p=" . $goto . "';</script>"; 106 107 // redirect to next question - or last page 108 echo "<meta http_equiv='refresh' content='0, " . get_post_permalink($goto) . "' />"; 109 echo "<script>window.location='" . get_post_permalink($goto) . "';</script>"; 109 110 } else { 110 111 -
quizz/trunk/readme.txt
r881384 r884765 1 Quizz 1 === Quizz === 2 2 A simple quiz plugin 3 Author: Amit Sharma 3 Contributors: 13llama 4 Tags: quiz, question 5 Author: 13 Llama Studio 4 6 Author URI: http://www.13llama.com/ 5 Version: 1.01 6 Date last updated: 25 March 2014 7 Version: 1.02 8 Stable tag: 1.02 9 License: GPLv2 or later 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html 11 Date last updated: 31 March 2014 7 12 8 Description 9 -- 13 Create a sequential quiz on WordPress with the Quizz plugin. 14 15 == Description == 16 10 17 Create a sequential quiz on WordPress with the Quizz plugin. 11 18 … … 17 24 quizz_level_updated: raised when the user's answer is considered correct and they're pushed to the next question 18 25 quizz_ended: raised when the list of questions comes to an end, and the user is sent to a designated page (eg. a congratulations page) 26 27 28 == Installation == 29 30 For an automatic installation through WordPress: 31 1. Go to the 'Add New' plugins screen in your WordPress admin area 32 1. Search for 'Quizz' 33 1. Click 'Install Now' and activate the plugin 34 35 For a manual installation via FTP: 36 1. Upload the addthis folder to the `/wp-content/plugins/` directory 37 1. Activate the plugin through the 'Plugins' screen in your WordPress admin area 38 39 To upload the plugin through WordPress, instead of FTP: 40 1. Upload the downloaded zip file on the 'Add New' plugins screen (see the 'Upload' tab) in your WordPress admin area and activate. 41 42 43 == Usage == 44 45 1. Under Questions in the WordPress admin menu, click on Add New Question. 46 2. Enter the question in the big post area. This can be plain text, images, or embedded multimedia. 47 3. Enter the correct answer in the Answer field below the question field. 48 4. Choose whether you will accept only exact matches, or a part answer (eg. you enter a series of answers delimited by commas) is valid. 49 5. Select which question leads to the current question. 50 6. Select whether this is the final question of the series, and if it is, choose the Page which will be displayed when the player is done with the quiz. Eg. a thank you page, or a success page. 51 52 53 == Uninstall == 54 55 In the Plugins screen of your WordPress admin area, navigate to Quizz, click on Deactivate. On the refreshed screen, click on Delete. 56 Note: You will lose all your questions if you uninstall the plugin. Take a backup of your data before you uninstall. 57 58 59 == Changelog == 60 61 31 March 2014: Using the WordPress permalink function instead of creating the URL structure for redirects.
Note: See TracChangeset
for help on using the changeset viewer.